silbinarywolf / gml-go

This is an engine that aims to strike a balance between capturing the simplicity of the Game Maker API whilst not losing any performance given to you by Go.
MIT License
5 stars 0 forks source link

example/worm: Write tests to make sure the game feels / plays like the Game Maker Studio 2 version #98

Closed silbinarywolf closed 5 years ago

silbinarywolf commented 5 years ago

The problem The game might have subtle off-by-one or more issues that I haven't perceived in the porting process. Such as alarms not running like Game Maker. To remedy this, I've created a Game Maker Studio 2 project that prints the output/values of what an alarm has after [X} frames to ensure they work similarly.

The solution To begin with, I'll have a test that gets the players X,Y position per frame and see how it compares to the output of the Game Maker Studio 2 version. This can help to catch any issues with the game not feeling quite the same.

From there I can keep tightly comparing values on a granular level so that the game runs as close to how Game Maker's version does as possible.

silbinarywolf commented 5 years ago

Basic tests are in, such as checking if the Y position is the same