Advertisement Jump to content
Sign in to follow this  
jmakitalo

Gravity: Old school arcade game

This topic is 1777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I do a lot of 3D graphics and game programming and have been working on a rather large project for a few years now. Around a week back, however, I started pondering if I could make a simple yet entertaining game in a few evenings. I keenly remember a game called Lunar lander from the past, which I liked a lot. I wanted to make something similar, but with a twist or two.

 

The result is a game called Gravity, where you fly a little space ship over the surface of a planet, trying to collect valuable diamonds, emeralds and the kind. But it is not made easy: you have to fight gravity and various enemy ships, whose quantity increases as you proceed. Collect all the stars in a level to earn extra score. How high a score can you get?

 

Below is a picture. However, the graphics are simple on purpose, test the game itself to see if it's any good!

 

gravity.png

 

 

Download the game from here . At the moment binaries are built for Windows and linux (64-bit only).

 

Gamepads are also supported, but as of yet cannot be configured.

 

I highly appreciate your comments and suggestions.

Share this post


Link to post
Share on other sites
Advertisement

Hi.

 

I get the error:

"Error in shader program linking!",

"Fragment shader(s) were no successfully compiled before glLinkProgam() was called. Link failed",

"Could no load ortho textured shader!"

 

Picture of console window:

[attachment=20313:err.jpg]

 

System: Windows 8 x64 Pro, AMD Radeon 7770, 8 GiB RAM.

 

-Ryan.

Share this post


Link to post
Share on other sites

Hi.

 

I get the error:

"Error in shader program linking!",

"Fragment shader(s) were no successfully compiled before glLinkProgam() was called. Link failed",

"Could no load ortho textured shader!"

 

Picture of console window:

 

System: Windows 8 x64 Pro, AMD Radeon 7770, 8 GiB RAM.

 

-Ryan.

 

Thanks a lot for the report! I guess this is how "portable" OpenGL is. I'm running on an nvidia chip and got no errors.

 

Perhaps the problem was an expression of the form "gl_TexCoord[0]*a.xy". I tried to fix it and uploaded a new version.

Hopefully the problem is resolved. I took a precaution and moved the shader code to separate text files, which can be

used to fix further incompatibility issues without recompiling the whole program.

Share this post


Link to post
Share on other sites

 

Hi.

 

I get the error:

"Error in shader program linking!",

"Fragment shader(s) were no successfully compiled before glLinkProgam() was called. Link failed",

"Could no load ortho textured shader!"

 

Picture of console window:

 

System: Windows 8 x64 Pro, AMD Radeon 7770, 8 GiB RAM.

 

-Ryan.

 

Thanks a lot for the report! I guess this is how "portable" OpenGL is. I'm running on an nvidia chip and got no errors.

 

Perhaps the problem was an expression of the form "gl_TexCoord[0]*a.xy". I tried to fix it and uploaded a new version.

Hopefully the problem is resolved. I took a precaution and moved the shader code to separate text files, which can be

used to fix further incompatibility issues without recompiling the whole program.

 

 

That did the trick :)

Now... I just have to work out how to get the ship to fly better :)

Share this post


Link to post
Share on other sites


That did the trick
Now... I just have to work out how to get the ship to fly better

 

Good to hear. I also now tested the game on a laptop with integrated intel chip.

 

The control of the ship is a bit tricky at first, but you learn to master it.

Share this post


Link to post
Share on other sites
The control of the ship is a bit tricky at first, but you learn to master it.

Ja, I'm getting the hang of it.

 

I've got one suggestion: Can you add a barrier to the left and right edge of the world ?, As i flew right past the landing pad and had to wait for the ship to crash to continue( I also wen't uncontrolable backwards the first time i took off.

 

But other then that it is a really nice game!, Probably better when I get the hang of it.

 

Good luck!

 

:)

 

-Ryan.

Share this post


Link to post
Share on other sites


I've got one suggestion: Can you add a barrier to the left and right edge of the world ?, As i flew right past the landing pad and had to wait for the ship to crash to continue( I also wen't uncontrolable backwards the first time i took off.

 

That's a good suggestion. I've felt the pain myself a couple of times, but didn't elevate the problem very high in priority at first. Should the ship take damage on collision with the edges? This might appear unexpected. On the otherhand a huge wall might seem a bit silly. I could extend the ground "infinitely" to avoid the issue. Or maybe make the ground get progressively higher until it hits the top of the screen. This might be most natural.


But other then that it is a really nice game!, Probably better when I get the hang of it.

Good luck!

 

Thanks!

Share this post


Link to post
Share on other sites

 


I've got one suggestion: Can you add a barrier to the left and right edge of the world ?, As i flew right past the landing pad and had to wait for the ship to crash to continue( I also wen't uncontrolable backwards the first time i took off.

 

That's a good suggestion. I've felt the pain myself a couple of times, but didn't elevate the problem very high in priority at first. Should the ship take damage on collision with the edges? This might appear unexpected. On the otherhand a huge wall might seem a bit silly. I could extend the ground "infinitely" to avoid the issue. Or maybe make the ground get progressively higher until it hits the top of the screen. This might be most natural.

What about having a "buffer" of high density air or something that pushes you away from the edge ?

 

 



But other then that it is a really nice game!, Probably better when I get the hang of it.

Good luck!

 

Thanks!

Your welcome :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!