Advertisement

Latest finitestatemachine Activity

Eck
November 04, 2023 09:08 PM
Finite State Machine - Refactor Take 2

I finally came back to my Gaslands side project after about a year. For those that don't know, Gaslands is a turn-based table-top miniatures game where you modify toy cars to look like Mad Max vehicles. The goals of a game changes based on the scenario, but in general you move around with special M…

1,273 views
Advertisement

Way back when, I implemented a finite state machine system with macros in C. You would actually write the FSM tables into the code in table form. It was mainly for parsing. I added the ability to add optional function pointers for each state and input combination. In addition, those functions could…

4,844 views
Eck
September 20, 2022 09:21 PM
Finite State Machine for Turn-Based Games

Lately I've been working on a computerized version of GasLands just for fun. Gaslands is a turn-based table-top miniatures game where you modify toy cars to look like Mad Max vehicles. The goals of a game changes based on the scenario, but in general you move around with special Maneuver Templates …

12,341 views

For the chapter ‘Market Day’ the location FSM 'town square' would be different than the FSM for the same location during chapter ‘Execution Day’.

Drilling down to the location-FSMs, each of them owns a set of non-player-character[NPC]-FSMs, multiple of which can be currently active.

I'd expect a lot…

5,974 views
Advertisement
Advertisement