- 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.
推薦閱讀
- Learning Scala Programming
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語言實(shí)現(xiàn))
- Python從小白到大牛
- Python GUI Programming Cookbook
- Go語言精進(jìn)之路:從新手到高手的編程思想、方法和技巧(2)
- 21天學(xué)通C++(第5版)
- Android傳感器開發(fā)與智能設(shè)備案例實(shí)戰(zhàn)
- Image Processing with ImageJ
- 從程序員角度學(xué)習(xí)數(shù)據(jù)庫(kù)技術(shù)(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Java Web應(yīng)用開發(fā)給力起飛
- 并行編程方法與優(yōu)化實(shí)踐
- Python計(jì)算機(jī)視覺和自然語言處理
- 分布式架構(gòu)原理與實(shí)踐
- IBM RUP參考與認(rèn)證指南