Log In  

Cart #31381 | 2016-10-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #31200 | 2016-10-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #31001 | 2016-10-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

First time programming a game. Decided to try making a space shooter. My inspiration came from old arcade games such as Bostonian.

Aim of the game is to protect the planet that looks like Earth.

-Your ship can travel is 8 directions.
-main weapon (z) is unlimited
-secondary weapon (x) is limited to 3 shots.
-top right bar (green) is ship health
-blue bar is planet health.
-the green box will blink red when enemy ships are close to the planet
-if you are in the dark-blue zone around the planet your health increases
-planet health will regenerate

-green generation stations generate small fighters and larger battlestations
-red text in top left gives number of generation stations left.
-small yellow fighters attack your ship with a laser inflicting minimal damage
-larger yellow battle stations fire larger bullets inflicting more damage
-battle stations only move when fighters are close to the planet

-mini-map shows your location in red, generation stations in green and battle stations in yellow
-map has periodic boundary conditions - so you fly through and end up on the opposite side of the map

-you can find behind the planet as a temporary shield
-early in the game try to destroy green stations that are very far away
-if you collide with an enemy you take some damage but become temporarily invincible.

v1.8 update:
-odd local-var problem with high-scores resolved
-added explosions when home planet is hit.

v1.7 update:
-another fix to the high-scores. I think it's working now :-)

v1.6 update:
-fixed high-scores to work when you lose :-(

v1.5 update:
-high-scores are now saved
-point-score dependent on difficulty level
-new win/lose screens

v1.4 update:

-tweaked enemy speed and regeneration rate for easy/medium levels for better game balance


-clean-up for endgame screens and time-outs.

v1.2 update:

  • there is now an end-game screen.
  • menu choice of easy, medium or hard

v1.1 update:

  • moved mini-map to lower level. Sprites no longer hidden
  • reduced number of background stars/fighters to reduce CPU load
  • added CPU limits for bullet/enemy generation
  • added warning sound/visual when low on energy


P#31002 2016-10-15 23:23 ( Edited 2016-10-16 03:23)

Nice game! And addictive too. You got good game mechanics. Hit collisions are very precise, which means that small objects are tough to hit, but that's fair. I've only blasted 6 or 7 green ships generators, but I'll try again! Is it possible to finish the game btw, or ennemies won't stop coming and your goal is just to live as long as possible?

My only small complain is that there can be quite a lot of bullets and the game then slows down a lot. Maybe you should track the total of bullets to limit their number, or check stat(1) for CPU usage: if it's going close to 1, then stop adding bullets. Or managing collisions differently, I didn't check your code.

The map position is sometimes frustrating too, as it hides targets and ships firing at you. Why not putting that map at the lowest level, ie drawing sprites above it? I know it sounds strange, but when you get foes around you, showing them is top priority, and this map is more useful in calmer moments when you're looking for your way; that is, precisely when there are less foes to obscure the map.

Anyway, I enjoyed!

P#31018 2016-10-16 06:40 ( Edited 2016-10-16 10:40)


Thank you for the feedback, I appreciate it. I'm glad you enjoyed the game.

I will investigate CPU usage as you described. See if I can speed things up when enemies get crazy. Can I ask what system you are running on?

I agree the map can get in the way, I'll move it to the lowest level as you suggest.

Thanks again!

P#31025 2016-10-16 07:32 ( Edited 2016-10-16 11:32)

oh.. I forgot. If you destroy all the bases the game restarts, but I think it would be much more rewarding to add a victory screen.

P#31027 2016-10-16 07:36 ( Edited 2016-10-16 11:36)

Version 1.1

  • moved mini-map to lower level. Sprites no longer hidden
  • reduced number of background stars/fighters to reduce CPU load
  • added CPU limits for bullet/enemy generation
  • added warning sound/visual when low on energy

Adding a 'You Win screen' is on the to-do list.

P#31037 2016-10-16 09:53 ( Edited 2016-10-16 13:53)

Version 1.2

  • there is now an end-game screen.
  • menu choice of easy, medium or hard
P#31053 2016-10-16 14:35 ( Edited 2016-10-16 18:35)

Version 1.3

-clean-up for endgame screens and time-outs.

P#31059 2016-10-16 15:58 ( Edited 2016-10-16 19:58)

Cool game... Rather hectic (I didn't survive long) but I like the simplicity of the concept :-)

P#31102 2016-10-17 07:07 ( Edited 2016-10-17 11:07)

Thanks fuchikoma71 for the nice comments!

It's been a lot of fun making my own game.

I've adjusted the enemy speed and spawn rates to make the 'easy' and 'medium' levels consistently beatable.

P#31105 2016-10-17 09:01 ( Edited 2016-10-17 13:01)

nice one! The small flying saucers sure are pesky even if low damaging they bug like like hell. Next step would be making a kind of Star Control hypermelee combat game.

P#31125 2016-10-17 18:16 ( Edited 2016-10-17 22:16)

I like the way you enter your initials for HIGH SCORE. I had forgotten it was something like this - so simple for good arcade games.

P#31439 2016-10-21 23:31 ( Edited 2016-10-22 03:31)

Maybe it's just me and I still don't understand how to play, but difficulty still needs balance imo. Even in easy level, there's no way I can go beyond destroying a third of green bases. Then the big yellow saucers keep coming to Earth and player spaceship is far too slow to reach distant bases and go back to defend Earth. Game mechanics are still good though, but the difficulty is a bit frustrating.

P#31443 2016-10-22 01:31 ( Edited 2016-10-22 05:31)

Very nice game! The sound effects are perfect. The first time my health meter beeped I paused the game and thought "crap, what the hell is beeping now?!" because I thought it was something around my house, not the game.. hahahaha (I had just woken up, don't judge.)

P#31449 2016-10-22 09:59 ( Edited 2016-10-22 13:59)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 00:10:28 | 0.014s | Q:32