tidy
This commit is contained in:
parent
8a6bc5937c
commit
20a92b40d9
@ -1,9 +0,0 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://ckv0180aypptf"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://1g54esg7yd35" path="res://images/crosshair.png" id="1_7vv1r"]
|
||||
|
||||
[node name="Crosshair" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.05, 0.05)
|
||||
texture = ExtResource("1_7vv1r")
|
@ -3,6 +3,7 @@ var root
|
||||
func create_map(_root):
|
||||
root=_root
|
||||
poolcircle(Vector2(0,0),2000,100,1000,1000,1000)
|
||||
root.get_node("Camera2D").zoom=Vector2(0.2,0.2)
|
||||
|
||||
func poolcircle(pos: Vector2, radius, count, r,g,b):
|
||||
for n in range(1,count+1):
|
||||
|
@ -3,9 +3,9 @@ var root
|
||||
func create_map(_root):
|
||||
self.root=_root
|
||||
poolcircle(Vector2(0,0),0,1,10,0,0)
|
||||
|
||||
poolcircle(Vector2(0,0),2000,100,0,5000,0)
|
||||
|
||||
root.get_node("Camera2D").zoom=Vector2(0.3,0.3)
|
||||
|
||||
func poolcircle(pos: Vector2, radius, count, r,g,b):
|
||||
for n in range(1,count+1):
|
||||
var new_pool: Pool = load("res://pool.tscn").instantiate()
|
||||
|
4
sim.gd
4
sim.gd
@ -48,6 +48,8 @@ func spawn():
|
||||
if collision.collider.get_parent() is Pool:
|
||||
collision.collider.get_parent()._on_decay_timer_timeout()
|
||||
return
|
||||
var marker = load("res://crosshair.tscn").instantiate()
|
||||
var marker = Sprite2D.new()
|
||||
marker.position = new_player.get_node("Body2D").position
|
||||
marker.scale=Vector2(0.1,0.1)
|
||||
marker.texture = load("res://images/crosshair.png")
|
||||
add_child(marker)
|
||||
|
Loading…
Reference in New Issue
Block a user