Log In  

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

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 :)

P#71806 2020-01-07 05:00 ( Edited 2020-01-07 06:03)

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.

P#71810 2020-01-07 07:24

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.

P#71812 2020-01-07 09:46

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

P#71818 2020-01-07 17:28

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

P#71824 2020-01-07 20:04 ( Edited 2020-01-07 20:05)

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.

P#71851 2020-01-10 00:10

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

P#71906 2020-01-13 17:32

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 07:47:10 | 0.011s | Q:27