mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-22 07:44:17 +00:00
Do not use clampi to keep code simple
This commit is contained in:
parent
265da5fe50
commit
abfadcee49
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ var buffer: int = 0
|
||||||
|
|
||||||
|
|
||||||
func spawn():
|
func spawn():
|
||||||
buffer = clampi(buffer + 1, 0, buffer_cap)
|
buffer += 1
|
||||||
|
if buffer > buffer_cap:
|
||||||
|
buffer = buffer_cap
|
||||||
|
|
||||||
|
|
||||||
func _physics_process(_delta):
|
func _physics_process(_delta):
|
||||||
|
|
Loading…
Reference in a new issue