Skip to content

Commit

Permalink
Created the first video
Browse files Browse the repository at this point in the history
  • Loading branch information
uheartbeast committed Jul 13, 2022
0 parents commit 5f94e92
Show file tree
Hide file tree
Showing 19 changed files with 280 additions and 0 deletions.
1 change: 1 addition & 0 deletions .import/.gdignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="457c0a7f86e70ac9030adc9afdb46c6f"
dest_md5="3a4a088e13ed17cd7011a3f43306b7c6"

Binary file not shown.
3 changes: 3 additions & 0 deletions .import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
dest_md5="a88e70cd2a781a9949d2f6ee2829937a"

Binary file not shown.
3 changes: 3 additions & 0 deletions .import/tiles_packed.png-fd6b33d2b56a22feb83002d47ed8ee64.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="856bc53ef0408e71bf5663288d9f1fa0"
dest_md5="ad99476f857fcc86b7e0b3c6d5501415"

Binary file not shown.
16 changes: 16 additions & 0 deletions Block.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://tiles_packed.png" type="Texture" id=1]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 9, 9 )

[node name="Block" type="StaticBody2D"]

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 126, 36, 18, 18 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
17 changes: 17 additions & 0 deletions Player.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends KinematicBody2D

var velocity = Vector2.ZERO

func _physics_process(delta):
velocity.y += 4
if Input.is_action_pressed("ui_right"):
velocity.x = 50
elif Input.is_action_pressed("ui_left"):
velocity.x = -50
else:
velocity.x = 0

if Input.is_action_just_pressed("ui_up"):
velocity.y = -120

velocity = move_and_slide(velocity)
31 changes: 31 additions & 0 deletions Player.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[gd_scene load_steps=6 format=2]

[ext_resource path="res://characters_packed.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]

[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 24, 24 )

[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ SubResource( 1 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
} ]

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 6, 8.5 )

[node name="Player" type="KinematicBody2D"]
script = ExtResource( 2 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 2 )
animation = "Idle"
flip_h = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 3.5 )
shape = SubResource( 3 )
39 changes: 39 additions & 0 deletions World.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://Block.tscn" type="PackedScene" id=1]
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]

[node name="World" type="Node2D"]

[node name="Block" parent="." instance=ExtResource( 1 )]
position = Vector2( 108, 126 )

[node name="Block2" parent="." instance=ExtResource( 1 )]
position = Vector2( 126, 126 )

[node name="Block3" parent="." instance=ExtResource( 1 )]
position = Vector2( 144, 126 )

[node name="Block4" parent="." instance=ExtResource( 1 )]
position = Vector2( 162, 126 )

[node name="Block5" parent="." instance=ExtResource( 1 )]
position = Vector2( 162, 108 )

[node name="Block6" parent="." instance=ExtResource( 1 )]
position = Vector2( 180, 108 )

[node name="Block7" parent="." instance=ExtResource( 1 )]
position = Vector2( 180, 90 )

[node name="Block8" parent="." instance=ExtResource( 1 )]
position = Vector2( 198, 90 )

[node name="Block9" parent="." instance=ExtResource( 1 )]
position = Vector2( 216, 90 )

[node name="Block10" parent="." instance=ExtResource( 1 )]
position = Vector2( 234, 90 )

[node name="Player" parent="." instance=ExtResource( 2 )]
position = Vector2( 126, 72 )
Binary file added characters_packed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions characters_packed.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/characters_packed.png-890290c811414ed077a6b10fd28e12f1.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://characters_packed.png"
dest_files=[ "res://.import/characters_packed.png-890290c811414ed077a6b10fd28e12f1.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
7 changes: 7 additions & 0 deletions default_env.tres
Original file line number Diff line number Diff line change
@@ -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 )
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions icon.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
55 changes: 55 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
; 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="Pixel Platformer"
run/main_scene="res://World.tscn"
config/icon="res://icon.png"

[display]

window/size/width=320
window/size/height=180
window/size/test_width=1280
window/size/test_height=720
window/stretch/mode="2d"

[importer_defaults]

texture={
"compress/bptc_ldr": 0,
"compress/hdr_mode": 0,
"compress/lossy_quality": 0.7,
"compress/mode": 0,
"compress/normal_map": 0,
"detect_3d": false,
"flags/anisotropic": false,
"flags/filter": false,
"flags/mipmaps": false,
"flags/repeat": 0,
"flags/srgb": 2,
"process/HDR_as_SRGB": false,
"process/fix_alpha_border": true,
"process/invert_color": false,
"process/normal_map_invert_y": false,
"process/premult_alpha": false,
"size_limit": 0,
"stream": false,
"svg/scale": 1.0
}

[physics]

common/enable_pause_aware_picking=true

[rendering]

environment/default_environment="res://default_env.tres"
Binary file added tiles_packed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions tiles_packed.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/tiles_packed.png-fd6b33d2b56a22feb83002d47ed8ee64.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://tiles_packed.png"
dest_files=[ "res://.import/tiles_packed.png-fd6b33d2b56a22feb83002d47ed8ee64.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

0 comments on commit 5f94e92

Please sign in to comment.