10.03.2019 - Round 1 results of our "A Love Letter For FreeBASIC" game dev competition have been published. Please be sure to check the results thread: http://games.freebasic.net/forum/index.php?topic=629.0. Don't forget that the competition is continuing with a round 2, lasting till 29th of April, 300 USD first prize. Stay tuned!

Author Topic: building a Tank Game in Open GL  (Read 13116 times)

phycowelder

  • Novice
  • ***
  • Posts: 72
    • View Profile
    • Email
building a Tank Game in Open GL
« on: February 05, 2008, 12:03:03 AM »
Ive decided to try building a game in OpenGL!
just a basic drive around and shoot PC tanks!

this is basic coding, i still have collision and PC tank to work out,
also a top right hand radar and Hub!

i hope you enjoy this preview!!!

Screeny

Download
TANKS.zip

Dr_D

  • Forum Sage
  • *****
  • Posts: 257
    • Yahoo Instant Messenger - dr_davenstein
    • View Profile
    • Dr_D's apps
    • Email
Re: building a Tank Game in Open GL
« Reply #1 on: February 05, 2008, 01:48:32 AM »
That's not bad man. Runs really smooth. You gonna try to go online with it?

BadMrBox

  • Forum Sage
  • *****
  • Posts: 411
    • View Profile
    • BadMrBox.com
Re: building a Tank Game in Open GL
« Reply #2 on: February 05, 2008, 09:27:37 AM »
Looks like an ok start there :D. Run's smooth as the Dr said. Looking forward to see collisions. :D

Lachie Dazdarian

  • Double dipper
  • Administrator
  • Forum Sage
  • *****
  • Posts: 1308
    • Yahoo Instant Messenger - lachie13
    • View Profile
    • The Maker Of Stuff
    • Email
Re: building a Tank Game in Open GL
« Reply #3 on: February 05, 2008, 05:04:56 PM »
Runs smo...well, not really. :P

If only I could pick lowers resolution and bit depth like I can with syn9's Zero GTR. But then again, we are talking here about accommodating probably only one user (that's me!).
"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist

notthecheatr

  • Global Moderator
  • Forum Sage
  • *****
  • Posts: 351
  • Who's the guy from 21 Jump Street?
    • AOL Instant Messenger - notthecheatr
    • Yahoo Instant Messenger - TheMysteriousStrangerFromMars
    • View Profile
    • notthecheatr Home
    • Email
Re: building a Tank Game in Open GL
« Reply #4 on: February 05, 2008, 07:43:47 PM »
Good, but do make sure you implement collision.  Also, make sure you figure out a way of avoiding problems where the camera intersects a polygon and you see inside/past objects.  With the walls, you can simply give them some depth.  I'm not sure how you'd do it with the trees, though (by the way better tree objects would be nice... but of course I understand it's difficult to make the game fast enough to play with decent objects).
The funniest thing happened yesterday.

phycowelder

  • Novice
  • ***
  • Posts: 72
    • View Profile
    • Email
Re: building a Tank Game in Open GL
« Reply #5 on: February 05, 2008, 09:22:51 PM »
i will work on the collision! and try my best on camera views with object collision!

and my tree options with trees are 2D alpha trees, low poly trees or high poly trees!

2d poly trees are only good for 2.5d games ortho tile and some(or most) 3d games.
low poly trees easy to render it took me 30Min to make and really low poly!
high poly trees while looking the best but implementing 20+ trees, plus other high poly models is just to slow 4 games!


by the way I'm proud of my trees! they ain't great but they r cool!

Lachie Dazdarian

  • Double dipper
  • Administrator
  • Forum Sage
  • *****
  • Posts: 1308
    • Yahoo Instant Messenger - lachie13
    • View Profile
    • The Maker Of Stuff
    • Email
Re: building a Tank Game in Open GL
« Reply #6 on: February 06, 2008, 04:11:53 PM »
Hrm, I expected some sympathy. :P

Oh, well. I'll see if I can get a boost up the demo by messing with the code.

EDIT: Yeah, changing the resolution or bit depth didn't really work so I guess nothing until I get a new PC.
« Last Edit: February 06, 2008, 05:00:35 PM by Lachie Dazdarian »
"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist

phycowelder

  • Novice
  • ***
  • Posts: 72
    • View Profile
    • Email
Re: building a Tank Game in Open GL
« Reply #7 on: February 06, 2008, 07:19:53 PM »
sorry Lachie! i will try to ease some of the simple GL code! i have settings maxed!

ill go through my Books for low code, then we can see if that works 4 ya!

Lachie Dazdarian

  • Double dipper
  • Administrator
  • Forum Sage
  • *****
  • Posts: 1308
    • Yahoo Instant Messenger - lachie13
    • View Profile
    • The Maker Of Stuff
    • Email
Re: building a Tank Game in Open GL
« Reply #8 on: February 07, 2008, 03:54:07 PM »
Don't worry. Many tried to battle with my PC and failed. Not sure if it's worth it. Still, if impossible missions rub you...you can always try. :P
"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist

notthecheatr

  • Global Moderator
  • Forum Sage
  • *****
  • Posts: 351
  • Who's the guy from 21 Jump Street?
    • AOL Instant Messenger - notthecheatr
    • Yahoo Instant Messenger - TheMysteriousStrangerFromMars
    • View Profile
    • notthecheatr Home
    • Email
Re: building a Tank Game in Open GL
« Reply #9 on: February 10, 2008, 09:42:09 PM »
[semi-offtopic]

By the way Lachie, is it true you're getting a new computer?

If so, I'd like to recommend you keep the old one... it's always nice to have a "lowest of the low" to test stuff on ;)

I myself hope to be getting a new computer sometime this year or next.  I'll have to make it a good one, I'm going to have the "highest of the high" if I can  ;D

[/semi-offtopic]
The funniest thing happened yesterday.

Lachie Dazdarian

  • Double dipper
  • Administrator
  • Forum Sage
  • *****
  • Posts: 1308
    • Yahoo Instant Messenger - lachie13
    • View Profile
    • The Maker Of Stuff
    • Email
Re: building a Tank Game in Open GL
« Reply #10 on: February 11, 2008, 04:10:32 PM »
Well yeah, I should get a new PC soon. I must see how some things will develop in my life in the new two months.

And I'll try to keep the old PC. Only, my mum likes to throw old things away so... :P
"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist

notthecheatr

  • Global Moderator
  • Forum Sage
  • *****
  • Posts: 351
  • Who's the guy from 21 Jump Street?
    • AOL Instant Messenger - notthecheatr
    • Yahoo Instant Messenger - TheMysteriousStrangerFromMars
    • View Profile
    • notthecheatr Home
    • Email
Re: building a Tank Game in Open GL
« Reply #11 on: February 11, 2008, 05:03:40 PM »
Oh, I know what that's like, my mom's the same way :P
The funniest thing happened yesterday.

relsoft

  • Recruit
  • **
  • Posts: 48
    • View Profile
    • Email
Re: building a Tank Game in Open GL
« Reply #12 on: February 12, 2008, 07:58:20 AM »
Screens look awesome! 

I'm not a fan of 3d gameplay though. :*(