-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about this project's future #7
Comments
Hi!
The project complies the entire lua runtime into the GBA ROM, and the build script is written in Lua, so the project should not need much maintenance going forward. Someday, I may consider migrating to a new version of Lua, but I wouldn't want to break backwards compatibility for apps built with older versions of the engine, either, and 5.3 is still widely used.
If you have any suggestions for improvements, let me know, and I might consider adding things as time permits |
|
Just reading around, I think that hitbox/collision detection can improve the interesting to this project. About endianess yes, I tried a RE on a Xbox 360 game and had various issues on generating a bytecode compatible to change it. I think that in this case the issue is less important as usually emulators and real devices have the same endianess. |
Yeah, I've been thinking about ways to add hitbox and collision stuff, the only thing I can think of would be to add an object model to the engine. Right now, the engine just lets you draw graphics manually with the spr() function. I think I'll need to add some sort of entity/object system to do collision checking correctly. Something like this: entity1 = ent()
ent_hitbox(entity1, {0, 0, 8, 8})
ent_spr(entity1, 0)
entity2 = ent()
ent_hitbox(entity2, {0, 0, 8, 8})
entity3 = ent()
ent_hitbox(entity2, {0, 0, 8, 8})
-- return table of collisions between entity1 and entity2 or entity3
collision_test(entity1, {entity2, entity3, ...})
-- Return table of collisions between entity and tile layer 2, with table of solid tile ids
collision_test(entity1, 2, {1, 2, 3, 5})
|
Maybe something by image? I mean a bmp with a green screen behind and when 2 images touches the green/transparent area there is the collision. I see that https://github.com/drludos/meteorain-gba has something for collisions. I am not an expert so just some thoughts. |
Today I created a basic entity model and collision API: Next I'll add support for collisions between entities and tilemaps. |
Hi, I noticed you haven't checked-in any code for the past 7 months, but are still replying to comments. I'd like to ask two things.
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: