gitignore update
2
.gitignore
vendored
@ -3,4 +3,4 @@
|
|||||||
*.x86_64
|
*.x86_64
|
||||||
*.log
|
*.log
|
||||||
/.import
|
/.import
|
||||||
/test
|
test/
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="9750ca6557519b87fc4520d712122db2"
|
|
||||||
dest_md5="5eb6e761bb9e4397cd2a5caa6c18dc5a"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
|
|
||||||
dest_md5="2ded9e7f9060e2b530aab678b135fc5b"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="955d690ad235d803af1ea20b98c6c3dc"
|
|
||||||
dest_md5="92a6f5c5b2f6296b05cab30ce1278e0e"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="4f501708bd37bf4cbdd218c104ac8ae5"
|
|
||||||
dest_md5="d6c6d4987c8841435ace13715a0c1bd8"
|
|
||||||
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
[gd_scene load_steps=3 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://Sprites/lava.png" type="Texture" id=1]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
|
||||||
extents = Vector2( 251.631, 251.123 )
|
|
||||||
|
|
||||||
[node name="Floor" type="StaticBody2D"]
|
|
||||||
scale = Vector2( 0.3, 0.3 )
|
|
||||||
|
|
||||||
[node name="lava" type="Sprite" parent="."]
|
|
||||||
position = Vector2( -3.75497, -1.16341 )
|
|
||||||
scale = Vector2( 0.3, 0.3 )
|
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
||||||
position = Vector2( -3.75497, -1.16341 )
|
|
||||||
scale = Vector2( 0.3, 0.3 )
|
|
||||||
shape = SubResource( 1 )
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
|
|
||||||
[ext_resource path="res://Floor.tscn" type="PackedScene" id=2]
|
|
||||||
[ext_resource path="res://floor.tscn" type="PackedScene" id=3]
|
|
||||||
|
|
||||||
[node name="Main" type="Node2D"]
|
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
|
||||||
position = Vector2( 559.976, 757.874 )
|
|
||||||
|
|
||||||
[node name="Floor" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 539.901, 843.359 )
|
|
||||||
|
|
||||||
[node name="Floor2" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 587.901, 843.359 )
|
|
||||||
|
|
||||||
[node name="Floor3" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 635.901, 843.359 )
|
|
||||||
|
|
||||||
[node name="Floor4" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 755.901, 787.359 )
|
|
||||||
|
|
||||||
[node name="Floor5" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 803.901, 771.359 )
|
|
||||||
|
|
||||||
[node name="Floor8" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 1027.9, 667.359 )
|
|
||||||
|
|
||||||
[node name="Floor11" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 635.901, 547.359 )
|
|
||||||
|
|
||||||
[node name="Floor12" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 683.901, 547.359 )
|
|
||||||
|
|
||||||
[node name="Floor14" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 779.901, 547.359 )
|
|
||||||
|
|
||||||
[node name="Floor15" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 827.901, 547.359 )
|
|
||||||
|
|
||||||
[node name="Floor13" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 731.901, 547.359 )
|
|
||||||
|
|
||||||
[node name="Floor9" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 1147.9, 595.359 )
|
|
||||||
|
|
||||||
[node name="Floor10" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 1267.9, 539.359 )
|
|
||||||
|
|
||||||
[node name="Floor6" parent="." instance=ExtResource( 2 )]
|
|
||||||
position = Vector2( 851.901, 787.359 )
|
|
||||||
|
|
||||||
[node name="floor" parent="." instance=ExtResource( 3 )]
|
|
||||||
position = Vector2( 962.745, 26.6196 )
|
|
||||||
scale = Vector2( 2, 1 )
|
|
||||||
|
|
||||||
[node name="floor2" parent="." instance=ExtResource( 3 )]
|
|
||||||
position = Vector2( 1003.11, 1052.51 )
|
|
||||||
scale = Vector2( 2, 1 )
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
extends KinematicBody2D
|
|
||||||
|
|
||||||
var speed = 10
|
|
||||||
var jump_force = 300
|
|
||||||
var gravity = 700
|
|
||||||
var vel = Vector2()
|
|
||||||
|
|
||||||
onready var image_player = get_node("Player")
|
|
||||||
|
|
||||||
func _physics_process(delta):
|
|
||||||
if Input.is_action_pressed("player_left"):
|
|
||||||
vel.x -= speed
|
|
||||||
elif Input.is_action_pressed("player_right"):
|
|
||||||
vel.x += speed
|
|
||||||
|
|
||||||
vel.y += gravity * delta
|
|
||||||
|
|
||||||
if Input.is_action_pressed("player_jump") and is_on_floor():
|
|
||||||
vel.y -= jump_force
|
|
||||||
|
|
||||||
vel = move_and_slide(vel, Vector2.UP)
|
|
||||||
|
|
||||||
# if vel.x < 0:
|
|
||||||
# image_player.flip_h = true
|
|
||||||
# elif vel.x > 0:
|
|
||||||
# image_player.flip_h = false
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
[gd_scene load_steps=5 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://Sprites/jedi.png" type="Texture" id=1]
|
|
||||||
[ext_resource path="res://Player.gd" type="Script" id=2]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
|
||||||
extents = Vector2( 84.8674, 259.173 )
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=2]
|
|
||||||
extents = Vector2( 18.8674, 110.053 )
|
|
||||||
|
|
||||||
[node name="Player" type="KinematicBody2D"]
|
|
||||||
scale = Vector2( 0.5, 0.5 )
|
|
||||||
script = ExtResource( 2 )
|
|
||||||
|
|
||||||
[node name="jedi" type="Sprite" parent="."]
|
|
||||||
scale = Vector2( 0.5, 0.5 )
|
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
||||||
position = Vector2( -14.2705, -4.75684 )
|
|
||||||
scale = Vector2( 0.5, 0.5 )
|
|
||||||
shape = SubResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
|
|
||||||
position = Vector2( 53.5143, -48.1629 )
|
|
||||||
rotation = 0.253073
|
|
||||||
scale = Vector2( 0.5, 0.5 )
|
|
||||||
shape = SubResource( 2 )
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/floor.png-bad02a3061f4734a68e01c2ddec9b22e.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://Sprites/floor.png"
|
|
||||||
dest_files=[ "res://.import/floor.png-bad02a3061f4734a68e01c2ddec9b22e.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 23 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/jedi.png-f9be092cc27114ea04f99ed2335d3100.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://Sprites/jedi.png"
|
|
||||||
dest_files=[ "res://.import/jedi.png-f9be092cc27114ea04f99ed2335d3100.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 35 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/lava.png-68ab43619d46c5f3cf0fd86b7248d922.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://Sprites/lava.png"
|
|
||||||
dest_files=[ "res://.import/lava.png-68ab43619d46c5f3cf0fd86b7248d922.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
[gd_resource type="Environment" load_steps=2 format=2]
|
|
||||||
|
|
||||||
[sub_resource type="ProceduralSky" id=1]
|
|
||||||
|
|
||||||
[resource]
|
|
||||||
background_mode = 2
|
|
||||||
background_sky = SubResource( 1 )
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
[preset.0]
|
|
||||||
|
|
||||||
name="Test Game Linux"
|
|
||||||
platform="Linux/X11"
|
|
||||||
runnable=true
|
|
||||||
custom_features=""
|
|
||||||
export_filter="all_resources"
|
|
||||||
include_filter=""
|
|
||||||
exclude_filter=""
|
|
||||||
export_path="./Game #1.x86_64"
|
|
||||||
script_export_mode=1
|
|
||||||
script_encryption_key=""
|
|
||||||
|
|
||||||
[preset.0.options]
|
|
||||||
|
|
||||||
custom_template/debug=""
|
|
||||||
custom_template/release=""
|
|
||||||
binary_format/64_bits=true
|
|
||||||
binary_format/embed_pck=false
|
|
||||||
texture_format/bptc=false
|
|
||||||
texture_format/s3tc=true
|
|
||||||
texture_format/etc=false
|
|
||||||
texture_format/etc2=false
|
|
||||||
texture_format/no_bptc_fallbacks=true
|
|
||||||
|
Before Width: | Height: | Size: 3.2 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://icon.png"
|
|
||||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
; Engine configuration file.
|
|
||||||
; It's best edited using the editor UI and not directly,
|
|
||||||
; since the parameters that go here are not all obvious.
|
|
||||||
;
|
|
||||||
; Format:
|
|
||||||
; [section] ; section goes between []
|
|
||||||
; param=value ; assign values to parameters
|
|
||||||
|
|
||||||
config_version=4
|
|
||||||
|
|
||||||
[application]
|
|
||||||
|
|
||||||
config/name="Game_1"
|
|
||||||
run/main_scene="res://Main.tscn"
|
|
||||||
config/icon="res://icon.png"
|
|
||||||
|
|
||||||
[display]
|
|
||||||
|
|
||||||
window/size/width=1920
|
|
||||||
window/size/height=1080
|
|
||||||
window/size/test_width=1024
|
|
||||||
window/size/test_height=600
|
|
||||||
window/stretch/mode="2d"
|
|
||||||
window/stretch/aspect="keep"
|
|
||||||
|
|
||||||
[input]
|
|
||||||
|
|
||||||
player_left={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
|
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
player_right={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
|
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
player_jump={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
|
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
|
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
[physics]
|
|
||||||
|
|
||||||
common/enable_pause_aware_picking=true
|
|
||||||
|
|
||||||
[rendering]
|
|
||||||
|
|
||||||
environment/default_environment="res://default_env.tres"
|
|
||||||
BIN
kristofers/test/Game_2/.DS_Store
vendored
@ -1,3 +0,0 @@
|
|||||||
source_md5="4cad95fdec75c9ca4ccb4dffd3618e3d"
|
|
||||||
dest_md5="feb11866be70b87189c6fc2a990d302c"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="b4673334fcd364983e9f90d7958d9605"
|
|
||||||
dest_md5="15a694f81cb6bd90fe34ec1e5fe917b6"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="7e41bf3051b18e392a4bb6c0cc45cd7c"
|
|
||||||
dest_md5="92eb858faaa1840609e0a1d10f0a2ab1"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="d041073fd312eaece94ece7a2e6a8821"
|
|
||||||
dest_md5="427e434562f75e13eb6b4cedf1822e6f"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="2455caa5d2ead6b686a3fec6e96ef413"
|
|
||||||
dest_md5="541bc05b7e2edec0658f8c79fad564b7"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="2455caa5d2ead6b686a3fec6e96ef413"
|
|
||||||
dest_md5="541bc05b7e2edec0658f8c79fad564b7"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="28d8736ab3510f40a01d43dd5c4ac28c"
|
|
||||||
dest_md5="e07675e876c6c7d612f82727e1a0cd13"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="a58c7825dac59bc84dcead975892ba63"
|
|
||||||
dest_md5="bafa63f8cd6b53e4adc8f1cc657cbf5e"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="fe87c435b38e851a185eeffd71e605ee"
|
|
||||||
dest_md5="afcf87f339aac44d0baf2b31708b41a4"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="ce58c02e3e6951afe8af32fb801bb071"
|
|
||||||
dest_md5="b1ba8cf3a66d7a9475455d86216b1491"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="5f1a7c7aa82dcbcbe369644006676178"
|
|
||||||
dest_md5="5853c7687fd1dcb80054b98074bceb87"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="2455caa5d2ead6b686a3fec6e96ef413"
|
|
||||||
dest_md5="541bc05b7e2edec0658f8c79fad564b7"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="9686a3d25d42c05c127df13e8b508f7f"
|
|
||||||
dest_md5="5200aeab0e4bf3f100914fe37b563b26"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="a6af615bb38b6c2fee78ab04fa233325"
|
|
||||||
dest_md5="050434b036c3e897eb9b2a33ff1db8b8"
|
|
||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
source_md5="19fe22a26dade2930fccd650c0d16ef8"
|
|
||||||
dest_md5="08cef941eb5c82c7161f3d52e216e5f7"
|
|
||||||
|
|
||||||
@ -1,186 +0,0 @@
|
|||||||
/*************************************************************************/
|
|
||||||
/* audio.worklet.js */
|
|
||||||
/*************************************************************************/
|
|
||||||
/* This file is part of: */
|
|
||||||
/* GODOT ENGINE */
|
|
||||||
/* https://godotengine.org */
|
|
||||||
/*************************************************************************/
|
|
||||||
/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
|
|
||||||
/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
|
|
||||||
/* */
|
|
||||||
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
||||||
/* a copy of this software and associated documentation files (the */
|
|
||||||
/* "Software"), to deal in the Software without restriction, including */
|
|
||||||
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
||||||
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
||||||
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
||||||
/* the following conditions: */
|
|
||||||
/* */
|
|
||||||
/* The above copyright notice and this permission notice shall be */
|
|
||||||
/* included in all copies or substantial portions of the Software. */
|
|
||||||
/* */
|
|
||||||
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
||||||
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
||||||
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
||||||
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
||||||
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
||||||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
||||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
||||||
/*************************************************************************/
|
|
||||||
|
|
||||||
class RingBuffer {
|
|
||||||
constructor(p_buffer, p_state) {
|
|
||||||
this.buffer = p_buffer;
|
|
||||||
this.avail = p_state;
|
|
||||||
this.rpos = 0;
|
|
||||||
this.wpos = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
data_left() {
|
|
||||||
return Atomics.load(this.avail, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
space_left() {
|
|
||||||
return this.buffer.length - this.data_left();
|
|
||||||
}
|
|
||||||
|
|
||||||
read(output) {
|
|
||||||
const size = this.buffer.length;
|
|
||||||
let from = 0;
|
|
||||||
let to_write = output.length;
|
|
||||||
if (this.rpos + to_write > size) {
|
|
||||||
const high = size - this.rpos;
|
|
||||||
output.set(this.buffer.subarray(this.rpos, size));
|
|
||||||
from = high;
|
|
||||||
to_write -= high;
|
|
||||||
this.rpos = 0;
|
|
||||||
}
|
|
||||||
output.set(this.buffer.subarray(this.rpos, this.rpos + to_write), from);
|
|
||||||
this.rpos += to_write;
|
|
||||||
Atomics.add(this.avail, 0, -output.length);
|
|
||||||
Atomics.notify(this.avail, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
write(p_buffer) {
|
|
||||||
const to_write = p_buffer.length;
|
|
||||||
const mw = this.buffer.length - this.wpos;
|
|
||||||
if (mw >= to_write) {
|
|
||||||
this.buffer.set(p_buffer, this.wpos);
|
|
||||||
} else {
|
|
||||||
const high = p_buffer.subarray(0, to_write - mw);
|
|
||||||
const low = p_buffer.subarray(to_write - mw);
|
|
||||||
this.buffer.set(high, this.wpos);
|
|
||||||
this.buffer.set(low);
|
|
||||||
}
|
|
||||||
let diff = to_write;
|
|
||||||
if (this.wpos + diff >= this.buffer.length) {
|
|
||||||
diff -= this.buffer.length;
|
|
||||||
}
|
|
||||||
this.wpos += diff;
|
|
||||||
Atomics.add(this.avail, 0, to_write);
|
|
||||||
Atomics.notify(this.avail, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class GodotProcessor extends AudioWorkletProcessor {
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
this.running = true;
|
|
||||||
this.lock = null;
|
|
||||||
this.notifier = null;
|
|
||||||
this.output = null;
|
|
||||||
this.output_buffer = new Float32Array();
|
|
||||||
this.input = null;
|
|
||||||
this.input_buffer = new Float32Array();
|
|
||||||
this.port.onmessage = (event) => {
|
|
||||||
const cmd = event.data['cmd'];
|
|
||||||
const data = event.data['data'];
|
|
||||||
this.parse_message(cmd, data);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
process_notify() {
|
|
||||||
Atomics.add(this.notifier, 0, 1);
|
|
||||||
Atomics.notify(this.notifier, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
parse_message(p_cmd, p_data) {
|
|
||||||
if (p_cmd === 'start' && p_data) {
|
|
||||||
const state = p_data[0];
|
|
||||||
let idx = 0;
|
|
||||||
this.lock = state.subarray(idx, ++idx);
|
|
||||||
this.notifier = state.subarray(idx, ++idx);
|
|
||||||
const avail_in = state.subarray(idx, ++idx);
|
|
||||||
const avail_out = state.subarray(idx, ++idx);
|
|
||||||
this.input = new RingBuffer(p_data[1], avail_in);
|
|
||||||
this.output = new RingBuffer(p_data[2], avail_out);
|
|
||||||
} else if (p_cmd === 'stop') {
|
|
||||||
this.runing = false;
|
|
||||||
this.output = null;
|
|
||||||
this.input = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static array_has_data(arr) {
|
|
||||||
return arr.length && arr[0].length && arr[0][0].length;
|
|
||||||
}
|
|
||||||
|
|
||||||
process(inputs, outputs, parameters) {
|
|
||||||
if (!this.running) {
|
|
||||||
return false; // Stop processing.
|
|
||||||
}
|
|
||||||
if (this.output === null) {
|
|
||||||
return true; // Not ready yet, keep processing.
|
|
||||||
}
|
|
||||||
const process_input = GodotProcessor.array_has_data(inputs);
|
|
||||||
if (process_input) {
|
|
||||||
const input = inputs[0];
|
|
||||||
const chunk = input[0].length * input.length;
|
|
||||||
if (this.input_buffer.length !== chunk) {
|
|
||||||
this.input_buffer = new Float32Array(chunk);
|
|
||||||
}
|
|
||||||
if (this.input.space_left() >= chunk) {
|
|
||||||
GodotProcessor.write_input(this.input_buffer, input);
|
|
||||||
this.input.write(this.input_buffer);
|
|
||||||
} else {
|
|
||||||
this.port.postMessage('Input buffer is full! Skipping input frame.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const process_output = GodotProcessor.array_has_data(outputs);
|
|
||||||
if (process_output) {
|
|
||||||
const output = outputs[0];
|
|
||||||
const chunk = output[0].length * output.length;
|
|
||||||
if (this.output_buffer.length !== chunk) {
|
|
||||||
this.output_buffer = new Float32Array(chunk);
|
|
||||||
}
|
|
||||||
if (this.output.data_left() >= chunk) {
|
|
||||||
this.output.read(this.output_buffer);
|
|
||||||
GodotProcessor.write_output(output, this.output_buffer);
|
|
||||||
} else {
|
|
||||||
this.port.postMessage('Output buffer has not enough frames! Skipping output frame.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.process_notify();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static write_output(dest, source) {
|
|
||||||
const channels = dest.length;
|
|
||||||
for (let ch = 0; ch < channels; ch++) {
|
|
||||||
for (let sample = 0; sample < dest[ch].length; sample++) {
|
|
||||||
dest[ch][sample] = source[sample * channels + ch];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static write_input(dest, source) {
|
|
||||||
const channels = source.length;
|
|
||||||
for (let ch = 0; ch < channels; ch++) {
|
|
||||||
for (let sample = 0; sample < source[ch].length; sample++) {
|
|
||||||
dest[sample * channels + ch] = source[ch][sample];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
registerProcessor('godot-processor', GodotProcessor);
|
|
||||||
@ -1,246 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
|
|
||||||
<head>
|
|
||||||
<meta charset='utf-8' />
|
|
||||||
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
|
||||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
|
||||||
<title>Game Project</title>
|
|
||||||
<style type='text/css'>
|
|
||||||
|
|
||||||
body {
|
|
||||||
touch-action: none;
|
|
||||||
margin: 0;
|
|
||||||
border: 0 none;
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#canvas {
|
|
||||||
display: block;
|
|
||||||
margin: 0;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#canvas:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.godot {
|
|
||||||
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
|
|
||||||
color: #e0e0e0;
|
|
||||||
background-color: #3b3943;
|
|
||||||
background-image: linear-gradient(to bottom, #403e48, #35333c);
|
|
||||||
border: 1px solid #45434e;
|
|
||||||
box-shadow: 0 0 1px 1px #2f2d35;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Status display
|
|
||||||
* ============== */
|
|
||||||
|
|
||||||
#status {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
/* don't consume click events - make children visible explicitly */
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-progress {
|
|
||||||
width: 366px;
|
|
||||||
height: 7px;
|
|
||||||
background-color: #38363A;
|
|
||||||
border: 1px solid #444246;
|
|
||||||
padding: 1px;
|
|
||||||
box-shadow: 0 0 2px 1px #1B1C22;
|
|
||||||
border-radius: 2px;
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (orientation:portrait) {
|
|
||||||
#status-progress {
|
|
||||||
width: 61.8%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-progress-inner {
|
|
||||||
height: 100%;
|
|
||||||
width: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
transition: width 0.5s linear;
|
|
||||||
background-color: #202020;
|
|
||||||
border: 1px solid #222223;
|
|
||||||
box-shadow: 0 0 1px 1px #27282E;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-indeterminate {
|
|
||||||
visibility: visible;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-indeterminate > div {
|
|
||||||
width: 4.5px;
|
|
||||||
height: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 9px 3px 0 3px;
|
|
||||||
border-color: #2b2b2b transparent transparent transparent;
|
|
||||||
transform-origin: center 21px;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
|
|
||||||
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
|
|
||||||
|
|
||||||
#status-notice {
|
|
||||||
margin: 0 100px;
|
|
||||||
line-height: 1.3;
|
|
||||||
visibility: visible;
|
|
||||||
padding: 4px 6px;
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<canvas id='canvas'>
|
|
||||||
HTML5 canvas appears to be unsupported in the current browser.<br />
|
|
||||||
Please try updating or use a different browser.
|
|
||||||
</canvas>
|
|
||||||
<div id='status'>
|
|
||||||
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
|
|
||||||
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
<div></div>
|
|
||||||
</div>
|
|
||||||
<div id='status-notice' class='godot' style='display: none;'></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type='text/javascript' src='Game #2 3D.js'></script>
|
|
||||||
<script type='text/javascript'>//<![CDATA[
|
|
||||||
|
|
||||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"Game #2 3D","experimentalVK":false,"fileSizes":{"Game #2 3D.pck":106707920,"Game #2 3D.wasm":12665632},"gdnativeLibs":[]};
|
|
||||||
var engine = new Engine(GODOT_CONFIG);
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
|
||||||
var statusProgress = document.getElementById('status-progress');
|
|
||||||
var statusProgressInner = document.getElementById('status-progress-inner');
|
|
||||||
var statusIndeterminate = document.getElementById('status-indeterminate');
|
|
||||||
var statusNotice = document.getElementById('status-notice');
|
|
||||||
|
|
||||||
var initializing = true;
|
|
||||||
var statusMode = 'hidden';
|
|
||||||
|
|
||||||
var animationCallbacks = [];
|
|
||||||
function animate(time) {
|
|
||||||
animationCallbacks.forEach(callback => callback(time));
|
|
||||||
requestAnimationFrame(animate);
|
|
||||||
}
|
|
||||||
requestAnimationFrame(animate);
|
|
||||||
|
|
||||||
function setStatusMode(mode) {
|
|
||||||
|
|
||||||
if (statusMode === mode || !initializing)
|
|
||||||
return;
|
|
||||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
|
||||||
elem.style.display = 'none';
|
|
||||||
});
|
|
||||||
animationCallbacks = animationCallbacks.filter(function(value) {
|
|
||||||
return (value != animateStatusIndeterminate);
|
|
||||||
});
|
|
||||||
switch (mode) {
|
|
||||||
case 'progress':
|
|
||||||
statusProgress.style.display = 'block';
|
|
||||||
break;
|
|
||||||
case 'indeterminate':
|
|
||||||
statusIndeterminate.style.display = 'block';
|
|
||||||
animationCallbacks.push(animateStatusIndeterminate);
|
|
||||||
break;
|
|
||||||
case 'notice':
|
|
||||||
statusNotice.style.display = 'block';
|
|
||||||
break;
|
|
||||||
case 'hidden':
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw new Error('Invalid status mode');
|
|
||||||
}
|
|
||||||
statusMode = mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
function animateStatusIndeterminate(ms) {
|
|
||||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
|
||||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
|
||||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
|
||||||
child.style.borderTopColor = '';
|
|
||||||
});
|
|
||||||
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function setStatusNotice(text) {
|
|
||||||
while (statusNotice.lastChild) {
|
|
||||||
statusNotice.removeChild(statusNotice.lastChild);
|
|
||||||
}
|
|
||||||
var lines = text.split('\n');
|
|
||||||
lines.forEach((line) => {
|
|
||||||
statusNotice.appendChild(document.createTextNode(line));
|
|
||||||
statusNotice.appendChild(document.createElement('br'));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
function displayFailureNotice(err) {
|
|
||||||
var msg = err.message || err;
|
|
||||||
console.error(msg);
|
|
||||||
setStatusNotice(msg);
|
|
||||||
setStatusMode('notice');
|
|
||||||
initializing = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!Engine.isWebGLAvailable()) {
|
|
||||||
displayFailureNotice('WebGL not available');
|
|
||||||
} else {
|
|
||||||
setStatusMode('indeterminate');
|
|
||||||
engine.startGame({
|
|
||||||
'onProgress': function (current, total) {
|
|
||||||
if (total > 0) {
|
|
||||||
statusProgressInner.style.width = current/total * 100 + '%';
|
|
||||||
setStatusMode('progress');
|
|
||||||
if (current === total) {
|
|
||||||
// wait for progress bar animation
|
|
||||||
setTimeout(() => {
|
|
||||||
setStatusMode('indeterminate');
|
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
setStatusMode('indeterminate');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}).then(() => {
|
|
||||||
setStatusMode('hidden');
|
|
||||||
initializing = false;
|
|
||||||
}, displayFailureNotice);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
//]]></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 21 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/Game #2 3D.png-a75dd0d036ce991406177fdcdd795259.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://HTML/Game #2 3D.png"
|
|
||||||
dest_files=[ "res://.import/Game #2 3D.png-a75dd0d036ce991406177fdcdd795259.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 7.2 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/favicon.png-ec674acb7f04b1a171404e09471346bb.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://HTML/favicon.png"
|
|
||||||
dest_files=[ "res://.import/favicon.png-ec674acb7f04b1a171404e09471346bb.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
[gd_scene load_steps=10 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://forest/source/full forest.fbx" type="PackedScene" id=1]
|
|
||||||
[ext_resource path="res://cat/scene.gltf" type="PackedScene" id=3]
|
|
||||||
[ext_resource path="res://Player.gd" type="Script" id=4]
|
|
||||||
[ext_resource path="res://forest/source/full forest.gd" type="Script" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="ProceduralSky" id=1]
|
|
||||||
|
|
||||||
[sub_resource type="Environment" id=2]
|
|
||||||
background_mode = 2
|
|
||||||
background_sky = SubResource( 1 )
|
|
||||||
tonemap_mode = 2
|
|
||||||
auto_exposure_enabled = true
|
|
||||||
auto_exposure_scale = 0.1
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape" id=3]
|
|
||||||
extents = Vector3( 12.1695, 0.120799, 12.5362 )
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape" id=4]
|
|
||||||
radius = 0.354752
|
|
||||||
height = 4.85497
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape" id=5]
|
|
||||||
radius = 0.266648
|
|
||||||
height = 1.39858
|
|
||||||
|
|
||||||
[node name="Spatial" type="Spatial"]
|
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
||||||
environment = SubResource( 2 )
|
|
||||||
|
|
||||||
[node name="full forest" parent="WorldEnvironment" instance=ExtResource( 1 )]
|
|
||||||
transform = Transform( 500, 0, 0, 0, 500, 0, 0, 0, 500, 0, 0.119735, 0 )
|
|
||||||
script = ExtResource( 5 )
|
|
||||||
|
|
||||||
[node name="StaticBody" type="StaticBody" parent="WorldEnvironment"]
|
|
||||||
transform = Transform( 5, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0 )
|
|
||||||
|
|
||||||
[node name="floor" type="CollisionShape" parent="WorldEnvironment/StaticBody"]
|
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.064606, 0 )
|
|
||||||
shape = SubResource( 3 )
|
|
||||||
|
|
||||||
[node name="trunk #1" type="CollisionShape" parent="WorldEnvironment/StaticBody"]
|
|
||||||
transform = Transform( -4.27079e-08, -0.977042, 0.213047, 1, -4.37114e-08, 0, 9.3126e-09, 0.213047, 0.977042, 3.13124, 0.0917925, 4.04415 )
|
|
||||||
shape = SubResource( 4 )
|
|
||||||
|
|
||||||
[node name="Camera" type="Camera" parent="."]
|
|
||||||
transform = Transform( 0.269935, -0.555398, 0.786555, 0.0338664, 0.821849, 0.568698, -0.962283, -0.126874, 0.240655, 95.592, 71.5086, 18.2005 )
|
|
||||||
|
|
||||||
[node name="Player" type="KinematicBody" parent="."]
|
|
||||||
transform = Transform( -5, 0, -7.54979e-07, 0, 5, 0, 7.54979e-07, 0, -5, 3.96783, 3.22079, 15.5653 )
|
|
||||||
script = ExtResource( 4 )
|
|
||||||
|
|
||||||
[node name="CollisionShape" type="CollisionShape" parent="Player"]
|
|
||||||
shape = SubResource( 5 )
|
|
||||||
|
|
||||||
[node name="scene" parent="Player/CollisionShape" instance=ExtResource( 3 )]
|
|
||||||
transform = Transform( 0.008, 0, 1.11022e-16, 0, 0.008, 0, -1.11022e-16, 0, 0.008, 0, -0.672847, 0 )
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
extends KinematicBody
|
|
||||||
|
|
||||||
const SPEED = 3
|
|
||||||
const JUMP = 10
|
|
||||||
const GRAVITY = 0.98
|
|
||||||
const ROTATE = 0.15
|
|
||||||
|
|
||||||
onready var anim = $CollisionShape/scene/AnimationPlayer
|
|
||||||
|
|
||||||
var y_pos = 0
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
anim.get_animation("RootRootAction").set_loop(true)
|
|
||||||
anim.play("RootRootAction")
|
|
||||||
|
|
||||||
func _physics_process(delta):
|
|
||||||
var moving_vec = Vector3()
|
|
||||||
if Input.is_action_pressed("move_forwards"):
|
|
||||||
moving_vec.z += 1
|
|
||||||
if Input.is_action_pressed("move_backwards"):
|
|
||||||
moving_vec.z -= 1
|
|
||||||
if Input.is_action_pressed("move_right"):
|
|
||||||
rotate_y(-ROTATE)
|
|
||||||
if Input.is_action_pressed("move_left"):
|
|
||||||
rotate_y(ROTATE)
|
|
||||||
|
|
||||||
moving_vec = moving_vec.normalized()
|
|
||||||
moving_vec *= SPEED
|
|
||||||
|
|
||||||
move_and_slide(transform.basis.xform(Vector3(0, y_pos, moving_vec.z)))
|
|
||||||
|
|
||||||
y_pos -= GRAVITY
|
|
||||||
if Input.is_action_just_pressed("jump"):
|
|
||||||
y_pos = JUMP
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
extends Spatial
|
|
||||||
|
|
||||||
|
|
||||||
# Declare member variables here. Examples:
|
|
||||||
# var a = 2
|
|
||||||
# var b = "text"
|
|
||||||
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
|
||||||
pass # Replace with function body.
|
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
#func _process(delta):
|
|
||||||
# pass
|
|
||||||
|
Before Width: | Height: | Size: 168 KiB |
@ -1,36 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path.s3tc="res://.import/DefaultSkin_baseColor.png-ecd940ae64dc916f761c9c67a0e31043.s3tc.stex"
|
|
||||||
path.etc2="res://.import/DefaultSkin_baseColor.png-ecd940ae64dc916f761c9c67a0e31043.etc2.stex"
|
|
||||||
metadata={
|
|
||||||
"imported_formats": [ "s3tc", "etc2" ],
|
|
||||||
"vram_texture": true
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://cat/textures/DefaultSkin_baseColor.png"
|
|
||||||
dest_files=[ "res://.import/DefaultSkin_baseColor.png-ecd940ae64dc916f761c9c67a0e31043.s3tc.stex", "res://.import/DefaultSkin_baseColor.png-ecd940ae64dc916f761c9c67a0e31043.etc2.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=2
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=true
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=true
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=1
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=false
|
|
||||||
svg/scale=1.0
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
[preset.0]
|
|
||||||
|
|
||||||
name="HTML5"
|
|
||||||
platform="HTML5"
|
|
||||||
runnable=true
|
|
||||||
custom_features=""
|
|
||||||
export_filter="all_resources"
|
|
||||||
include_filter=""
|
|
||||||
exclude_filter=""
|
|
||||||
export_path="HTML/Game #2 3D.html"
|
|
||||||
script_export_mode=1
|
|
||||||
script_encryption_key=""
|
|
||||||
|
|
||||||
[preset.0.options]
|
|
||||||
|
|
||||||
custom_template/debug=""
|
|
||||||
custom_template/release=""
|
|
||||||
variant/export_type=0
|
|
||||||
vram_texture_compression/for_desktop=true
|
|
||||||
vram_texture_compression/for_mobile=false
|
|
||||||
html/custom_html_shell=""
|
|
||||||
html/head_include=""
|
|
||||||
html/canvas_resize_policy=2
|
|
||||||
html/experimental_virtual_keyboard=false
|
|
||||||
BIN
kristofers/test/Game_2/forest/.DS_Store
vendored
@ -1,7 +0,0 @@
|
|||||||
extends Spatial
|
|
||||||
|
|
||||||
onready var anim = $AnimationPlayer
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
anim.get_animation("Take 001").set_loop(true)
|
|
||||||
anim.play("Take 001")
|
|
||||||
|
Before Width: | Height: | Size: 86 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/1001_Base_Color.png-69b43bef81833a017bb2ad21971dd33c.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/1001_Base_Color.png"
|
|
||||||
dest_files=[ "res://.import/1001_Base_Color.png-69b43bef81833a017bb2ad21971dd33c.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 706 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/camping tent_1001_Diffuse.png-8a7718f600671e0135cc35a601d6c8c7.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/camping tent_1001_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/camping tent_1001_Diffuse.png-8a7718f600671e0135cc35a601d6c8c7.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 2.1 MiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/floor_1001_Diffuse.png-28f0e72acd44ad1774e5d6ee860b0ebe.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/floor_1001_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/floor_1001_Diffuse.png-28f0e72acd44ad1774e5d6ee860b0ebe.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 1.2 MiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/full forest_arboles_Diffuse.png-ea36a96acacaeeb29502e40bb1ec09f1.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/full forest_arboles_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/full forest_arboles_Diffuse.png-ea36a96acacaeeb29502e40bb1ec09f1.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 775 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/full forest_fogata_Diffuse.png-e080306be9e3de7b6290ca8557e2f360.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/full forest_fogata_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/full forest_fogata_Diffuse.png-e080306be9e3de7b6290ca8557e2f360.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 862 KiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/full forest_roca_Diffuse.png-4a28a95e2aa8a906b989fb8e1a98bd92.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/full forest_roca_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/full forest_roca_Diffuse.png-4a28a95e2aa8a906b989fb8e1a98bd92.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 1.4 MiB |
@ -1,34 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/trees2_1001_Diffuse.png-8236f31411ad0c0cd15f77e4aad35ea9.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://forest/textures/trees2_1001_Diffuse.png"
|
|
||||||
dest_files=[ "res://.import/trees2_1001_Diffuse.png-8236f31411ad0c0cd15f77e4aad35ea9.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
||||||
|
Before Width: | Height: | Size: 7.2 KiB |