Skip to content

Facepunch/sbox-libstates-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Machine Examples

trafficlight.scene

A simple scene showing how different state machines can interact with each other by sending messages.

Each of the 4 traffic lights has a state machine that handles cycling colours when receiving either a "red" or "green" message.

sbox-dev_2SUVEb4Inj

A central state machine cycles the whole intersection between north / south and east / west traffic, sending messages to the state machines of each lamp.

sbox-dev_Tb1aaHy7SQ.mp4

About

Examples for facepunch.libstates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages