Class Sprite
java.lang.Object
GameObject
Sprite
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected Image
protected int
protected int
protected int
Fields inherited from class GameObject
game, timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
render(Graphics2D g)
Method who render a object on screen (invoke on begin of each frames).Methods inherited from class GameObject
awake, getDeltaTime, onDestroy, setTimer, start, timerClockDown, update
-
Field Details
-
x
protected int x -
y
protected int y -
width
protected int width -
height
protected int height -
image
-
-
Constructor Details
-
Sprite
public Sprite()
-
-
Method Details
-
loadImage
-
render
Description copied from class:GameObject
Method who render a object on screen (invoke on begin of each frames).- Overrides:
render
in classGameObject
-