TestGame

Undocumented in source.
version(unittest)
class TestGame : Core {}

Constructors

this
this()
Undocumented in source.

Members

Functions

initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Core

log
Logger log;

logger utility

window
Window window;

game window

content
ContentManager content;

content manager

jar
Jar jar;

type registration container

managers
Manager[] managers;

global managers

debug_render
bool debug_render;

whether to draw debug information

debugger
Debugger debugger;

debugger utility

running
bool running;

whether the game is running

frame_limit
int frame_limit;

the frame limit (used for testing)

target_fps
int target_fps;

target frames per second

headless
bool headless;

whether graphics should be disabled

pause_on_focus_lost
bool pause_on_focus_lost;

whether to pause when unfocused

exit_on_escape_pressed
bool exit_on_escape_pressed;

whether to exit when escape pressed

auto_compensate_hidpi
bool auto_compensate_hidpi;

whether to automatically scale things to compensate for hidpi

default_resolution
Vector2 default_resolution;

the default render resolution for all scenes

default_filter_mode
raylib.TextureFilter default_filter_mode;

the default texture filtering mode for render targets

fps
int fps [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()

sets up the game

run
void run()

starts the game

exit
void exit()

gracefully exits the game

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
get_scene
T get_scene()
Undocumented in source. Be warned that the author may not have intended to support it.
get_manager
Nullable!T get_manager()
Undocumented in source. Be warned that the author may not have intended to support it.
add_manager
T add_manager(T manager)

adds a global manager

scenes
Scene[] scenes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
primary_scene
Scene primary_scene [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
load_scenes
void load_scenes(Scene[] new_scenes)

sets the current scenes

destroy
void destroy()

releases all resources and cleans up

Meta