gamelly / gly-engine

A cross-platform embeddable lua game engine such as ginga, pc, mobile, browser and its own console like a Wii clone.
https://docs.gamely.com.br
Apache License 2.0
33 stars 5 forks source link

feat: create TAS Game Test #7

Open RodrigoDornelles opened 4 months ago

RodrigoDornelles commented 4 months ago

It can be a tool that greatly facilitates automated testing, passing the well-known TAS, but also respective frames and assertions.

RodrigoDornelles commented 4 months ago

Pong TAS Game Test

game.fps_limit = 60

Test Case: 2 Points

01 A 05 UP 45 DOWN 46 DOWN 47 DOWN 48 DOWN


044 game.score == 1 +1 point 070 game.score == 2 +2 points 131 game.score == 0 gameover 131 game.highscore == 2 save the score

Test Case: 0 Points

01 A


045 game.score == 0 zero points marked 045 game.highscore == 0 zero points marked