- 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.
- Building a Home Security System with Raspberry Pi
- Java編程指南:基礎(chǔ)知識、類庫應(yīng)用及案例設(shè)計
- 深入RabbitMQ
- Linux Device Drivers Development
- Kotlin從基礎(chǔ)到實戰(zhàn)
- Java面向?qū)ο蟪绦蛟O(shè)計
- 小程序,巧應(yīng)用:微信小程序開發(fā)實戰(zhàn)(第2版)
- HTML5權(quán)威指南
- Scratch趣味編程:陪孩子像搭積木一樣學(xué)編程
- MINECRAFT編程:使用Python語言玩轉(zhuǎn)我的世界
- 深入實踐Kotlin元編程
- 編程改變生活:用Python提升你的能力(進(jìn)階篇·微課視頻版)
- 從零開始學(xué)UI:概念解析、實戰(zhàn)提高、突破規(guī)則
- 城市信息模型平臺頂層設(shè)計與實踐
- 大話C語言