Book Image

SFML Blueprints

Book Image

SFML Blueprints

Overview of this book

Table of Contents (15 chapters)
SFML Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
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

MediumMeteor...