Log In  

Cart #diwipeboju-0 | 2020-11-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

My entry in #TweetTweetJam, in 554 characters.

Cross four levels of increasingly busy traffic, using only the up and down arrow keys!

This was my first time trying a minimal-code jam-- I read various forum tips but I'm sure there's still some compression to be had. Since the jam rules were to use source code only, no spritesheet/map/sfx data, I had the idea of Poke-ing a basic sprite into memory and then using sspr() and palt() to reuse it in different forms... and a little game evolved from that.

P#83904 2020-11-07 04:35


Not a bad Frogger clone. The randomization of the sprites works surprisingly well, and the x and o glyphs actually do kind of look like the frog somehow.=).

One thing I think could really help, though, would be adding left and right movement. I went ahead and added some left/right controls below, if you're interested, just had to remove the "Twaffic" text on screen and condense a bit of the line formatting.

for i=1,g*3do
for j=0,n do x=(x+j*99)%155-32
if abs(x+l+4*d-67)<l-1and abs(z-y+2)<5.5then
for i=1,30do flip()end
goto s end end end
?"★  lvl "..g.."/4",63,0,10
if y<6then
goto s end flip()goto r
P#83941 2020-11-07 17:50 ( Edited 2020-11-07 17:53)

Thanks! Initially I was tight on characters (before I read about the btnp() input trick you show) so didn't have side to side movement, and then sort of liked the additional challenge that added... but since there seems to be room I'll probably add that in (I have to update the hard coded collision-checking slightly as well).

P#84015 2020-11-09 00:28

Ok, thanks-- based on that suggestion, here's an alternate version allowing use of all four arrow keys in 557 chars, slightly reworked. However, as implemented, this one allows a sneaky way of cheating your way across the road...

Cart #wojomotawo-0 | 2020-11-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I think I personally prefer the first version-- it's harder but also depends less on fast-tapping of buttons and more on picking the right time to cross each set of vehicles (I find playing on a phone makes fast-tap input hard).

P#84292 2020-11-15 21:16

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 09:50:28 | 0.015s | Q:21