Sunday, May 10, 2009

Easy c++ game ideas?

i recently started learning c++ 3 days ago and i'm interested in making console based games any ideas for an easy but fun game?





thanx!!

Easy c++ game ideas?
My first computer game program was black jack. Who could resist that?





It's nice because it uses just enough tricks and tools for the new programmer:


- random number generation


- get user input (agree to another card or stay)


- storage array for 5 cards


- a loop for getting the 5 cards, and no more than 5 (rules, right?)


- summing the cards, analyzing if user is over, under, Winner





---Easy to expand on the game as you gain programming proficiency:


- play the dealer (computer, or even 2nd user)


- fancy display of cards, instead of just names/numbers


- sounds and images to signal win or loose...


- develop an array of 52 cards that is randomly sorted and picked off, like a real deck...


- develop a betting/payout system...calc odds so payout stays at 15% like a casino...





If you like math, probability, simple gaming, and gathering experince fast with a game you and others might actually enjoy, this could be it.





you go!
Reply:Seems that you are the very beginner, so start simple.





Then try to make some game which requires handling of random behavior, like playing rock, paper, scissors with computer.


Then try to make Snake. It is easiest thing you can try to do.





The next stage is building world. Try to build simple world using sprites and tiles (square images). The game world dont have to be sophisticated, just static images are enough at first time.





Add player actor into the world try to add motion to it: going left, right, up, down.





The hardest part of making game is to add computer controlled actors cos you should consider many things:


- movement (basic geometrics, calculating angle of movement, angle of firing)


- collision detection (what if two actors collide?)


- action behavior (which requires some AI techniques)


- event response (also AI)








Making games even simple one is not easy task. So start small. Then incrementally upgrade your game.
Reply:number munchers
Reply:I thought about doing this for a while, but never got around too it. Make a MUD ! Its all text based, don't have to worry about graphics at all. The user selects actions based on choices you provide and they type what action they want to do.





Could be a real simple MUD





A) Attack dragon using melee


B) Cast Spell


C) Move RightF


D) Move Left


E) Move up


F) Move Down





I was thinking of doing this and making it real simple. Simple spells and weapons. No inventory would be used. No food.





the only tricky part really would be keeping track of where the player was in the room and navigating around the dungeon.


No comments:

Post a Comment