Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Overrides

Tor (torbuntu) edited this page Apr 17, 2021 · 4 revisions

Leikr Overrides

Version 1.0.7

Leikr contains a number of methods that are meant to be Overridden in order to provide the custom functionality desired for the game or program.

Core Game Overrides
void create() Run once at the beginning of the games construction. Good for loading images and initializing game variables.
void create(String[] args) Same as above but accepts arguments passed from the Terminal.
void update() Updates game logic outside of rendering.
void update(float delta) Same as above but has the game's delta value.
void render() The point for rendering to the screen
void onPause() When the game is paused, this can be used to detect that event and do an action.
void onResume() Called when a user returns to the game after a pause event.

Input overrides see input

Contents

Home

API

under construction for version 1.10.1

Clone this wiki locally