A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
/* GENERATED by sdk/tests/aot-conformance.test.ts — do not edit. */
/* What the INTERPRETER makes of sdk/tests/fixtures/conformance-systems.ts,
frame by frame, so a divergence names the frame it began on. */
#ifndef ESTELLA_CONFORMANCE_TRACE_H
#define ESTELLA_CONFORMANCE_TRACE_H
#define ES_CONF_ENTITIES 4u
#define ES_CONF_FRAMES 12u
/* x, speed, bounces — ConfMover in declaration order, which is the order
the ABI lays a script record out in. */
#define ES_CONF_FIELDS 3u
/* The delta the interpreter was handed, rather than the one it asked for. */
#define ES_CONF_DELTA 0.016666666666666666
static const double ES_CONF_SEED[ES_CONF_ENTITIES][ES_CONF_FIELDS] = {
{ 0.0, 120.0, 0.0 },
{ 9.5, 60.0, 0.0 },
{ -9.5, -60.0, 0.0 },
{ 3.0, -300.0, 0.0 },
};
/* After each frame, both systems having run in the order the schedule has
them: ConfDrift, then ConfClamp. */
static const double ES_CONF_EXPECT[ES_CONF_FRAMES][ES_CONF_ENTITIES][ES_CONF_FIELDS] = {
{ /* frame 0 */
{ 2.0, 120.0, 0.0 },
{ 10.0, -60.0, 1.0 },
{ -10.0, 60.0, 1.0 },
{ -2.0, -300.0, 0.0 },
},
{ /* frame 1 */
{ 4.0, 120.0, 0.0 },
{ 9.0, -60.0, 1.0 },
{ -9.0, 60.0, 1.0 },
{ -7.0, -300.0, 0.0 },
},
{ /* frame 2 */
{ 6.0, 120.0, 0.0 },
{ 8.0, -60.0, 1.0 },
{ -8.0, 60.0, 1.0 },
{ -10.0, 300.0, 1.0 },
},
{ /* frame 3 */
{ 8.0, 120.0, 0.0 },
{ 7.0, -60.0, 1.0 },
{ -7.0, 60.0, 1.0 },
{ -5.0, 300.0, 1.0 },
},
{ /* frame 4 */
{ 10.0, 120.0, 0.0 },
{ 6.0, -60.0, 1.0 },
{ -6.0, 60.0, 1.0 },
{ 0.0, 300.0, 1.0 },
},
{ /* frame 5 */
{ 10.0, -120.0, 1.0 },
{ 5.0, -60.0, 1.0 },
{ -5.0, 60.0, 1.0 },
{ 5.0, 300.0, 1.0 },
},
{ /* frame 6 */
{ 8.0, -120.0, 1.0 },
{ 4.0, -60.0, 1.0 },
{ -4.0, 60.0, 1.0 },
{ 10.0, 300.0, 1.0 },
},
{ /* frame 7 */
{ 6.0, -120.0, 1.0 },
{ 3.0, -60.0, 1.0 },
{ -3.0, 60.0, 1.0 },
{ 10.0, -300.0, 2.0 },
},
{ /* frame 8 */
{ 4.0, -120.0, 1.0 },
{ 2.0, -60.0, 1.0 },
{ -2.0, 60.0, 1.0 },
{ 5.0, -300.0, 2.0 },
},
{ /* frame 9 */
{ 2.0, -120.0, 1.0 },
{ 1.0, -60.0, 1.0 },
{ -1.0, 60.0, 1.0 },
{ 0.0, -300.0, 2.0 },
},
{ /* frame 10 */
{ 0.0, -120.0, 1.0 },
{ 0.0, -60.0, 1.0 },
{ 0.0, 60.0, 1.0 },
{ -5.0, -300.0, 2.0 },
},
{ /* frame 11 */
{ -2.0, -120.0, 1.0 },
{ -1.0, -60.0, 1.0 },
{ 1.0, 60.0, 1.0 },
{ -10.0, -300.0, 2.0 },
},
};
#endif