(wip) advanced langtons ant
(wip) advanced langtons ant
This commit is contained in:
43
langtons-ant/grid.tscn
Normal file
43
langtons-ant/grid.tscn
Normal file
@@ -0,0 +1,43 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b6xi32r3co6md"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://by3d3t5ymxl3m" path="res://grid.gd" id="1_bghhw"]
|
||||
[ext_resource type="Script" uid="uid://b6ll30b7xtwal" path="res://ant.gd" id="1_ebq2e"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnfy5vx72ux33" path="res://assets/ant.png" id="3_sle3t"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0v1qlkltasln" path="res://assets/tiles.png" id="4_fqc2p"]
|
||||
[ext_resource type="Script" uid="uid://cqxfmo3hixad1" path="res://tile_map_layer.gd" id="5_fqc2p"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_g2qvd"]
|
||||
texture = ExtResource("4_fqc2p")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
1:0/0 = 0
|
||||
0:1/0 = 0
|
||||
1:1/0 = 0
|
||||
0:2/0 = 0
|
||||
1:2/0 = 0
|
||||
0:3/0 = 0
|
||||
1:3/0 = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_05i0m"]
|
||||
tile_shape = 3
|
||||
tile_size = Vector2i(32, 32)
|
||||
sources/0 = SubResource("TileSetAtlasSource_g2qvd")
|
||||
|
||||
[node name="Grid" type="Node2D" node_paths=PackedStringArray("ant", "tiles")]
|
||||
script = ExtResource("1_bghhw")
|
||||
speed = 60.0
|
||||
ant = NodePath("ant")
|
||||
tiles = NodePath("ant/TileMapLayer")
|
||||
|
||||
[node name="ant" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("3_sle3t")
|
||||
vframes = 6
|
||||
script = ExtResource("1_ebq2e")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="ant"]
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="ant"]
|
||||
position = Vector2(-74, -8)
|
||||
tile_set = SubResource("TileSet_05i0m")
|
||||
collision_enabled = false
|
||||
script = ExtResource("5_fqc2p")
|
||||
Reference in New Issue
Block a user