Book Image

SFML Blueprints

By : Barbier
Book Image

SFML Blueprints

By: Barbier

Overview of this book

This book is for developers who have knowledge of the basics of the SFML library and its capabilities in 2D game development. Minimal experience with C++ is required.
Table of Contents (10 chapters)
9
Index

Designing our game

Now that we have chosen the entity component system approach and created a world that will be populated by them, let's think about the needs. Following table summarizes the needs:

Entity

Parent

Specificities

Entity

 

This can move

This can be drawn

This can collide with another entity

Player

Entity

This can shoot

This is controlled by inputs

This can collide with everything except the one it shoots

Enemy

Entity

This can be destroyed by shooting

This gets the player some points when destroyed by shooting

Saucer

Enemy

This has a bigger chance to spawn a small saucer when the point number increases

This can collide with everything except saucer shoots

BigSaucer

Saucer

This has a special skin

SmallSaucer

Saucer

This can shoot the Player entity

This has a special skin

Meteors

Enemy

This can collide with everything except other meteors

BigMeteor

Meteors

This splits into some MediumMeteor when destroyed

This has a special skin...