init water droplet test
This commit is contained in:
commit
4ec4dbb5ad
12 files changed
+201
No files matched your search
@@ -0,0 +1,7 @@
|
||||
class_name Droplet extends RigidBody2D
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _process(delta):
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://b51w6528jl7ns
|
||||
@@ -0,0 +1,15 @@
|
||||
class_name Model extends Node2D
|
||||
|
||||
const PERIOD: int = 300
|
||||
var CURRENT_TIME: int = 0
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _process(delta: float):
|
||||
CURRENT_TIME += delta * 100
|
||||
if CURRENT_TIME % 100 == 0:
|
||||
print("Current time: ", str(CURRENT_TIME))
|
||||
var droplet = preload("res://scenes/droplet.tscn").instantiate()
|
||||
droplet.global_position = Vector2(100, 100)
|
||||
add_child(droplet)
|
||||
@@ -0,0 +1 @@
|
||||
uid://g0yk17km82bv
|
||||
Reference in new issue
Block a user