Class Frog
GameObject which run away from snake.
-
Field Summary
Fields inherited from class GameObject
game, timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
awake()
Like unity Awake (invoke on create of object or create gameplay).protected void
Like unity OnDestroy (invoke after destroy object or on end of game).protected void
render(Graphics2D g)
Method who render a object on screen (invoke on begin of each frames).protected void
start()
Like unity Start (invoke on first frame of object like or before begin main loop).protected void
update()
Like unity Update (invoke after render on each frames).Methods inherited from class GameObject
getDeltaTime, setTimer, timerClockDown
-
Constructor Details
-
Frog
Constructor pass reference to frog.
-
-
Method Details
-
awake
protected void awake()Description copied from class:GameObject
Like unity Awake (invoke on create of object or create gameplay).- Overrides:
awake
in classGameObject
-
start
protected void start()Description copied from class:GameObject
Like unity Start (invoke on first frame of object like or before begin main loop).- Overrides:
start
in classGameObject
-
update
protected void update()Description copied from class:GameObject
Like unity Update (invoke after render on each frames).- Overrides:
update
in classGameObject
-
onDestroy
protected void onDestroy()Description copied from class:GameObject
Like unity OnDestroy (invoke after destroy object or on end of game).- Overrides:
onDestroy
in classGameObject
-
render
Description copied from class:GameObject
Method who render a object on screen (invoke on begin of each frames).- Overrides:
render
in classGameObject
-