Game Engine From Scratch in C - When Everything Goes Wrong

Опубликовано: 09 Май 2026
на канале: NCOT Technology
4,128
246

Welcome to the next edition of Gamedev The Hard Way, my attempt at writing a game from scratch for the Agon Light, using nothing but C. This time I attempt to program some basic enemy behaviours to test out my game's entity handling code. This is quite a fundamental part of the game as I will need to create many entities, each with their own code. Things don't go to plan however and I discover some quite major problems with the physics and tilemap code.

Support the channel
------------------------------
  / ncot_tech  
https://ko-fi.com/ncot_tech

Website: https://ncot.uk/projects/helios/

Credits
-----------
Music by Karl Casey @ White Bat Audio

Chapters
--------------
00:00 Intro
00:46 Organising my source
01:40 Refactoring
03:33 Stealing the secrets of the ancients
05:25 Making a todo list
06:29 Spawning an enemy
12:01 Patreon
12:43 Defining a thinker
14:31 Patrolling enemy
18:08 Fixing my code
21:04 It's all gone wrong
22:02 Fumbling about in the dark
24:20 Failing to make an enemy move
25:48 Outro

Tags
-------
#agonlight #programming #retro #cprogramming #gamedev #gamedevelopment #retrocomputer