mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2026-03-22 00:26:23 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
|
||||
dest_md5="2ded9e7f9060e2b530aab678b135fc5b"
|
||||
|
||||
BIN
Game #1/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex
Normal file
BIN
Game #1/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex
Normal file
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
source_md5="955d690ad235d803af1ea20b98c6c3dc"
|
||||
dest_md5="92a6f5c5b2f6296b05cab30ce1278e0e"
|
||||
|
||||
BIN
Game #1/.import/jedi.png-f9be092cc27114ea04f99ed2335d3100.stex
Normal file
BIN
Game #1/.import/jedi.png-f9be092cc27114ea04f99ed2335d3100.stex
Normal file
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
source_md5="4f501708bd37bf4cbdd218c104ac8ae5"
|
||||
dest_md5="d6c6d4987c8841435ace13715a0c1bd8"
|
||||
|
||||
BIN
Game #1/.import/lava.png-68ab43619d46c5f3cf0fd86b7248d922.stex
Normal file
BIN
Game #1/.import/lava.png-68ab43619d46c5f3cf0fd86b7248d922.stex
Normal file
Binary file not shown.
19
Game #1/Floor.tscn
Normal file
19
Game #1/Floor.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[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 )
|
||||
54
Game #1/Main.tscn
Normal file
54
Game #1/Main.tscn
Normal file
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Floor.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 52.0742, 458.515 )
|
||||
|
||||
[node name="Floor" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 32, 544 )
|
||||
|
||||
[node name="Floor2" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 80, 544 )
|
||||
|
||||
[node name="Floor3" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 128, 544 )
|
||||
|
||||
[node name="Floor4" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 248, 488 )
|
||||
|
||||
[node name="Floor5" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 296, 472 )
|
||||
|
||||
[node name="Floor8" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 520, 368 )
|
||||
|
||||
[node name="Floor11" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 128, 248 )
|
||||
|
||||
[node name="Floor12" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 176, 248 )
|
||||
|
||||
[node name="Floor14" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 272, 248 )
|
||||
|
||||
[node name="Floor15" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 320, 248 )
|
||||
|
||||
[node name="Floor13" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 224, 248 )
|
||||
|
||||
[node name="Floor9" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 640, 296 )
|
||||
|
||||
[node name="Floor10" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 760, 240 )
|
||||
|
||||
[node name="Floor6" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 344, 488 )
|
||||
|
||||
[node name="Floor7" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 392, 464 )
|
||||
28
Game #1/Player.gd
Normal file
28
Game #1/Player.gd
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
|
||||
29
Game #1/Player.tscn
Normal file
29
Game #1/Player.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[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 )
|
||||
BIN
Game #1/Sprites/jedi.png
Normal file
BIN
Game #1/Sprites/jedi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
34
Game #1/Sprites/jedi.png.import
Normal file
34
Game #1/Sprites/jedi.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[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
|
||||
BIN
Game #1/Sprites/lava.png
Normal file
BIN
Game #1/Sprites/lava.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
34
Game #1/Sprites/lava.png.import
Normal file
34
Game #1/Sprites/lava.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[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
|
||||
7
Game #1/default_env.tres
Normal file
7
Game #1/default_env.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Environment" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="ProceduralSky" id=1]
|
||||
|
||||
[resource]
|
||||
background_mode = 2
|
||||
background_sky = SubResource( 1 )
|
||||
65
Game #1/export_presets.cfg
Normal file
65
Game #1/export_presets.cfg
Normal file
@@ -0,0 +1,65 @@
|
||||
[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
|
||||
|
||||
[preset.1]
|
||||
|
||||
name="Test Game Windows"
|
||||
platform="Windows Desktop"
|
||||
runnable=true
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="./Game #1.exe"
|
||||
script_export_mode=1
|
||||
script_encryption_key=""
|
||||
|
||||
[preset.1.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
|
||||
codesign/enable=false
|
||||
codesign/identity=""
|
||||
codesign/password=""
|
||||
codesign/timestamp=true
|
||||
codesign/timestamp_server_url=""
|
||||
codesign/digest_algorithm=1
|
||||
codesign/description=""
|
||||
codesign/custom_options=PoolStringArray( )
|
||||
application/icon=""
|
||||
application/file_version=""
|
||||
application/product_version=""
|
||||
application/company_name=""
|
||||
application/product_name=""
|
||||
application/file_description=""
|
||||
application/copyright=""
|
||||
application/trademarks=""
|
||||
BIN
Game #1/icon.png
Normal file
BIN
Game #1/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
34
Game #1/icon.png.import
Normal file
34
Game #1/icon.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[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
|
||||
45
Game #1/project.godot
Normal file
45
Game #1/project.godot
Normal file
@@ -0,0 +1,45 @@
|
||||
; 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"
|
||||
|
||||
[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"
|
||||
Reference in New Issue
Block a user