Skip to content

Instantly share code, notes, and snippets.

View Remssi's full-sized avatar

Janne Nilsson Remssi

  • Helsinki, Finland
View GitHub Profile
@Remssi
Remssi / computer_player.gd
Created May 12, 2026 09:02
Weight based decision making with alternative actions (GDScript)
extends Node3D
# I used this for logging the decisions. You can remove it if you don't need it, or implement something similar
@onready var computer_player_decisions = get_tree().root.get_node("/Computer Player Decisions")
var decision_progress = 0.0
var decision_time = 0.5
enum ACTION_POINTS {
TAKE_COLLECTABLE = 500,