Darthfett / A-Priori-Physics-System

A side-scroller game based upon Mega Man X, with a priori collision detection, and objects being represented as a sequence of connected points.
3 stars 0 forks source link

Game State #37

Open Darthfett opened 12 years ago

Darthfett commented 12 years ago

Move the game state into a separate, immutable class.

By having game state be immutable and managed as an object, more functional approaches can be taken to implementation of game.next_frame, and other higher functions.

In addition, by having more functional approaches to these functions, they can be more easily tested, as they are simply a function of input to output, and independent of state.

Darthfett commented 12 years ago

The hardest questions this creates are: