Package com.xebisco.yield
Class BlankScene
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.Entity2DContainer
com.xebisco.yield.Scene
com.xebisco.yield.BlankScene
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
The BlankScene class is a custom scene for an application.
It sets the background color to black when the scene starts.
-
Constructor Summary
ConstructorsConstructorDescriptionBlankScene(Application application) Constructs a new BlankScene object with the given application. -
Method Summary
Modifier and TypeMethodDescriptionvoidonStart()This method is called when the behavior is started.Methods inherited from class com.xebisco.yield.Scene
backGroundColor, camera, onUpdate, setBackGroundColor, setSystems, system, system, systemsMethods inherited from class com.xebisco.yield.Entity2DContainer
application, close, entities, instantiate, instantiate, remove, render, setEntities, toAddEntities, toRemoveEntitiesMethods inherited from class com.xebisco.yield.AbstractBehavior
frames, tick
-
Constructor Details
-
BlankScene
Constructs a new BlankScene object with the given application.- Parameters:
application- the application to which the scene belongs
-
-
Method Details
-
onStart
public void onStart()Description copied from interface:BehaviorThis method is called when the behavior is started. It is typically used to initialize any necessary state or resources.- Specified by:
onStartin interfaceBehavior- Overrides:
onStartin classEntity2DContainer
-