Jump to content
  • Advertisement
Sign in to follow this  
Rowen

First Game Idea???

This topic is 5061 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 want to make a game using C++ and SDL... I have read cone3d's excellent SDL tutorial, but I don't know that much about game structure to know where to start. Tic-Tac-Toe??? Tetris??? Arkanoid??? (then again don't know the code to, for example, check if a block hits something in tetris) So I need an idea and some help from sites etc. Thanks!!!

Share this post


Link to post
Share on other sites
Advertisement
Start with tetris. Use logic and try to do it yourself. Your gunna need a game loop to run through all of the important game things and your gunna need to make sure you understand a little bit about collision detection.

Share this post


Link to post
Share on other sites
my first came was mine sweeper, and i wrote it in c
I would say you need to get out a piece of paper and write out the algorithem (er series of steps) that completes you task like tetris:

1. see where block is
2. do input stuff
3. update block position
4. repeat forever as fast as you possibly can


something like that.

Share this post


Link to post
Share on other sites
Without knowing your coding experience, I would suggest the bouncing ball demo. If you can move the ball around and bounce it off the walls and/or other objects, it will give you more insight to what is going on with your sprites. If you are looking to go from the ground up with SDL I would recommend the "Programming Linux Games" ebook. It is a free download and even though it says Linux, chapter 4 is called "Mastering SDL". It cross compiles fine on Windows.

Share this post


Link to post
Share on other sites
I agree with Grellin, you should try to create a bouncing ball demo. They are very easy to make and are a very good starting point. The main logic in a bouncing ball demo is bounds checking (making sure that the ball is always within the screen), so that will you give you your first taste of collision detection.

After that, I would suggest either one of the games you mentioned or a Snake game (which was my first game after I made a bouncing ball demo many years ago!).

Anyway, good luck with your first project! Remember to have fun and break up any problems that arise into smaller pieces and solve them that way.

Share this post


Link to post
Share on other sites
I made a grafical tic-tac-toe as the first game I made, then I made a pong clone.

I would suggest any of those, making pong will teach you anything that tetris would and you will get more time to boost about it with your friends :)

Share this post


Link to post
Share on other sites
Here are a couple of good first games.

Pong
Tetris (slightly difficult for a first game, actually, if you dont have much programming experience..)
Snake (personally, this was my first game.)
or..
You could do a game of your own design, or a copy of another persons off a game site. Personally, I made a copy of This game.. It was my first game in java, though I'm sure it could be done easily in c++.

Good luck!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!