implement initial tilemap rendering

This commit is contained in:
2026-11-05 19:53:55 +03:00
parent e50368308b
commit 6c1d4ae76e
9 changed files with 371 additions and 24 deletions

View File

@@ -25,7 +25,7 @@ else
RAYLIB_LIBS := -lGL -lm -lpthread -ldl -lrt -lX11
endif
OBJECTS := main.o menu.o game.o
OBJECTS := main.o menu.o game.o tmx.o
all: catch-phase
@@ -38,6 +38,7 @@ catch-phase: $(OBJECTS) $(RAYLIB_LIB)
# raylib ------------------------------------------------------------
$(RAYLIB_LIB):
mkdir -p build
$(MAKE) -C $(RAYLIB_SRC) clean
$(MAKE) -C $(RAYLIB_SRC) \
PLATFORM=$(RAYLIB_PLATFORM) \
RAYLIB_LIBTYPE=STATIC \
@@ -54,9 +55,9 @@ EMFLAGS := -O2 -DPLATFORM_WEB \
-sTOTAL_MEMORY=134217728 \
-sFORCE_FILESYSTEM=1 \
--shell-file shell.html \
--preload-file ./res@/res
--preload-file ./res@res
WEB_OBJECTS := web/menu.o web/game.o
WEB_OBJECTS := web/menu.o web/game.o web/tmx.o
web/%.o: %.sex
mkdir -p web
@@ -65,6 +66,7 @@ web/%.o: %.sex
web/libraylib.web.a:
mkdir -p web
$(MAKE) -C $(RAYLIB_SRC) clean
$(MAKE) -C $(RAYLIB_SRC) \
PLATFORM=PLATFORM_WEB \
RAYLIB_LIBTYPE=STATIC \
@@ -89,6 +91,6 @@ serve: web
clean:
$(MAKE) -C $(RAYLIB_SRC) clean
rm -rf ./build ./web
rm -f catch-phase
rm -f $(OBJECTS) catch-phase
.PHONY: all clean