Skip to content
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

sprite: refactor and fix sprite code used for enemies in map screens #38

Closed
6 tasks done
jorgegv opened this issue Apr 24, 2021 · 1 comment
Closed
6 tasks done

Comments

@jorgegv
Copy link
Owner

jorgegv commented Apr 24, 2021

Nomenclature for enemies in screens is confusing: they are called "sprites" but they should be named "enemies". This makes code difficult to read and modify.

  • Enemy management code in sprite.h and sprite.c should be separated into new enemy.h and enemy.c
  • All code using those should be fixed (map.c, hero.c, etc.)
  • DATAGEN new syntax for ENEMY lines in SCREEN sections
  • DATAGEN should be fixed to generate the correct code with the new format
  • DATAGEN documentation should updated
  • GDATA files should be upgraded to the new syntax
@jorgegv
Copy link
Owner Author

jorgegv commented Apr 24, 2021

merged in 9117c84

@jorgegv jorgegv closed this as completed Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant