fix import issues

This commit is contained in:
Candygoblen123 2024-02-25 11:08:06 -05:00
parent 9cf1956770
commit 75a720eb45
No known key found for this signature in database
GPG Key ID: 577DA64EBEF10385
4 changed files with 10 additions and 43 deletions

View File

@ -1,11 +1,9 @@
[gd_scene load_steps=4 format=3 uid="uid://qipfodwbk1gf"]
[gd_scene load_steps=3 format=3 uid="uid://qipfodwbk1gf"]
[ext_resource type="Script" path="res://Field/field.gd" id="1_6uvjw"]
[ext_resource type="PackedScene" uid="uid://sp3iv6cxuerm" path="res://player.tscn" id="2_oi7aa"]
[ext_resource type="Script" path="res://Player/player.gd" id="3_vsc2e"]
[ext_resource type="PackedScene" uid="uid://dtm0201qhcn4d" path="res://Player/player.tscn" id="2_oi7aa"]
[node name="Field" type="Node2D"]
script = ExtResource("1_6uvjw")
[node name="Player" parent="." instance=ExtResource("2_oi7aa")]
script = ExtResource("3_vsc2e")

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://dtm0201qhcn4d"]
[ext_resource type="Script" path="res://player.gd" id="1_6ggpr"]
[ext_resource type="Script" path="res://Player/player.gd" id="1_6ggpr"]
[node name="Player" type="Node2D"]
z_index = 1

View File

@ -1,38 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://sp3iv6cxuerm"]
[sub_resource type="GDScript" id="GDScript_hd04s"]
script/source = "extends Node2D
var yvel = 1
var yoff = 0
# Called when the node enters the scene tree for the first time.
func _ready():
$Sprite2D.texture = PakAssetLoader.load_file(\"user://data/units.pak/tomomo_00_00.dat\")
$Sprite2D.position = get_global_transform().origin
$Sprite2D.position.y -= 128
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
var pos = get_global_transform().origin
pos.y += -128 + yoff
yvel -= 1
if yvel < -9:
yvel = 9
pos.y += yvel
yoff += yvel
$Sprite2D.position = pos
"
[node name="Player" type="Node2D"]
z_index = 1
script = SubResource("GDScript_hd04s")
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="."]
top_level = true
z_index = 2
position = Vector2(2.08165e-12, -128)

View File

@ -11,10 +11,17 @@ config_version=5
[application]
config/name="Open100OJ"
run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
textures/vram_compression/import_etc2_astc=true