Author Topic: StarBlast (Space Game like Asteroids)  (Read 11696 times)

0 Members and 1 Guest are viewing this topic.

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
StarBlast (Space Game like Asteroids)
« on: July 01, 2018, 01:45:15 am »
Here's my improved version of the game.  It seems to work well, but one thing has me frustrated:

When you run it, you get a simple intro screen where you can choose Asteroids or Orbs, as well as skill level.
Start the game, play it, everything may be fine, but then exit and....NO INTRO SCREEN.  Oh, it's there and it's functional, you just CAN'T SEE IT.
I know the answer is something very simple that's eluding me.  I've tried _NEWIMAGE for the intro screen, but still nothing.  Please help me fix it so I can go on to adding lots more fun features to my game.  Thanks!
* StarBlast_2018-6-30.zip (Filesize: 1.58 MB, Downloads: 248)
« Last Edit: July 01, 2018, 01:48:08 am by SirCrow »
I may not always finish what I've started....

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #1 on: July 01, 2018, 05:30:03 am »
Hi SirCrow. Nice one! Add _AUTODISPLAY to line 1510. _AUTODISPLAY is default setting for SCREENs, but your game loop use _DISPLAY, that disable default settings.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #2 on: July 01, 2018, 06:05:48 am »
I have no idea as to how to fix your 'glitch' but the game is still great. Nice rocks! Have you coded a God mode or 'debug' option yet? My gaming skills are not what they used to be... lol

Looking forward to the next upgrade. Code on.

J
Logic is the beginning of wisdom.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #3 on: July 01, 2018, 09:30:14 am »
Wow, the rocks rock!

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #4 on: July 01, 2018, 11:05:20 am »
Nice works SirCrow!
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #5 on: July 01, 2018, 01:29:52 pm »
Hi SirCrow. Nice one! Add _AUTODISPLAY to line 1510. _AUTODISPLAY is default setting for SCREENs, but your game loop use _DISPLAY, that disable default settings.

Will try it, thanks!
I may not always finish what I've started....

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #6 on: July 01, 2018, 01:35:25 pm »
I have no idea as to how to fix your 'glitch' but the game is still great. Nice rocks! Have you coded a God mode or 'debug' option yet? My gaming skills are not what they used to be... lol

Looking forward to the next upgrade. Code on.

Thanks!  If by God mode you mean invincibility, I may indeed do that.   First, I need to make it harder to keep your ships.  What is a debug option?  I'm not the greatest expert here, either!

Currently, you can jump to the Super Object stage w/ Ctrl-O, or to the next Round w/ Ctrl-R.
I may not always finish what I've started....

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #7 on: July 01, 2018, 01:36:46 pm »
Wow, the rocks rock!

Glad you like them.  They're actually from my own photos from years ago.  I plan to make them even better.
I may not always finish what I've started....

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #8 on: July 01, 2018, 01:38:24 pm »
Nice works SirCrow!

Thank you, Ashish! :o)
I may not always finish what I've started....

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #9 on: July 01, 2018, 01:46:58 pm »
Hi SirCrow. Nice one! Add _AUTODISPLAY to line 1510. _AUTODISPLAY is default setting for SCREENs, but your game loop use _DISPLAY, that disable default settings.

It worked, thanks!  It wasn't anywhere near line 1510, but it works nonetheless.  Much nicer now.  And I think you will like what else I've just added to the game as a greater challenge.  Still a bit sloppy in many places, but always getting better.
« Last Edit: July 01, 2018, 03:05:56 pm by odin »
I may not always finish what I've started....

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #10 on: July 01, 2018, 05:38:04 pm »
Worked for me!  Thank you. :D

J
Logic is the beginning of wisdom.

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
StarBlast: Latest Version (2018.7.3)
« Reply #11 on: July 03, 2018, 02:03:14 pm »
Many more improvements have I made.  Enjoy the game, I hope you will.  (Yoda told me to say it that way.)

Anyway, I'll add a detailed description here in the future;  for now, just read the .doc help file.  Let me know what you think!
Meanwhile, I'll continue working on the game...
* StarBlast_2018-7-3.zip (Filesize: 2.46 MB, Downloads: 226)
I may not always finish what I've started....

FellippeHeitor

  • Guest
Re: StarBlast (Space Game like Asteroids)
« Reply #12 on: July 03, 2018, 04:08:27 pm »
Killer visuals, SirCrow!

I only insist that you should be using _KEYDOWN for the controls. It's instinctive to hold space to keep shooting while moving around, but with your current input routine one can't, because one key pressed cancels the previously held key.

Keep up the awesome work.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #13 on: July 03, 2018, 09:21:18 pm »
SirCrow,

Knew you I did. Say that you would. Yes. :D
Logic is the beginning of wisdom.

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: StarBlast (Space Game like Asteroids)
« Reply #14 on: July 04, 2018, 08:04:03 pm »
Killer visuals, SirCrow!

I only insist that you should be using _KEYDOWN for the controls. It's instinctive to hold space to keep shooting while moving around, but with your current input routine one can't, because one key pressed cancels the previously held key.

Keep up the awesome work.

I agree, and I will give it another try;  when I tried it, not only were things too fast, some controls had actually gone away.  Have you noticed that?  Also, I've been using the mouse for navigation, so the conflicting-keys issue hasn't bothered me much.
Anyway, thank you.  I'm very glad you like the game and I always appreciate the praise.
I may not always finish what I've started....