QB64.org Forum

Active Forums => Programs => Topic started by: SirCrow on July 01, 2018, 01:45:15 am

Title: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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!
Title: Re: StarBlast (Space Game like Asteroids)
Post by: Petr 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: johnno56 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
Title: Re: StarBlast (Space Game like Asteroids)
Post by: bplus on July 01, 2018, 09:30:14 am
Wow, the rocks rock!
Title: Re: StarBlast (Space Game like Asteroids)
Post by: Ashish on July 01, 2018, 11:05:20 am
Nice works SirCrow!
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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!
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow on July 01, 2018, 01:38:24 pm
Nice works SirCrow!

Thank you, Ashish! :o)
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: johnno56 on July 01, 2018, 05:38:04 pm
Worked for me!  Thank you. :D

J
Title: StarBlast: Latest Version (2018.7.3)
Post by: SirCrow 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...
Title: Re: StarBlast (Space Game like Asteroids)
Post by: FellippeHeitor 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: johnno56 on July 03, 2018, 09:21:18 pm
SirCrow,

Knew you I did. Say that you would. Yes. :D
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow 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.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow on July 04, 2018, 08:07:39 pm
SirCrow,

Knew you I did. Say that you would. Yes. :D

It is OK to like Star Trek and Star Wars!
(And I guess it's OK to like neither.)
Title: Re: StarBlast (Space Game like Asteroids)
Post by: johnno56 on July 04, 2018, 11:27:25 pm
Ok. Now you have dared to venture where few will choose to go...

When it comes to Star Trek, and the other franchise that will not be named, I use the words of the great and all powerful, Mr. Spock, "Captain. You must learn to govern your emotions. They will be your undoing."
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow on July 04, 2018, 11:47:00 pm
Ok. Now you have dared to venture where few will choose to go...

When it comes to Star Trek, and the other franchise that will not be named, I use the words of the great and all powerful, Mr. Spock, "Captain. You must learn to govern your emotions. They will be your undoing."

Fascinating.  In any case, you'll have to remain ignorant of  the many scientifically inaccurate aspects if my little game here.  For one thing, if those are nebular clouds, with all those stars, possibly even farther away, why would any of that appear to move whilst the little spaceship in the foreground chases the space rocks around?  Best advice: Shut up and enjoy the game!  Am I right?  :D
By the way, don't forget to use Ctrl-J and Ctrl-T to turn OFF the vanishing and/or turning of the Objects, if it bothers you.  It'll be saved in the .ini file.
Title: Re: StarBlast (Space Game like Asteroids)
Post by: johnno56 on July 05, 2018, 03:21:05 am
Most SciFi type games are rife with inaccuracies. But, that's ok, after all they are just games. Let's take Asteroids, for example, and compare it with reality. Most would have you think that most asteroids belts are like the one that the Millennium Falcon flies through.... Our own asteroid belt contains millions of asteroids, yet they are so far apart, chances are if you could see one you would probably never be able to see another...

Inaccuracies or not the game is still fun! Code on!

J
Title: Re: StarBlast (Space Game like Asteroids)
Post by: SirCrow on July 10, 2018, 03:12:50 pm
Most SciFi type games are rife with inaccuracies. But, that's ok, after all they are just games. Let's take Asteroids, for example, and compare it with reality. Most would have you think that most asteroids belts are like the one that the Millennium Falcon flies through.... Our own asteroid belt contains millions of asteroids, yet they are so far apart, chances are if you could see one you would probably never be able to see another...

Inaccuracies or not the game is still fun! Code on!

Yeah, I was gonna say exactly all the same stuff you just said!  No need now.  Instead, check out the latest version of StarBlast:
http://qb64.thejoyfulprogrammer.com/showthread.php?tid=1349&pid=7233&rndtime=15312491871534469706#pid7233 (http://qb64.thejoyfulprogrammer.com/showthread.php?tid=1349&pid=7233&rndtime=15312491871534469706#pid7233)