To build the assets simply check out the `assets repository` into the `assets` directory and run `make tiles`.
This is only required if changes to the tileset were made. All 'compiled' tile directories are already included in this repository!
+### Directory structure
+
+- src: all source files
+- maps: generated map files used for rendering the game field
+- levels: generated level files
+- tiles: generated tilesets
+- sprites: generated sprite overlay templates
+
## License
This program is distributed under the terms of the MIT License.
FLAGS=-D DEBUG
#SYMTYPE=sym
SYMTYPE=mlb
-INCS=-I ./src -I ./tiles -I ./maps -I ./levels
+INCS=-I ./src -I ./tiles -I ./maps -I ./levels -I ./sprites
bin:
$(AS) $(FLAGS) -o $(NAME).gb -l ${NAME}.lst -s $(NAME).$(SYMTYPE) -S $(SYMTYPE) $(INCS) src/main.s
.PHONY: levels
levels:
./tools/tmx2map.py assets/levels/l1.tmx > levels/l1.inc
+
+.PHONY: sprites
+sprites:
+ ./tools/tmx2map.py assets/sprites/sword.tmx > sprites/sword.inc
--- /dev/null
+; this map was generated by tmx2map.py
+
+.db -0x42, -0x51, -0x51, -0x51, -0x33, -0x42, -0x51, -0x31, -0x51, -0x33, -0x32, -0x51, -0x51, -0x22, -0x51, -0x21
+
#include "levels.s"
#include "attributes.s"
#include "item.s"
+#include "sprites.s"
#include "tiles.inc"
#include "text.s"
--- /dev/null
+ ; this file contains rendering code for sprite overlays
+ ; this can be e.g. weapons displayed in first person view
+
+#include "sword.inc"