►Full Series Playlist: SFML Playlist: • SFML - Simple Fast Med...
►Find full courses on: courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Lesson Description: In this lesson I show you how to build a simple game entity class and the start of a game entity component system. I'll talk about some of the design considerations that you need to make, and why I make them. There will be more to iterate on, and your entity systems capabilities will change depending on if you are making a specific game, or an engine (and that will further evolve your software architecture). By the end of the lesson, we will build a simple 'screensaver' effect with some 'ghosts' that I have provided, to make this a MONSTER lesson.
00:00 Introduction
1:00 Game Entity and Components idea
2:12 Code structure review and restructuring
4:30 Starting to create a Sprite2DComponent
10:50 Test of Sprite2DComponent
13:10 Discussion of different types of components
14:45 Creation of the Game Entity 'holder' class
20:40 Creating a base class for our components
23:50 Utilizing inheritance-based polymorphism for our components
28:00 First iteration of Game Entity
29:15 Moving our game entity
32:25 Creating multiple game entities
36:00 Moving our game entities
42:00 First test of moving entities
42:50 Improving the movement of our game entities with rand()
44:40 Conclusion
►KZitem Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah.io/communities/...
Негізгі бет Ғылым және технология MONSTER lesson on Game Entities and Entity Component System in SFML
Пікірлер: 15