Skip to content

Commit

Permalink
Merge pull request #68 from RoddieKieley/issue67-godot4-upgrade
Browse files Browse the repository at this point in the history
Issue67 godot4 upgrade
  • Loading branch information
thoraxe authored Jun 16, 2023
2 parents 96c6a73 + c4c5e44 commit 8b0c514
Show file tree
Hide file tree
Showing 25 changed files with 518 additions and 431 deletions.
2 changes: 1 addition & 1 deletion AMQPserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using ProtoBuf;
using redhatgamedev.srt.v1;

public class AMQPserver : Node
public partial class AMQPserver : Node
{
public Serilog.Core.Logger _serilogger;

Expand Down
33 changes: 33 additions & 0 deletions Assets/Fonts/RedHatDisplay-Bold.ttf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://ddlj3n66imcl8"
path="res://.godot/imported/RedHatDisplay-Bold.ttf-e1dcbec6b90d2c43121204c0d1c08eca.fontdata"

[deps]

source_file="res://Assets/Fonts/RedHatDisplay-Bold.ttf"
dest_files=["res://.godot/imported/RedHatDisplay-Bold.ttf-e1dcbec6b90d2c43121204c0d1c08eca.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
33 changes: 33 additions & 0 deletions Assets/Fonts/RedHatText-Italic.ttf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://bjs422uhj0nlv"
path="res://.godot/imported/RedHatText-Italic.ttf-5442a7b92e90f81dfa98b0f90cbbf3fd.fontdata"

[deps]

source_file="res://Assets/Fonts/RedHatText-Italic.ttf"
dest_files=["res://.godot/imported/RedHatText-Italic.ttf-5442a7b92e90f81dfa98b0f90cbbf3fd.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
33 changes: 33 additions & 0 deletions Assets/Fonts/RedHatText-Regular.ttf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://c4x2m5t0ax0nk"
path="res://.godot/imported/RedHatText-Regular.ttf-26d51c6f384dae5a588f82cd577f5d85.fontdata"

[deps]

source_file="res://Assets/Fonts/RedHatText-Regular.ttf"
dest_files=["res://.godot/imported/RedHatText-Regular.ttf-26d51c6f384dae5a588f82cd577f5d85.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
2 changes: 1 addition & 1 deletion CSLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Godot;
using System;

public class CSLogger : Node
public partial class CSLogger : Node
{
Node gdlogger;

Expand Down
98 changes: 37 additions & 61 deletions Player.tscn
Original file line number Diff line number Diff line change
@@ -1,95 +1,71 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=4 format=3 uid="uid://vmssqp0t7y7w"]

[ext_resource path="res://images/ship.png" type="Texture" id=1]
[ext_resource path="res://PlayerShip.cs" type="Script" id=2]
[ext_resource type="Texture2D" uid="uid://dttvdirodvjq7" path="res://images/ship.png" id="1"]
[ext_resource type="Script" path="res://PlayerShip.cs" id="2"]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 39.5, 41.5 )
[sub_resource type="RectangleShape2D" id="1"]
size = Vector2(39.5, 41.5)

[node name="ShipThings" type="Area2D"]

[node name="ClickBox" type="CollisionShape2D" parent="."]
position = Vector2( -0.5, 6.5 )
shape = SubResource( 1 )
position = Vector2(-0.5, 6.5)
shape = SubResource("1")

[node name="Stat" type="Node2D" parent="."]

[node name="IDLabel" type="Label" parent="Stat"]
margin_left = -35.0
margin_top = 28.0
margin_right = 35.0
margin_bottom = 42.0
offset_left = -35.0
offset_top = 28.0
offset_right = 35.0
offset_bottom = 42.0
grow_horizontal = 2
text = "UUIDUUID"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="LinearVelocity" type="Label" parent="Stat"]
margin_left = -33.0
margin_top = 41.0
margin_right = 33.0
margin_bottom = 55.0
offset_left = -33.0
offset_top = 41.0
offset_right = 33.0
offset_bottom = 55.0
text = "LinVel"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="AngularVelocity" type="Label" parent="Stat"]
margin_left = -33.0
margin_top = 53.0
margin_right = 33.0
margin_bottom = 67.0
offset_left = -33.0
offset_top = 53.0
offset_right = 33.0
offset_bottom = 67.0
text = "AngVel"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="HitPoints" type="Label" parent="Stat"]
margin_left = -33.0
margin_top = 68.0
margin_right = 33.0
margin_bottom = 82.0
offset_left = -33.0
offset_top = 68.0
offset_right = 33.0
offset_bottom = 82.0
text = "HP"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Position" type="Label" parent="Stat"]
margin_left = -33.0
margin_top = 81.0
margin_right = 33.0
margin_bottom = 95.0
offset_left = -33.0
offset_top = 81.0
offset_right = 33.0
offset_bottom = 95.0
text = "Position"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Hex" type="Label" parent="Stat"]
margin_left = -33.0
margin_top = 93.0
margin_right = 33.0
margin_bottom = 107.0
offset_left = -33.0
offset_top = 93.0
offset_right = 33.0
offset_bottom = 107.0
text = "MyHex"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="PlayerShip" type="KinematicBody2D" parent="."]
script = ExtResource( 2 )
[node name="PlayerShip" type="CharacterBody2D" parent="."]
script = ExtResource("2")

[node name="Sprite" type="Sprite" parent="PlayerShip"]
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 1 )
[node name="Sprite2D" type="Sprite2D" parent="PlayerShip"]
scale = Vector2(0.25, 0.25)
texture = ExtResource("1")

[node name="ShipHitBox" type="CollisionPolygon2D" parent="PlayerShip"]
polygon = PoolVector2Array( -5, -31, 5, -31, 11, -10, 16, 5, 26, 10, 29, 28, -17, 28, -28, 28, -28, 15, -25, 10, -16, 4 )
polygon = PackedVector2Array(-5, -31, 5, -31, 11, -10, 16, 5, 26, 10, 29, 28, -17, 28, -28, 28, -28, 15, -25, 10, -16, 4)

[node name="RemoteTransform2D" type="RemoteTransform2D" parent="PlayerShip"]
remote_path = NodePath("../../Stat")
Expand Down
Loading

0 comments on commit 8b0c514

Please sign in to comment.