Log In  

Cart #12563 | 2015-08-10 | Code ▽ | Embed ▽ | No License

An asteroids-like game for PICO 8.


UP: thrust
LEFT/RIGHT: rotate
Z: shoot
X: blast (area attack radiating from ship; uses energy)

Don't get hit by the asteroids; shoot the asteroids for points. Big ones split into medium, medium ones sometimes split, small ones never do.

Each player starts with 3 lives, and also has a "power" gauge. The longer you stay alive, the higher the gauge goes. When it passes certain points, you automatically upgrade (upgrades: more bullets, longer distance bullets, multi-shot). When you die, it resets. The secondary attack ("blast") uses up 1 "tick" of energy (3 ticks per upgrade), so you can choose to use it to save yourself and rack up points, but it will slow down your upgrade path.

At this point, probably all that I'm going to polish on this is sfx and maybe some graphical tweaks.

Original Post

So, I'd been thinking of making an asteroids-like game (probably Asteroids, but with some interesting weapons or abilities added in). I was a bit hesitant to go full vector drawing, plus I kinda wanted to mess with sprites. But, you can't rotate sprites (though amusingly, grobstein just posted a thread about just that).

My solution: a two-sprite ship, with both sprites circular. This allows for an arrow-like shape, (via rotating one sprite's coordinates around the other).

I ... kinda like it so far? Right now it's got movement and physics and such. No collisions yet, very boring asteroids. But, a start.


UP: Thrust
Right/Left: rotate

P#12068 2015-07-30 21:21 ( Edited 2015-08-10 21:03)

Very nice start!

P#12188 2015-08-02 13:25 ( Edited 2015-08-02 17:25)

actually, because the asteroids ship was just three lines, you could use the line() function to draw it. use some vector normals of the current direction!

P#12192 2015-08-02 19:43 ( Edited 2015-08-02 23:43)

Updated (see above, 0.2). Fun new things:

  • Shooting!
  • Asteroid destroying!
  • Score keeping!
  • Improved ship rotation (real rotation instead of 1 part circling the other)
  • Has a better name (now named after 1036 Ganymed, the largest near-Earth asteroid)

Still no player/asteroid collisions, so mostly this is a flight sim plus shooting stuff game at the moment. Lots more to do, but pretty happy with how it is shaping up.


I am noticing, sadly, that this runs pretty badly in the web player now. It runs fine locally though. I'm guessing some of the list manipulation and comprehensive bullet collision detection stuff may be a bit much. Oh well.

P#12206 2015-08-03 08:23 ( Edited 2015-08-03 12:26)

Did another quick update, just to hopefully improve performance. Seems slightly better, not perfect, but not as bad.

P#12209 2015-08-03 08:42 ( Edited 2015-08-03 12:42)

Added player collision detection, though the ship doesn't get destroyed as of yet. Mostly uploaded so I could see how performance in the web player was. Answer: not great. I'll need to look over the player collision detection a bit and see if I can improve it.

P#12258 2015-08-04 09:57 ( Edited 2015-08-04 13:57)

much better performance now! doesn't slow down when I shoot =)

P#12267 2015-08-04 12:15 ( Edited 2015-08-04 16:15)

Feels nice. The ship feels like it has a big, agile spider abdomen. It might be fun if only that part counted for collisions.

P#12346 2015-08-05 22:12 ( Edited 2015-08-06 02:12)

New version. Changelog:

  • Added in logo intro
  • Added in primitive menu
  • Player death is a thing (no animation for it yet, though)
  • 2 player mode works

So this is the first version that's a relatively real game. Still lots to do (I have plans for some interesting upgrades and weapons, and gameplay tweaks). But, it's coming along at least.

P#12364 2015-08-06 13:06 ( Edited 2015-08-06 17:06)

OK, so there's a relatively close-to-done version now. Title graphics are courtesy of Josh / cortex -- much thanks. The game now features a full game loop (including death animations, etc), multiple lives per player, ship upgrades, etc.

I still have a few upgrades I'd like to put in, and in particular the sfx needs work (very basic right now).

P#12487 2015-08-08 22:34 ( Edited 2015-08-09 02:34)

very nice! going to make big asteroids split when you hit them?

P#12488 2015-08-08 23:38 ( Edited 2015-08-09 03:38)

Yep. Current plan for the asteroids is to add in a new, larger category (the "big" ones now are medium-sized, the real big ones will composite a few of those sprites together). Then, make big ones split to medium, and medium to small.

The only other major gameplay stuff I have in mind right now is to add a "phasing" button ("x") that uses up power from your power gauge (thus taking away upgrades) to make you incorporeal for a short time. That, and tweaking the difficulty ramp-up; right now, it's relatively simple ramp-up over time.

P#12493 2015-08-09 07:45 ( Edited 2015-08-09 11:45)

Woo guestin' titles.

P#12494 2015-08-09 08:21 ( Edited 2015-08-09 12:21)

There's now large asteroids. Also, an area attack (radiating from the ship). I chose to not do the phasing, I think the AoE attack actually functions better in the game.

Given how close this is to the charcount / token count, probably won't be doing much more with this other than sfx and minor tweaks. Feedback appreciated, though, as are high scores :)

P#12564 2015-08-10 17:03 ( Edited 2015-08-10 21:03)

[Please log in to post a comment]