Posts

Untitled RTS Game

Image
I've been discussing making an RTS game based on the game engine I'm developing for my maths quiz action RPG.   First the player builds a mill. Farmland spawns around the mill and villagers go to work like people in Sim City. When enemy forces are spotted, villagers teleport to inside the mill. If the mill dies the villagers inside also die and the player's pool of available villagers decreases. If the player places a tower near the mill, the two buildings form a building group. If enemy forces arrive, villagers teleport to inside the tower. The tower shoots arrows at the enemy forces. If the mill is destroyed the villagers don't die, but if the tower is destroyed the villagers die and they are subtracted from the players pool of available villagers. The player can click to build a wall around the building group, adding extra protection or firepower. The player can upgrade the tower to a keep and then a castle, adding extra protection or firepower. The basic unit of a p...

Maths Game.

Image
 I am (occasionally) working on an action RPG game where every time you attack you have to answer a maths question. RPGs are cool and I used to play them a lot but now I am a social gamer and I don't appreciate the brain-drain. I have accrued a large repository of spaghetti code with a few gems as I learn the ins and outs of game programming in C ( https://github.com/BostonBrooks/Spaghetti_Graveyard. ) . I chose C because it is what the electronic and computer engineers use and working as an ECE is a long term goal for me. I am using the C binding for SFML because SDL doesn't easily incorporate 2D meshes, to be used for 2.5D curved ground surfaces. A few demos below. Scritchyness is due to screen capture software.     All for now, Boston.   Update 17/02/2022 In the game, the terrain is represented as a 2 dimensional grid where each point has a third dimension (height). I have used bicubic interpolation (functions with x^3 and y^3 terms) to smooth the areas between po...