#### GoldyOrNugget

##### Señor Member

- Joined
- Jul 14, 2012

- Messages
- 583

- Gender
- Male

- HSC
- 2012

I made a mathematical flash game called Plotting Revenge, implemented in Adobe Flex (like flash but more geared toward developers, not animators). I made these choices for a few reasons:

- It was a development platform I was unfamiliar with (being mainly a Python and C/++ programmer) which would proved to be an interesting challenge
- It's a very simple game with some very very complex algorithms behind it, meaning I spent most of my time thinking about the mathematics behind the gameplay and not writing boring boilerplate code
- It's a game that I'd been meaning to make for a long time, which kept me motivated throughout
- The final product stands alone and is possibly a useful education and entertainment tool

The game can be found here: http://danielgoldbach.com/files/bin-release/Main.html

Instructions here: http://danielgoldbach.com/files/User Docs.pdf

There are four particular 'problems' that I encountered which required some AWESOME algorithms to solve:

- How do you get animate a point moving at constant speed along an arbitrary curve on the Cartesian plane?
- How do you decide if an arbitrary mathematical expression is well-formed?
- How do you generate realistic-looking obstacles?
- How do you decide if a curve intersects an obstacle? How do you store the obstacle in an efficient data structure to allow you to perform this query and also manipulate the shape of the obstacle? (by destroying it with a missile)

I'd love to discuss possible solutions to these problems, or the implementation in general, with anyone who wants to.

I got 67/70 as my final mark. I lost those marks from dodgy documentation coz I did it all in the 2 weeks before it was due (and my teacher loved deducting marks from me for anything possible)