Alex Rivera | Logout

Programming coordinates-based game, like dots or checkers

Asked 2008-12-01T01:19:23.340
16

I'm looking to learn some fundamentals on cartesian geometry or coordinates based game programming. Platform is irrelevant, although I'm most proficient in JavaScript, C, Objective-C. Ultimately being able to create something such as dots or checkers would be ideal. The idea is for me to learn how sprites work and how pathing works programmatically. My question to you folks is where is the best place to learn the fundamentals? Something that isn't math heavy because to be quite frank, anything further advanced than calculus to me at this point is a grey line and requires refreshing my memory.

If there is a particular book, site, or open source project -- that would probably help me the most.

Thanks for any ideas.

Edit
Report

2 Answers

1

I'm currently working on a checkers program using pygame. It's simple beyond imagination to get the graphics working, and the math that you need to achieve fluid movement is just simple vectors and vector animation.

Each rectangle or square on the board has a centerx and centery coordinate. The next square diagonal on the left is centerx - 82 and centery + 82 or the next diagonal on the right is centerx + 82 and centery + 82. A jump is just 2 diagonals. Make the functions separate to modularize your code and without much math you've got a simple checkers program. Easy.

answered 2012-09-25T13:56:29.280
0

My suggestion would be to use a language/development environment that makes working with sprites easy.

Take a look at Scratch.

The Scratch web site contains thousands of projects that you can download and edit right in the development environment.

Here are some projects to get you started: http://scratch.mit.edu/tags/view/checkers

Plus, there is a good online forum filled with helpful people if you get stuck!

Once you make a game using Scratch, you can upload/share it right from the development environment or you can post it on your own web site (although that takes some doing).

Hope this helps.

answered 2009-04-03T18:21:14.220

Your Answer