- 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.
推薦閱讀
- 零基礎(chǔ)搭建量化投資系統(tǒng):以Python為工具
- MongoDB for Java Developers
- Xcode 7 Essentials(Second Edition)
- QGIS:Becoming a GIS Power User
- PostgreSQL Replication(Second Edition)
- Bootstrap 4:Responsive Web Design
- INSTANT Passbook App Development for iOS How-to
- Oracle從入門到精通(第5版)
- Python時間序列預(yù)測
- Kotlin從基礎(chǔ)到實戰(zhàn)
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- Access 2010數(shù)據(jù)庫應(yīng)用技術(shù)實驗指導(dǎo)與習(xí)題選解(第2版)
- 從零開始:UI圖標設(shè)計與制作(第3版)
- 金融商業(yè)數(shù)據(jù)分析:基于Python和SAS
- LabVIEW入門與實戰(zhàn)開發(fā)100例(第4版)