azurite-engine / Azurite

Azurite Game Engine is a 2D Java game engine built on top of LWJGL.
https://azurite-engine.github.io
MIT License
42 stars 20 forks source link

Tween and camera #74

Closed goldspark closed 2 years ago

goldspark commented 2 years ago

Added multiple modes for camera such as: FILL EXPAND ASPECT RATIO

You can switch between modes by just changing mode variable in Camera class.

Added Tween component: You can now smoothly change values or move objects in desired time duration. There are multiple effects such as EASE_IN, EASE_OUT, EASE_IN_OUT, NO_EASE

Demonstration for Tween component is in DemoTopDown.java in update method.

Pricter commented 2 years ago

Modifying a variable is not so nice, I will send a commit with a function to change tween and set the variable to private #74 @athaun @goldspark