Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 727 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 727 Bytes

gamelayout

Manages scenes and is probably super buggy. Each scene is basically a Sprite

###Usage ######Import the classes

import com.gigglingcorpse.gamelayout.System;
import com.gigglingcorpse.gamelayout.Memory;
import com.gigglingcorpse.gamelayout.Scene;

######Instantiate the system

system = new System();
addChild( system );

######Add scenes

// Add some scenes (Scenes extend com.gigglingcorpse.gamelayout.Scene)
system.addScene( "Splash", new MenuScene() );
system.addScene( "game", new Level1() );

######Set a scene(or switch between them)

// Switch to a scene
system.scene( "Splash" );