fixed time display, added song10

This commit is contained in:
PossiblyAxolotl 2023-03-10 23:41:36 -06:00
parent 10741ad54f
commit d4d63043b9
7 changed files with 12 additions and 7 deletions

View file

@ -19,7 +19,7 @@ local pos1 = {x,y}
local editor = "main"
local editorSongs = {"song1","song2","song5", "song6", "song7", "song8", "song9"}
local editorSongs = {"song1","song2","song5", "song6", "song7", "song8", "song9", "song10"}
local selSong = "song2"
local songIndexSel = 10

View file

@ -33,6 +33,7 @@ function addMap(_file, rs)
tilemap:setTileAtPosition(level.tiles[i].x,level.tiles[i].y,level.tiles[i].t)
end
-- Add collision
tiles = gfx.sprite.addWallSprites(tilemap, {0,1,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24})
song:stop()

View file

@ -200,7 +200,7 @@ function editLoad()
createMenu(m)
end
songlist = {"BACK","POV: YOU ARE A ROCKET","A LONELY, LOST SHIP", "LEVEL COMPLETE", "GAME COMPLETE", "CHIPVIBE2", "ORANGER CHIP","WACKMAN","HAUNTED HOUS", "SPOOKY ZONE"}
songlist = {"BACK","POV: YOU ARE A ROCKET","A LONELY, LOST SHIP", "LEVEL COMPLETE", "GAME COMPLETE", "CHIPVIBE2", "ORANGER CHIP","WACKMAN","HAUNTED HOUS", "SPOOKY ZONE","A HAPPY, FOUND SHIP"}
songlist[0] = "musicbox"
function menuButtonPress(name, index)

View file

@ -52,8 +52,11 @@ function updateBox()
local time = playdate.getTime()
if timeRate == true then
local prefix = " AM"
if time.hour > 12 then prefix = " PM" end
playdate.graphics.drawText((time.hour % 12)..":"..time.minute..prefix,0,0)
if time.hour > 11 then prefix = " PM" end
if time.hour == 0 then time.hour = 24 end
local tt = (time.hour % 12)
if tt == 0 then tt = 12 end
playdate.graphics.drawText(tt..":"..time.minute..prefix,0,0)
else
playdate.graphics.drawText(time.hour..":"..time.minute,0,0)
end
@ -65,7 +68,7 @@ function updateBox()
playdate.graphics.drawText(songTitle, 200 - playdate.graphics.getTextSize(songTitle)/2,180)
if math.floor(song:getOffset()) < math.floor(song:getLength()) then playdate.graphics.drawText(math.floor(song:getOffset()*100)/100,1,210) else playdate.graphics.drawText(math.floor(song:getLength()),1,210) end
playdate.graphics.drawText(math.floor(song:getLength()).."S",370,210)
playdate.graphics.drawText(math.floor(song:getLength()).."S",398- playdate.graphics.getTextSize(tostring(math.floor(song:getLength()))),210)
if playdate.buttonJustPressed(playdate.kButtonUp) then
if timeRate == true then timeRate = false else timeRate = true end

View file

@ -3,6 +3,6 @@ author=PossiblyAxolotl
description=Help a crew of rockets collect energy to get back home!
bundleID=com.PossiblyAxolotl.RocketBytes
launchSoundPath=launcher/rocketing
version=1.4.1
buildNumber=10401
version=1.4.2
buildNumber=10402
imagePath=launcher

BIN
Source/sfx/song10.wav Normal file

Binary file not shown.

View file

@ -5,4 +5,5 @@ Gant / Tiny Yellow Machine - playing the game on stream and being super supporti
TinyYellowMachine & Guv Bubbs - Hosting the Playdate Community Awards
My dad and mom - supporting me and passion
all the people who donated to this project, even when they could have played it for free
You - playing my game
You're all awesome