First of all, don’t worry if the game-time does not flow in real-time but a bit in a slow-motion fashion. This is NOT a problem, in this version 1.0 this was not even planned to be “fixed”: as it’s not an error, but a fact due to the choice of implementing this version in the simplest way in order to be able to deliver it and see how much attention it gains, to then consider making a version 2.0 which has not this feature which may be annoying to most people.
Well, the fact is for a faster flow of game-time, the numerical solution of that ugly differential equation-system You see in the lower-right corner of the game-page’s banner-image, can easily diverge because it uses simple explicit-Euler method ; and that can cause divergence easily, it’s sufficient to feed initial conditions which are just a bit off-limits, a little bit too large time-step amount, and it goes crazy absurd… .
The solution would be to use Runge-Kutta method, 2nd order, 3rd or 4th ; that would make it wonderfully-working ; though it requires some extra work to implement.
Now, about the theme-song: it’s not played in the game clearly (I even don’t know how to go about sound-output in JavaScript + THML5 Canvas + multimedia stuff)… it’s there for let’s-players to be able to cut the song into a gameplay, e.g. in the intro or outro.
So, enjoy version 1.0,
Simon (alias ‘the Nerd of Algorithms’)
0 comments