Public Group

# New project idea ?!

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

## Recommended Posts

Hi everyone ! Since I had to rewrite my entire old project since it was sooooo badly written, do you guys have any idea of some project I could code so I can try again and get better ? The project could be a game, an utility or simply something to reproduce ( like something in the STL to try to do like it )

##### Share on other sites
Basic games such as Pac-man, Tetris and Snake are often good learning excersises, or for a utility to learn from, you could program a calculator.

##### Share on other sites
Ok so I'll have to read on path-finding.. but that's for later. Now could you guys help me design the interface so I don't end up with the program being screwed because of a bad design.

So I know some of the objects ( probably classes, structs or namespaces ):
- sprite- userinput- ai_enemy : sprite- wall : sprite // even though it will not move, it's still an image- game_logic- some functions to take care of basic tasks ( such as window creation and some usefull functions )

Thank you guys for your help.

##### Share on other sites
You shouldn't need too much help designing the interface, just take a look at how the originals did it, and figure out how to copy what they did - make any changes you think appropriate.

You'll probably want to load your maps from external files too btw, it's good practice at something 'real' games do.

I assume from your post you've decided to work on Pac-man. To start with just get the player moving around in a map on screen, then add in the tokens the player needs to eat. Don't worry overly much about your AI till you have the player working, to draw them you can use pretty much the same functions as for the player. There should be plenty of old topics around about the AI used in the game, you may also want to check out the AI forum when you get to that stage.

##### Share on other sites
you dont necasarily need a complicated pathfinding algo to make your enemies follow you. when i did it, i simply had it so that when an enemy hit a wall, he checks where the player is and moves in that direction. i also added a "check for player here" tile to the map editor, and i put these at all the intersections in the maps. this made the AI pretty damn smart. you can check out the game w / the source if you want here.

1. 1
2. 2
3. 3
Rutin
22
4. 4
5. 5

• 10
• 16
• 14
• 9
• 9
• ### Forum Statistics

• Total Topics
632929
• Total Posts
3009276
• ### Who's Online (See full list)

There are no registered users currently online

×