Book Image

Building Games with SFML [Video]

Book Image

Building Games with SFML [Video]

Overview of this book

<p>SFML is a framework that allows you to write games and run them on various operating platforms, including Windows, Linux, and OS X. With a simple programming interface to the different components of the underlying device, SFML gives aspiring game developers the ability to create and publish enjoyable games.</p> <p>Building Games with SFML will guide you through the entire process of game development. You will master the main features of SFML and become confident in architecting and designing games because everything you learn will translate to your own project. Even experienced developers are highly likely to learn something new.</p> <p>To begin with, you’ll learn how to compile and install SFML before introducing the system, window, graphics, and audio modules of SFML.</p> <p>We then move on to the development of a clone of the Pac-Man game, called Pac-Woman, enhanced by entertaining modern features, starting by laying the foundation of the game after you understand key game development patterns. Piece by piece, from the game loop to the implementation of artificial intelligence, we will build an engaging game. It will include the implementation of game states, the modeling of entities, the animation of characters, and rendering the maze. Finally, this course concludes by adding gameplay and putting it all together to produce an exciting and challenging game.</p> <h1>Style and Approach</h1> <p>All the topics are explained practically, as you build a “Pac-Woman” game. The course covers the basics and builds a game from start to finish, highlighting an effective and efficient way to develop a game. We move slowly enough for beginners to get started, but provide interesting details and notes for developers who are already acquainted with the framework to grasp the tiny details. It focuses on good code-writing practices and structures through easy-to-understand examples and explanations.</p>
Table of Contents (5 chapters)
Chapter 3
Shaping the Game
Content Locked
Section 1
The Game Loop
We implement the foundation of our game—the game loop. - Briefing of the objectives of the game - Implement the basic main loop - Turn the main loop into the Game class