We have seen how to build two-dimensional games for the desktop using the ggez framework. This framework not only allows us to structure the application according to the animation-loop architecture and the MVC architectural pattern but also to get discrete input events. In addition, we have seen why a linear algebra library can be useful for graphical applications.
We created and looked at four apps—gg_ski, gg_silent_slalom, gg_assets_slalom, and gg_whac.
In particular, we learned how to build a graphical desktop app using the ggez framework, which is structured according to the MVC architecture, and how to implement both an animation-loop architecture and an event-driven architecture, possibly in the same window. Additionally, we also learned to draw graphical elements on a web page using ggez, as well as loading and using static resources using ggez. At the end of the chapter, we encapsulated two-dimensional points and vectors in a structure and saw how to manipulate...