capitalex / Select snippets from Chitinous Carnival
0 лайк(-ов)
0 форк(-ов)
7 файл(-ов)
Последняя активность 1 year ago
A collection of files I consider to be at the "core" of CC
| 1 | # warning-ignore-all:return_value_discarded |
| 2 | extends HBoxContainer |
| 3 | class_name ChitinousCanrival |
| 4 | |
| 5 | const event_player_scene = preload("res://scenes/ui/EventPlayer.tscn") |
| 6 | |
| 7 | @onready var MinigameHandler := %MinigameHandler as MinigameHandler |
| 8 | @onready var TravelButtons := %TravelButtons as TravelButtons |
| 9 | @onready var EventPlayerContainer := %EventPlayerContainer as EventPlayerContainer |
| 10 | @onready var InventoryMenu := %InventoryMenu as InventoryMenu |
capitalex / maze-array-polyfill.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
| 1 | = |@math| $last |@math| $op $value * = |
| 2 | |@math| $op $value $last |
| 3 | = |@math| $last |@math| $op * $value = |
| 4 | |@math| $op $last $value |
| 5 | |
| 6 | |
| 7 | = |@ array| flush cells? |cells array direction| forwards? |forwards cells| $value = |
| 8 | |backwards cells| $value |
| 9 | |
| 10 | = |@ array| flush cells? |cells array direction| forwards? |forwards cells| = |