Bay 12 Games Forum

Finally... => Creative Projects => Topic started by: Reelya on May 12, 2016, 08:30:59 pm

Title: StarFighter game - working prototype
Post by: Reelya on May 12, 2016, 08:30:59 pm
As I mentioned to a few people before, I spent the last few weeks working on a game prototype for class. It was original based on a procedural planet generator I wrote years ago. So, here's the current prototype that I'm working with. The tech used is C++/OpenGL with a little bit of the Glut library for window management, SFML for loading sounds, SOIL for loading texture files.

If anyone wants to boot this up for a few minutes I'm definitely open to ideas on what to add.

http://retrogressiongames.com/projects/starfighter/StarFighter.zip

Here's a quick screenshot:
(https://img.itch.io/aW1hZ2UvNjcxMDEvMzA0NjI3LnBuZw==/347x500/Ifd8rd.png)

It's actually pretty fun to load this up and shoot down the enemy ships that try and attack you. Go at very slow speeds if you want to fight stuff, but you can also accelerate fast and scoot out to the edge of the solar system if you want to explore. The AIs are currently pretty goddamn dumb, but they do the job. Fly into a space station (literally) to get health if you need it.

Eventually, I'm going to expand this to a whole procedurally generated galaxy. Here's a screenshot of my (currently separate) galaxy generator algorithm:

(http://retrogressiongames.com/projects/starfighter/galaxy.png)
Title: Re: StarFighter game - working prototype
Post by: Gatleos on May 12, 2016, 10:15:11 pm
Are you planning on individually generating all those stars? :o
Title: Re: StarFighter game - working prototype
Post by: ShadowHammer on May 12, 2016, 10:44:20 pm
That's really cool looking so far! I haven't tried it yet, but I'll be sure to tell you how it is when/if I do.
Title: Re: StarFighter game - working prototype
Post by: Flying Dice on May 13, 2016, 02:26:37 pm
Are you planning on individually generating all those stars? :o
And if so, would you pregen everything at game creation or generate new systems as the player enters them?
Title: Re: StarFighter game - working prototype
Post by: Reelya on May 13, 2016, 02:35:11 pm
Definitely on the fly. Pregen for a billion+ stars isn't going to work. The solar system in the current build is generated at runtime. Actually, if you die then it generates a whole new solar system.
Title: Re: StarFighter game - working prototype
Post by: Lightman on May 31, 2016, 09:47:44 pm
PTW
Title: Re: StarFighter game - working prototype
Post by: IndigoFenix on May 31, 2016, 11:46:28 pm
The usual solution would be to generate the solar systems based on a seed that is determined by their location.  Then you could generate them on the fly and wouldn't have to store them in memory.
Title: Re: StarFighter game - working prototype
Post by: Biag on June 01, 2016, 10:46:17 pm
Any chance of an OS X build? I tried running with WINE and got a bunch of OpenGL errors, unfortunately. Here's the output, if you're curious:

Code: [Select]
cDisplayModeInit::Draw: GL ERROR: cDisplayModeInit::Draw: GL ERROR: cDisplayModeInit::Draw: GL ERROR: cDisplayModeInit::Draw: GL ERROR: cDisplayModeInit::Draw: GL ERROR: cDisplayModeInit::Draw: GL ERROR: