Skip to content
Source code for a game engine development series
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1 - Game Loop changed window name Mar 6, 2018
10 - Object Management prepared scene management for publish Apr 11, 2018
11 - Animation Part 1 finished tile culling component Jun 25, 2018
12 - Animation Part 2 finished tile culling component Jun 25, 2018
13 - Tile Map Parser Part 1 finished part 13 Jul 6, 2018
14 - Draw Sort Order renamed tutorials 14 and 16 Aug 9, 2018
15 - Collider Component split tutorial 18 Aug 15, 2018
16 - Quadtree added misisng Red Square texture Oct 18, 2018
17 - Quadtree Part 2 added misisng Red Square texture Oct 18, 2018
18 - Implementing Quad Trees for Collisions added misisng Red Square texture Oct 18, 2018
19 - Finishing our First Collision System added misisng Red Square texture Oct 18, 2018
2 - First Draw changed mac preprocessor directive Mar 7, 2018
20 - Debugging Collisions added misisng Red Square texture Oct 18, 2018
21 - Draw Layers and Dynamic Draw Sorting added misisng Red Square texture Oct 18, 2018
22 - Camera Follow added misisng Red Square texture Oct 18, 2018
23 - Camera Zoom added misisng Red Square texture Oct 18, 2018
24 - Animation in Four Directions added misisng Red Square texture Oct 18, 2018
25 - Animation Fixes
26 - New Maps and Some Bug Fixes removed test maps Oct 18, 2018
27 - Animation Actions removed test maps Oct 18, 2018
28 - Projectile Attack removed test maps Oct 18, 2018
29 - Velocity Component removed test maps Oct 18, 2018
3 - Frame Independent Movement updated delta time calculation Mar 8, 2018
30 - One Shot Animations added tutorial 45 Nov 29, 2018
31 - Finishing Projectile Animation removed test maps Oct 18, 2018
32 - Spawning Projectiles removed test maps Oct 18, 2018
33 - Shared Context removed test maps Oct 18, 2018
34 - Direction Component FloatRect to IntRect Jan 11, 2019
35 - Projectile Position and Collisions FloatRect to IntRect Jan 11, 2019
36 - Spawn Projectiles as Animation Action FloatRect to IntRect Jan 11, 2019
37 - Collidable Component removed forward decleration of object class Jan 13, 2019
38 - Collision Communication Fixed component pair hash Feb 27, 2019
39 - Removing Projectiles On Collision updating rsycast Apr 22, 2019
4 - Bitmasks added bitmask, input system, and scene management Mar 12, 2018
40 - First Friend Fixed component pair hash Feb 27, 2019
41 - Raycasting updating rsycast Apr 22, 2019
42 - Raycasting 2 updating rsycast Apr 22, 2019
43 - Raycasting 3 updating rsycast Apr 22, 2019
44 - Entity Interactions
45 - UI World Label
46 - Changes and Bug Fixes updating rsycast Apr 22, 2019
47 - Transform Parents and Children updating rsycast Apr 22, 2019
48 - Enter the Dungeon updating rsycast Apr 22, 2019
49 - Steering Behaviours Behaviour Parent updating rsycast Apr 22, 2019
5 - Real Time Input changed component list loopto reverse iterator Apr 7, 2018
50 - Steering Behaviours Behaviour Applier updating rsycast Apr 22, 2019
51 - Steering Behaviours Chase updating rsycast Apr 22, 2019
52 - Steering Behaviours Wall Avoidance updating rsycast Apr 22, 2019
53 - Raycast Fix updating rsycast Apr 22, 2019
6 - Scene Management prepared scene management for publish Apr 11, 2018
7 - ECS Part 1 prepared scene management for publish Apr 11, 2018
8 - ECS Part 2 prepared scene management for publish Apr 11, 2018
9 - Generic Resource Allocator prepared scene management for publish Apr 11, 2018
Xcode Build/that game engine Commented out deprecated function Apr 22, 2019
unused - Object Collisions Dynamic Positions renamed dynamic positions tutorial as no longer used Aug 11, 2018
.gitignore updated gitignore with max/xcode specific files Mar 6, 2018
LICENSE Initial commit Feb 2, 2018
README.md Added MACOS build instructions Mar 17, 2018

README.md

that game engine

Contains the source code for the SFML game engine tutorial series, hosted on thatgamesguy.co.uk. Find the first tutorial at http://thatgamesguy.co.uk/2018/03/06/game-engine-dev-0/

Important The code is cross-platform and will compile on Windows, MacOS, and Linux. However if you are building for MacOS then there are a couple of additional steps you need to do before it will compile.

Add compiler flag 'MACOS' in XCode:

  1. Click on the game engine project in the sidebar.
  2. Click on Build Settings on the top row.
  3. In the search bar type “custom compiler flag”. 4 In “Other C Flags” enter “-D MACOS”. The Other C++ Flags field will be automatically populated.

Link to the CoreFoundation framework in XCode:

  1. Click on the game engine project in the sidebar.
  2. Click on the General tab.
  3. Find a section called ‘Linked Frameworks and Libraries’.
  4. Click on the plus sign.
  5. Locate CoreFroundation.framework.
  6. Click Add.

If you are bulding on MacOS but not in XCode then you will need to follow a different procedure.

You can’t perform that action at this time.