Log In  
Follow
Zach_Attakk
Follow

Cart #prime_spiral-0 | 2022-02-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

After watching this episode of Coding Train's coding challenge, I thought a square screen would be perfect for this sort of thing. It's not my cleanest code but it's pretty interesting to watch.

  • ➡️ makes it go faster (increase frame skip)
  • ⬅️ slows down (to a stop)

Cart #prime_spiral-0 | 2022-02-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

a35KWEjRvc0&hl=en&fs=1&rel=0">
Cart #prime_spiral-0 | 2022-02-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

a35KWEjRvc0&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400">

P#107394 2022-02-21 09:54 ( Edited 2022-02-21 09:55)

Cart #58080 | 2018-10-18 | Code ▽ | Embed ▽ | No License
4

Picked something simple for my first PICO-8 game. Also first time coding in Lua so the code is probably horrid.

It's basically this. I've only managed 1024 myself and I don't know what happens after 8192 because there's no more sprites after that.

Changes:

  • Using sspr() instead of spr() to draw parts of blocks, so they appear to flow into each other when merging
  • Animation cycle now skips if there's nothing to change, speeding up response time.
  • Added instructions
  • Added game over screen with restart button
  • Added persistent high score (thanks tobiasvl)
  • Quick fix to high score because I'm bad at variable names

To do:

  • Add sounds maybe (how do you make a sliding sound in PICO-8?)
  • Some sort of fanfare when you reach 2048? Fireworks?

I doubt I'll come back to this. It has reached my mental "close enough".

P#57462 2018-10-03 09:15 ( Edited 2018-10-18 10:37)

Follow Lexaloffle:        
Generated 2022-08-10 17:11:10 | 0.051s | Q:12