Halloween Squid

Add to
My games
Add to
Wishlist
Save to
Collection
No reviews
Exceptional
Meh
Skip

About

Controls

  1. Keyboard: Z, X, Enter, Escape, Arrow Keys
  2. PS4: Left Stick, Start, X, Square
  3. Xbox: Left Stick, Start, A, X

Note: The HTML5 version may have an odd input map depending on your browser.

Halloween Squid

I made this small project so I could understand state machines and behavior trees better.

I separated control from state in this demo with the use of a generic controller node and a state machine node. With this design you can swap controllers between the squid and the enemies (editor-time), allowing you to control any character in this game.

For the enemy controllers I implemented a behavior tree system that was easy to use in Godot's scene graph. Creating custom nodes was the right move, because it made use of the editor's built-in scene graph. That was much easier to manipulate than creating a new editor from scratch.

Behavior Trees

This is an example of a behavior tree in the editor. This one is for the spitting pumpkin enemies. This uses selector nodes, sequence nodes, inverter nodes and what I called "function" nodes. These leaf nodes are configured in the details panel and execute code that lives on the enemy controller.

State Machine & Controller

Each character implements their own state machine and transitions, as well as their own controllers. You can swap the controller out for a player controller, which will allow you to play the game as another type of character.

Platforms
Release date
Developer
Luft
Age rating
Not rated

System requirements for Web

System requirements for Linux

System requirements for PC

Read more...
Edit the game info
Last Modified: Apr 25, 2022

Where to buy

itch.io