Hello,
I’m working on a college project. We’re making a simple Flash adventure game which includes some mini-games. Since this is our first game, we’re unsure about how to go about structuring our code. This game is a simple bike-racing game. Here is a download link to our game prototype & a simple diagram of what our flowchart will look like:
- The idea is to have a Controller that will continuously manage built-in events (ex. mouseDown).
- In the next phase, specific conditions are given different values (ex. condition = ‘speed up’).
- Next, a Controller listens for specific conditions, & then dispatches a specific event (ex. dispatch MyEvent.SPEED_UP).
- Last, functions listen for specific events & then automatically execute commands (ex. listen for MyEvent.SPEED_UP & increase speed after receiving corresponding event). The function could also modify previous conditions (ex. bike crashes), causing the entire chain to change.
We’re hoping that this structure will allow us to control every object within the mini-game. We would really appreciate more insight into our game. Since we haven’t applied this structure to our game yet, we would like to know if this structure is logically correct.