Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 02-13-2008   #21
Tawa
 
Tawa's Avatar
 
Last Online: 12-20-2021
Join Date: Mar 2006
Posts: 6,245
Thanks: 2,121
Thanked 3,365 Times in 1,740 Posts
Groans: 29
Groaned at 44 Times in 35 Posts
Default Re: C++ Game Programming

Quote:
Originally Posted by Kingroudy View Post
anyway, i told u that this is your choice.
Thank You

Quote:
Originally Posted by Sony View Post
and what do u do in a company when the boss told u to show the source code to some mates in order to update it ???
in the workgroup no black boxes
Well, About The Company And The Boss Question, Of Course I Would Share The Source Code To "All" My Mate In Order To Update It, Cause In A Company It's Work, And Source Codes Arn't Something Private... We're In A Different Situation In Here Dude

Quote:
Originally Posted by ZeRaW View Post
open source is gr8 but there tutorials online everywhereunless u r too lazy to follow step by step tutorials. Great work Tawa especially you are a beginner. Now what you are missing is a game loop. if you want some advanced shit try nehe.gamedev.net and you will get started with openGL. yeah everything is that easy
anways in your case you do not needmultithreading you are just missing the concept of a game loop.
Thanks For The Web, I'll Start Surfing It As Soon As I Get The Internet At Home, Oh, And It's Very Soon I Hope
Quote:
Originally Posted by ZeRaW View Post
everything is running in a while(1) loop here is a small example:
in a small way this is what is usually done for a game.
well there are lots of more stuff but hawdeh el basics. and check that neeh thing i gave you,, i know you are smart so you ll be programming an ambient occlusion shader in just a few months
while(1)
{
clearBackground();
if(escape is pressed) exit()
updatePlayerMovement();
updateAI();//if there is AI
draw()
}
I Didn't Use A while(1) Loop, I Created A Function To Check When The Game Is Over, And I Used The do{}while(!gameover(T) && !lostgame);
The gameover(const char T[22][42]) Function Checks When There Arn't Anymore Characters That The Snake Should Eat And Return A true Value When There Arn't Anymore Ones, It Is Made To Move From A Level To Another, And The lostgame Variable Turns Into true When The Snake Hits The Wall Or Hits Itself.

Quote:
Originally Posted by icemaker View Post
simply we need experince we need upgrade,
eno a very simple example if u created a gam like this one and lets say one of the members upgraded it, arent you gonna benefit ?!?!

thank you.
Thank You For Your Appreciation Budy , About The Benefits, I'm A Learn-Yourself Guy

Quote:
Originally Posted by Sony View Post
Ideas for Updates:

• option to save/load ( cs user can't play all the way ! )
• option to change controllers ( user will feel comfortable with his own controllers )
• option to change the color of the snake,the borders the food ( user may like to put Orange,yellow,green-olive,etc...)
• make it hard for the user and add some obstacles in the field ( like a rock)

PS: u train urself as programmer i train myself as tester...lol
btw they say : for each Microsoft programmer a tester
Great Ideas For Updates, I'll Start Working On Them And I Would Be Glade To Take You As The Tester Of My Programs


__________________
What we do in life, echoes in eternity.
Tawa is offline   Reply With Quote
Old 02-20-2008   #22
Tawa
 
Tawa's Avatar
 
Last Online: 12-20-2021
Join Date: Mar 2006
Posts: 6,245
Thanks: 2,121
Thanked 3,365 Times in 1,740 Posts
Groans: 29
Groaned at 44 Times in 35 Posts
Default Re: C++ Game Programming

Sorry For My Late Reply But I Was So Busy Last Week, Tawa Seniór Was In Lebanon And I Started My 2nd Semester

Anyways, I Worked On Some Of The Upgrade But There's Still A Little Bug That I'll Leave You Guys To Figure Out
I Added A Menu To The Game, I Hope You'll Like It
Here's The Link: Snake
__________________
What we do in life, echoes in eternity.
Tawa is offline   Reply With Quote
Old 02-23-2008   #23
m0
Registered Member
 
m0's Avatar
 
Last Online: 01-18-2010
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: C++ Game Programming

Personal opinion, There are a million snakes program out there which is free and no source code, and with source code which is complete. As other members here stated, this game is not a "new" game, it is already done and already polished. So why wont you post your source code so others can see how you did it? I really don't care cause googling Sake Game Source Code gives a million responses. But it is the thought that counts, and your thought states that your against it.

Technically speaking, creating a Snakes or a Tetris game isn't difficult, it is a very simple logic game. If your a new to programming, it shouldn't take you more than a couple of days doing it. But if you understand programming, it shouldn't take you more than a couple of hours. With a good design and know a bit of programming, I recall the logic of the snakes game is around ~100 LOC.

For example, http://www.strille.net/tutorials/snake/index.php is a snakes game made in Flash (action script), it is around 100 LOC and as you see it is simple conditional statements such as forloop, if, else.

So if you guys want to learn programming, it is very simple, everyone learns from others and the opensource community is there so it can teach others and others can improve it. That is how most smart programmers learn these days, by being part of an open source project and giving to the community
m0 is offline   Reply With Quote
The Following User Says Thank You to m0 For This Useful Post:
Kingroudy (02-24-2008)
Old 02-23-2008   #24
xcoder
Ma ghayro
 
xcoder's Avatar
 
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
Default Re: C++ Game Programming

I don't feel it would be a mistake sharing your codes with others. same thing applies on you when you download examples from the internet. note that people worked hard for them as well.
i don't mind sharing my codes for educational purposes. therefor i am for open source because it's the only way to learn fast from other's hard work and way of programming
i will start coding an important application this summer and launch it as open source so anyone can add to it, modify in it and it will be totally free of charges.
__________________
http://twitter.com/danymoussa
xcoder is offline   Reply With Quote
The Following User Says Thank You to xcoder For This Useful Post:
Kingroudy (02-24-2008)
Old 02-24-2008   #25
Gilgamesh
Registered Member
 
Gilgamesh's Avatar
 
Last Online: 11-16-2009
Join Date: Oct 2007
Posts: 2,005
Thanks: 632
Thanked 1,449 Times in 834 Posts
Groans: 12
Groaned at 9 Times in 8 Posts
Default Re: C++ Game Programming

Man this is good....keep it up!

and concerning the source issue although I use Linux because I appreciate open source....I can understand what tawa is talking about since he can't be credited in anyway(something which the developers of linux distro's get) if he passes the code to someone else...

again nice work tawa
Gilgamesh is offline   Reply With Quote
The Following User Says Thank You to Gilgamesh For This Useful Post:
Tawa (02-24-2008)
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
game, programming



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:52 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share