1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00

Do not use clampi to keep code simple

This commit is contained in:
Steffo 2023-10-01 01:59:28 +02:00
parent 265da5fe50
commit abfadcee49
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -11,7 +11,9 @@ var buffer: int = 0
func spawn():
buffer = clampi(buffer + 1, 0, buffer_cap)
buffer += 1
if buffer > buffer_cap:
buffer = buffer_cap
func _physics_process(_delta):