Log In  


Cart #zoyujobumi-2 | 2020-01-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
14

Hi everyone :)
I'm new to Pico-8 and set myself the task of learning Lua.
Thought I'd go with something I know so here's my shameless ripoff of the Asteroids arcade game.

Controls are exactly how you remember.
D-Pad to steer and thrust
Buttons for shoot and Teleport.

Be careful with Teleport... It's not always a get out of jail free card ;)

My code definitely could use optimisation but everything seems to work.
Any feedback is appreciated.

Cheers :)

14


1

Good clone indeed. Player death animation is underwhelming though.

Coding wise, you could save yourself a lot of duplicate code by using arrays.
Instead of:
plyr.p1.x=...
plyr.p1.y=...
plyr.p2.x=...
do:
plyr.p={{x=...,y=...}}
that will allow direct manipulation of the geometry.


Awesome, cheers for that :) I'll have to give that a go on my second pass. There's a heap of messy code in there that'll need cleaning up.


IMHO Pico needs replications of all the arcade classics. I grew up on this game.


Actually a lot of fun, but not as aggressive as the real Asteroids gets after only a few levels where you have much faster moving big asteroids and runaway speeding smaller ones.

In any case, Gold Star for you.

https://youtu.be/WYSupJ5r2zo?t=177


Really nice. Way better than I can currently do.
The ship could use a bit more friction thou to help it slow down a bit.


...and when you exit the teleport previous inertia should still be applied ;)
Very nice clone anyway!



[Please log in to post a comment]