Browse Source

build script, some shmupdates (ha)

pixelbath 2 years ago
parent
commit
ee70d4d5cf
5 changed files with 22 additions and 0 deletions
  1. 7 0
      shmup/build.bat
  2. BIN
      shmup/shmup.aseprite
  3. 15 0
      shmup/shmup.lua
  4. BIN
      shmup/sprites.png
  5. BIN
      shmup/tiles.png

+ 7 - 0
shmup/build.bat

@@ -0,0 +1,7 @@
+@echo off
+
+set TIC_PATH=C:\_dev\_repos\TIC-80\build\bin\tic80.exe
+REM TIC_PATH=%USERPROFILE%\Desktop\tic80.exe
+
+"%PROGRAMFILES%\Aseprite\Aseprite.exe" -b shmup.aseprite --save-as {layer}.png
+%TIC_PATH% --skip --cmd "load repo/shmup/shmup.lua & import sprites repo/shmup/sprites.png & import tiles repo/shmup/tiles.png & save & run"

BIN
shmup/shmup.aseprite


+ 15 - 0
shmup/shmup.lua

@@ -29,6 +29,16 @@ local grad_palettes = {
 	{ 8, 9, 10, 11, 12 },
 	{ 8, 9, 10, 11, 12 },
 }
 }
 
 
+local enemies = {}
+
+function add_enemy(en_type, xpos, ypos)
+	table.insert(enemies, {
+		x=xpos, y=ypos,
+		type=en_type,
+		t=0,
+	})
+end
+
 function mod(a, b)
 function mod(a, b)
 	return math.floor(a-(math.floor(a/b)*b))
 	return math.floor(a-(math.floor(a/b)*b))
 end
 end
@@ -118,6 +128,11 @@ function draw_bullets()
 	end
 	end
 end
 end
 
 
+-- also handle powerups since they're colliders
+function draw_enemies()
+
+end
+
 function handle_input()
 function handle_input()
 	player.vx = 0
 	player.vx = 0
 	player.vy = 0
 	player.vy = 0

BIN
shmup/sprites.png


BIN
shmup/tiles.png