Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.06 KB

File metadata and controls

50 lines (29 loc) · 1.06 KB

retro-engine / Exports / Game

Class: Game

The game class is the main class responsible for running a game in Pixelot. It can be used to check the elapsed time since the game started and stop the game.

Table of contents

Properties

Methods

Properties

start_scene

The name of the scene that is loaded on game start.

Static start_scene: string

Defined in

src/gameloop.ts:21


time

The current time in milliseconds since the game started.

Static time: number = 0

Defined in

src/gameloop.ts:20

Methods

stop

Stop the game loop and close the game.

Static stop(): void

Returns

void

Defined in

src/gameloop.ts:100