From 89dd487c7b429ac9800e06dc113c15c56c520985 Mon Sep 17 00:00:00 2001 From: djib Date: Wed, 17 Nov 2021 22:59:07 +0100 Subject: [PATCH] Adjusting speed --- pyras.p8 | 140 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 135 insertions(+), 5 deletions(-) diff --git a/pyras.p8 b/pyras.p8 index 5741442..5ada0e7 100644 --- a/pyras.p8 +++ b/pyras.p8 @@ -87,8 +87,8 @@ end -->8 -- game game={ - level=7, - slowdown=0.1 + level=1, + slowdown=0.15 } function initgame() @@ -109,7 +109,7 @@ function drawbg() end function waitormove() - if game.tick>min(30,game.slowdown*#pyras) then + if game.tick>min(20,game.slowdown*#pyras) then moveguy() movepyras() game.tick=0 @@ -149,10 +149,10 @@ function drawgame() cursor(46,61,7) print "game over" if game.state==2 then - print "you won!!" + print "level up!" end if game.state==3 then - print "you lost!" + print "level down" end end end @@ -163,6 +163,136 @@ __gfx__ 00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +__label__ +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111 +17181111177711111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111777177717771 +17181171171711111111111111111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111117111711171 +17111111177711111111118811111111111111111111111111118111111111111111111111111111111111111111111111811111111111111111777117711771 +17111171171711111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111711111711171 +17771111177711111111111111111111111111111111111111111111811111111111111111111111111111111111111111111111111111111111777177717771 +11111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111181111111111111111111111111111181111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111181111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111118181111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111118111111111111111111111111111111111111111811111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111811111811111111111111111111811111111111111111111111111111111111111111111111111111111111111111111111111111111188111111 +11111118111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811 +11111811111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111111111111111 +11111111111111111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11118111111111111111111111111111111111111111111111111111111111111111111111111181111111118111111111111111111111111111111118111111 +11111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111118111111111 +11111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111111111111111111111111111181111111 +11111111111181111111111111181111181111111111111111111111118111111111111111181111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111181111111111111111111111111111118111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111811111118111111111111111111111111111111111111111111111111 +11118111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111181111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111181111111111111111111111111111811111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11811111111111111111111111111111111811111111111111811111111111111111811111111111111111111111111111111111111111111111111111111111 +18111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111811111111111111181111181111111118111 +11111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111 +11111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111811111111111111111111111111111811111111111111111111111111111111111111111111181111111111111111111111111111111111811111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111118111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111811111111111111181111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118811111111111118118111111111111111 +11111111111111111111111111111111111111111111181111111111181118111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111881111111111 +11111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111118111111111 +11118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111111111111 +11181111111111111111111111118111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111811111111 +11111111111111111111111111111111111111111811111111111111111161116111611111111111111111111111111111111111111111111181111111111111 +11111111111111111111111111111111111111111111111177717771777117711771111117777711111111111111111111111111111111111111111111111111 +11111111111111188111111111111111111111111111111171717171711171117111111177171771111111181111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111177717711771177717771111177717778111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111181111117111717171116171b171611177171771111111111111111111111111111111111111111111111111 +11111811111111111811111111111111111111111111111171117171777177117711111117777711111111111111111118111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111 +11111111111111111181111111111811111111111111111177711771111117717771777177717771111111111111111111111111111111111111111181111111 +11111118111111111111111111111111111111111111111117117171111171116711717171711711111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111118111117117171111177711711777177111711111111111111111118111111111111111111111111111111 +11111111111111111111111111111111111111111111111117117171111111711711717171711711111111111111111111181111111111111111111111111111 +11111111111111118111111111111111111111111111111117117711111177111711717171711711111111111111111111111111111111111111111111111111 +11111111111111111111181111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111 +11111111111111111111111111111111111111111118111111111811111111111111111111811111111111111111181811111111111111111111111111111111 +11111111111111111111111811111111111111111111111111111111111118111111111111111111111111111111111111111181111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111181111111 +11111111111181111111111111111111111111111111111111118111111111111111111111111181111111118111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111111 +11111111111111111111111111181111111111111111111111111111111111111111111111111181111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111 +11111111111111111111111111181111111111111111111111811111111111111111181111111111111111111111811111111111111111111111111111181111 +11111811111111181111111111111111111111111111111111111111111111111111111111811111111111111111111111111111118111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111181118 +11111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111181111811111111 +11111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111118111111111111111111111111111111111111118111111111111111111111111111181111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111181181111111111111111111111111111111111111111111111111111111111111111111111 +11111811111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111 +11111111111111111111111111111181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111811111111111111111111111111118111111111111111111118111111111111111111111111111111 +11111181111111111111111111111111118111111111811111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111 +11111111111111111111111111111118111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111811111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111811111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111118111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111111111111111 +11111111111111111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111118111111111111 +11111811111111111111111111111111111111111111111111111111111111111111111111111111111111111111811811111111111111111111111111118111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181811111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111 +11111118111111111111111111111111111111811111111111111111111111111111111111111111111118111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111118111111111 +11111111111111111111111111111111111811111111111111111111111111111111111111111111111111111111111111118111111111111111111111181111 +11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111 +11181111111111111111111111111111111111111111111111111111111111111111111111111111111111111111181111111111111111111811111111111111 +18111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111811111111 +11111111111111111111111111111111111111111111811111111111111111111111111181111111111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111111111111811111111111111111111111111111111111111111111111111811111111111111111111111 +11111111111111111111111111111111111111111111111111111111111111111111111111111188111111111111111111111111111111111111111111111111 +11111111111111111111111111111111111111111111118111111111111111111111111111111111111111111811111111111111111111111111111111111111 +11118111111111111111111111111111118111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 + __sfx__ 000100002e05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 9d0800000215000000000001910018100021500000000000021500000002150000000000014100131000515000000121000415000000041500000011100021500000002150000000010001150000000215000100