Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SFML Blueprints

You're reading from   SFML Blueprints Sharpen your game development skills and improve your C++ and SFML knowledge with five exciting projects

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781784398477
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime