Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: StarFighter game - working prototype  (Read 1270 times)

Reelya

  • Bay Watcher
    • View Profile
StarFighter game - working prototype
« 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:


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:

« Last Edit: May 12, 2016, 08:41:51 pm by Reelya »
Logged

Gatleos

  • Bay Watcher
  • Mournhold... City of Light... City of MAGIC!
    • View Profile
    • Someone Sig This
Re: StarFighter game - working prototype
« Reply #1 on: May 12, 2016, 10:15:11 pm »

Are you planning on individually generating all those stars? :o
Logged
Think of it like Sim City, except with rival mayors that seek to destroy your citizens by arming legions of homeless people and sending them to attack you.
Quote from: Moonshadow101
it would be funny to see babies spontaneously combust
Gat HQ (Sigtext)
++U+U++ // ,.,.@UUUUUUUU

ShadowHammer

  • Bay Watcher
  • God is love.
    • View Profile
Re: StarFighter game - working prototype
« Reply #2 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.
Logged

Flying Dice

  • Bay Watcher
  • inveterate shitposter
    • View Profile
Re: StarFighter game - working prototype
« Reply #3 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?
Logged


Aurora on small monitors:
1. Game Parameters -> Reduced Height Windows.
2. Lock taskbar to the right side of your desktop.
3. Run Resize Enable

Reelya

  • Bay Watcher
    • View Profile
Re: StarFighter game - working prototype
« Reply #4 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.

Lightman

  • Bay Watcher
  • The groboclones are looking for you.
    • View Profile
Re: StarFighter game - working prototype
« Reply #5 on: May 31, 2016, 09:47:44 pm »

PTW
Logged

IndigoFenix

  • Bay Watcher
  • All things die, but nothing dies forever.
    • View Profile
    • Boundworlds: A Browser-Based Multiverse Creation and Exploration Game
Re: StarFighter game - working prototype
« Reply #6 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.

Biag

  • Bay Watcher
  • Huzzah!
    • View Profile
Re: StarFighter game - working prototype
« Reply #7 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:
Logged