RodrigoDornelles / codename-videogame-engine

A cross-platform embeddable LUA game engine such as ginga, pc, mobile, browser and its own console like a Wii clone.
https://doxygen-engine.pages.dev/
Apache License 2.0
15 stars 3 forks source link

feat: create TAS Game Test #7

Open RodrigoDornelles opened 1 month ago

RodrigoDornelles commented 1 month ago

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

RodrigoDornelles commented 1 month 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