Class SnakePart
java.lang.Object
GameObject
SnakePart
GameObject to build snake.
-
Field Summary
Fields inherited from class GameObject
game, timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
position
-
color
-
-
Constructor Details
-
SnakePart
Constructor to set initial positions and color.
-
-
Method Details
-
render
Description copied from class:GameObject
Method who render a object on screen (invoke on begin of each frames).- Overrides:
render
in classGameObject
-