Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

EntityManager and 2D Game Math for Game Programming - Lecture 6

Dave Churchill via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore game programming concepts in this lecture covering EntityManager implementation and 2D game mathematics. Learn about separating data from logic, entity storage options, and managing entity lifecycles. Dive into 2D vector math, including finding vectors from angles and distances, normal vectors, and bullet velocity calculations. Discover game color spaces, circle collisions, and C++ random number generation. Gain insights into game loop structure and iterator invalidation for efficient game development.

Syllabus

- Intro + Schedule
- Separating Data from Logic
- EntityManager Overview
- Entity Implementation
- EntityManager Functionality
- Entity Storage Options
- std::vector of Entity
- std::vector of std::shared_ptrEntity
- Initial EntityManager Architecture
- addEntity initial implementation
- Creating New Entities
- Iterator Invalidation
- Delayed Effects add/remove
- Final EntityManager Architecture
- Updated addEntity Function
- EntityManager::update
- Removing / Destroying Entities
- Game Loop Structure
- Entity Private Constructor
- 2D Game Math Overview
- Game Color Spaces
- 2D Vector Math
- Find Vector from Angle and Distance
- Find Angle and Distance from Vector
- Normal Vectors
- Bullet Velocity from Mouse Click
- Circle Collisions
- C++ Random Numbers

Taught by

Dave Churchill

Reviews

Start your review of EntityManager and 2D Game Math for Game Programming - Lecture 6

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.