- SFML Game Development
- Artur Moreira Henrik Vogelius Hansson Jan Haller
- 224字
- 2021-08-13 17:11:10
Summary
We had to cover a lot of ground in this chapter. We have explained the most basic concepts that are required to create a game; concepts that you should always have present in order to save yourself from losing time in such issues, and instead, focus on making a great game.
In this chapter we:
- Learned what SFML is, and what functionality it provides
- Listened to input, and moved the player over several frames
- Rendered an image to the screen
- Learned about game loops and delta times, and saw the strengths and weaknesses of different approaches to handle time steps.
And if you are interested in how you would measure your FPS and render that to the screen, then have a look at the code base. We have implemented that functionality there, and it is based on the subjects we have already covered. We would recommend you try yourself; the only things you need are sf::Text
and sf::Font
in order to render text on the screen. You can learn more about these classes in SFML's API documentation at www.sfml-dev.org.
This concludes our introduction chapter. From now on we are going to investigate different aspects of SFML and game development in a more detailed manner. In the next chapter, we start with resource handling, which explains the backgrounds behind textures, fonts, and other resources.
- 高手是如何做產(chǎn)品設(shè)計的(全2冊)
- Django開發(fā)從入門到實踐
- PHP+MySQL網(wǎng)站開發(fā)技術(shù)項目式教程(第2版)
- Java 9模塊化開發(fā):核心原則與實踐
- Node.js Design Patterns
- FPGA Verilog開發(fā)實戰(zhàn)指南:基于Intel Cyclone IV(進階篇)
- C/C++數(shù)據(jù)結(jié)構(gòu)與算法速學速用大辭典
- Azure Serverless Computing Cookbook
- Python Interviews
- Solutions Architect's Handbook
- 監(jiān)控的藝術(shù):云原生時代的監(jiān)控框架
- Java程序設(shè)計實用教程(第2版)
- 用Python動手學統(tǒng)計學
- 詩意的邊緣
- 亮劍C#項目開發(fā)案例導航