- Game Development Patterns and Best Practices
- John P. Doran Matt Casanova
- 192字
- 2021-07-02 23:43:48
Chapter overview
In this chapter, we will be focusing on creating a game object that is flexible enough to adapt as our game design changes. We will do this by first looking at the two most common ways that new programmers create a game object, and the problems that arise when we use these approaches. Then we will discuss two design patterns that can help us solve our problem. Finally, we will arrive at our solution of creating a reusable, flexible game object. Since we know our game design and game objects are likely to change, the questions we are going to answer are the following:
- Is it possible to write game objects in a reusable way?
- How can we decouple our game objects from our core engine code?
- If we have a reusable game object, how can we make it flexible enough to use in different games or account for changes in our game design while the game is being developed?
Along the way, we will discuss a few important design principles that will come up again and again in this book that will help you write clean and solid code.
推薦閱讀
- Visual C++實例精通
- 精通API架構:設計、運維與演進
- Microsoft System Center Orchestrator 2012 R2 Essentials
- PySide 6/PyQt 6快速開發與實戰
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- Java零基礎實戰
- Unity 2018 Augmented Reality Projects
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- Visual Basic 程序設計實踐教程
- 軟件設計模式(Java版)
- Visual Basic語言程序設計上機指導與練習(第3版)
- Mastering Python
- Python程序設計:基礎與實踐
- Learning RxJava