Author Topic: Space shooter  (Read 1621 times)

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Space shooter
« on: September 19, 2014 »
Before slicing the code up into different programs with many comments, I'll just post what I've done so far in this game.

I use objects a lot, don't know if that's good or bad for new beginners. But they're good, because you can, let's say, use the same function for drawing a list of enemies that you use for drawing bullets and bonuses.

Edit Added title screen, a boss fight, sound effects, shield bonuses and more.
« Last Edit: September 28, 2014 by John »

cvirus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: Space shooter
« Reply #1 on: September 19, 2014 »
Objects are a good thing, nowadays if one would like to learn to program they should start with the basic but then asap move to oop, it's almost a standar and in naalaa they are easy and goos to introduce them.

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Space shooter
« Reply #2 on: September 19, 2014 »
 Awesome program!  I need to sit and learn that object programming. You do some really slick tricks with it. It could use an easy mode. I last about 20 seconds when I try to play it.

johnno56

  • Guest
Re: Space shooter
« Reply #3 on: September 19, 2014 »
Rick,

I f you play games, the way I do, then 20 seconds is a looooong time.... :)

and John,

Thanks for the program. :)

J

johnno56

  • Guest
Re: Space shooter
« Reply #4 on: September 19, 2014 »
Very cool game. After two attempts, my third try, lasted longer than 20 seconds... YES!

( tell you coded a "God Mode", right? Right? Oh well, It was worth a try... *sigh* )

J

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Space shooter
« Reply #5 on: September 20, 2014 »
Here comes the player control part. Put the file in the space_pooper folder (it uses the same assets). Just tell me if anything is unclear.

« Last Edit: September 20, 2014 by John »

johnno56

  • Guest
Re: Space shooter
« Reply #6 on: September 20, 2014 »
Many thanks for the example. The differences between the two movements was quite subtle, but very effective. I particularly like how well it was "commented". I'm not too clear on the purpose of the "dot" within the variables, but other than that, I found it quite informative and easy to follow. Looking forward to the next instalment...

J

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Space shooter
« Reply #7 on: September 20, 2014 »
I'm using TM Editor and the Tilemap library for the scrolling background. In this game the background has very little to do with the rest of the game, it's merely eye candy. So if you merge the previous sample with this one, you'll have a controllable ship flying over a scrolling background.

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Space shooter
« Reply #8 on: September 20, 2014 »
 WOW! I feel like I've been to Computer Tech school. Keep up the good work.

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Space shooter
« Reply #9 on: September 20, 2014 »
Well, it might get a bit confusing now. May make very little sense, but I hope it works. Here are simple sprites for bullets. It really is easy when you get the hang of it. Just ask if something is unclear.



« Last Edit: September 20, 2014 by John »

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Space shooter
« Reply #10 on: September 27, 2014 »
A mighty boss fight and a little more coming today, tutorial steps later :)

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Space shooter
« Reply #11 on: September 28, 2014 »
Little late here, because I had to finish the BASS library (which is now used in Space Pooper).

I've updated the zip in the first post. There are now sound effects, a boss fight, a title screen and some more. The boss ain't that tough, but he won't be the last one.

Marcus, I need music, and I've already put your name in the code ... :)
« Last Edit: September 28, 2014 by John »

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Space shooter
« Reply #12 on: September 28, 2014 »
Marcus, I need music, and I've already put your name in the code ... :)

Yes, Master  :)
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Space shooter
« Reply #13 on: September 29, 2014 »
For a game with "pooper" in its name you might as well use a silly tune that gets on peoples' nerves. Here's an old and very cheerful amiga song of mine that I modified a little. Maybe good enough for the title screen?
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Space shooter
« Reply #14 on: September 29, 2014 »
I can extend the first silly one to an ingame thing, and this one should go for the title (I may have used it in some older naalaa demo).
.\\\opz