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 :)
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/25532/icon.png)
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.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/41502/7_Calvin.jpg)
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.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/10886/9_hanamaru_ico.png)
IMHO Pico needs replications of all the arcade classics. I grew up on this game.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/15232/me-square.jpg)
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.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi27.png)
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.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/39409/JetSetWilly_piq_582_Amiga_80x80.png)
...and when you exit the teleport previous inertia should still be applied ;)
Very nice clone anyway!
[Please log in to post a comment]