tip

Video game animation


It was time to implement some animations in our game “Burnt Islands“. The task was to add a catapult that was going to throw stones at enemies from the distance. A catapult needs to rotate towards the goal and to throw stones in the right direction. The whole thing without animation would look really weird.

Spring MVC: how to build a thread-safe Controller

Controllers in Spring MVC are designed to be shared between requests. Each controller has a default singleton scope so if you are using controllers you need to be aware of that. The easiest way to make sure your controller is thread-safe is to avoid class variables. F.ex. this example from Spring MVC tutorial: