Commit 6e61282a authored by tgw3ff's avatar tgw3ff
Browse files

Player Scene Camera Node Fixed

The player scene now has a working camera node.

An enemy scene was also created. The enemy scene is identical in nearly all aspects except that it does not have a camera node and has the TestEnemy.gd script attached instead.
parent 0967c7db
62017
C:\Users\Username\Desktop\Godot_v3.2.3-stable_mono_win64\Godot_v3.2.3-stable_mono_win64.exe
......@@ -4,7 +4,7 @@
[ext_resource path="res://actors/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://OrderManager.gd" type="Script" id=3]
[ext_resource path="res://ActionManager.gd" type="Script" id=4]
[ext_resource path="res://actors/TestEnemy.gd" type="Script" id=5]
[ext_resource path="res://actors/Enemy.tscn" type="PackedScene" id=5]
[node name="Main" type="Node2D"]
......@@ -12,8 +12,7 @@
[node name="Player" parent="." instance=ExtResource( 2 )]
[node name="TestEnemy" parent="." instance=ExtResource( 2 )]
script = ExtResource( 5 )
[node name="TestEnemy" parent="." instance=ExtResource( 5 )]
[node name="TurnManager" type="Node" parent="."]
......
[gd_scene load_steps=4 format=2]
[ext_resource path="res://actors/TestEnemy.gd" type="Script" id=1]
[ext_resource path="res://assets/player.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[node name="Player" type="Area2D"]
position = Vector2( 4, 4 )
script = ExtResource( 1 )
[node name="player" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 0.45, 0.45 )
shape = SubResource( 1 )
[node name="RayCast2D" type="RayCast2D" parent="."]
cast_to = Vector2( 0, 12 )
......@@ -4,7 +4,7 @@
[ext_resource path="res://assets/player.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
extents = Vector2( 3.1579, 3.15789 )
[node name="Player" type="Area2D"]
position = Vector2( 4, 4 )
......@@ -14,11 +14,18 @@ script = ExtResource( 1 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 0.45, 0.45 )
position = Vector2( -4.76837e-07, -4.76837e-07 )
scale = Vector2( 0.9, 0.9 )
shape = SubResource( 1 )
[node name="RayCast2D" type="RayCast2D" parent="."]
cast_to = Vector2( 0, 12 )
cast_to = Vector2( 0, 6 )
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2( 64, 64 )
offset = Vector2( 4, 4 )
current = true
zoom = Vector2( 0.3, 0.3 )
drag_margin_left = 0.01
drag_margin_top = 0.01
drag_margin_right = 0.01
drag_margin_bottom = 0.01
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment