changed icon and fixed saving

This commit is contained in:
PossiblyAxolotl 2022-05-10 18:23:22 -06:00
parent e1164a66bc
commit dd93b7f7ae
10 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ import "Saws"
import "Editor"
mode = "menu"
map = "levels/level1.json"
map = "levels/saw.rocketbyte"
deaths = 0

View file

@ -8,6 +8,7 @@ local tiles = {}
local x = gfx.sprite.new(tilemap)
function addMapSave(_file)
playdate.datastore.delete("savegame.json")
playdate.datastore.write({savedLevel=_file,savedDeaths=deaths},"savegame")
addMap(_file, false)
mode = "game"

View file

@ -153,7 +153,8 @@ function menuButtonPress(name)
elseif name == "START NEW GAME" or name == "CONFIRM" then
deaths = 0
addMapSave("levels/level.json")
map = "levels/level.rocketbyte"
addMapSave("levels/level.rocketbyte")
elseif name == "CONTINUE" then
addMap(map)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1 +0,0 @@
frames = 1x4, 2x4, 3x4, 4x4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB