forked from team-sg/hero-mark-2
add temp sounds and crt filter
This commit is contained in:
parent
4790b2b2a4
commit
f012e8fa77
21 changed files with 140 additions and 12 deletions
3
.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.md5
Normal file
3
.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.md5
Normal file
|
@ -0,0 +1,3 @@
|
|||
source_md5="0400e19a2fa485f9c0d8b833a79e396b"
|
||||
dest_md5="408862312b7ffba0f4e428ab61158f59"
|
||||
|
BIN
.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.oggstr
Normal file
BIN
.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.oggstr
Normal file
Binary file not shown.
3
.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.md5
Normal file
3
.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.md5
Normal file
|
@ -0,0 +1,3 @@
|
|||
source_md5="2f722d590000bcd4105c435d63c56d62"
|
||||
dest_md5="468e5c7dc047d4c3f4a5678e109654c7"
|
||||
|
BIN
.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.oggstr
Normal file
BIN
.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.oggstr
Normal file
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
source_md5="ae4d82d1cc3cbfcc26e3138508e61969"
|
||||
dest_md5="af4ba30a0295d4e1f52be810adb0656c"
|
||||
|
BIN
.import/snd_coin.ogg-e43af4b2a5fcdba9e9309ebc8f191147.oggstr
Normal file
BIN
.import/snd_coin.ogg-e43af4b2a5fcdba9e9309ebc8f191147.oggstr
Normal file
Binary file not shown.
BIN
audio/sounds/a_jinjo.ogg
Normal file
BIN
audio/sounds/a_jinjo.ogg
Normal file
Binary file not shown.
15
audio/sounds/a_jinjo.ogg.import
Normal file
15
audio/sounds/a_jinjo.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/sounds/a_jinjo.ogg"
|
||||
dest_files=[ "res://.import/a_jinjo.ogg-4b16bf4d913dc9acb601fc4cd65887c1.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
BIN
audio/sounds/jump.ogg
Normal file
BIN
audio/sounds/jump.ogg
Normal file
Binary file not shown.
15
audio/sounds/jump.ogg.import
Normal file
15
audio/sounds/jump.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/sounds/jump.ogg"
|
||||
dest_files=[ "res://.import/jump.ogg-3d03825ba28b5d65e7ecc96d371fc49a.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
BIN
audio/sounds/snd_coin.ogg
Normal file
BIN
audio/sounds/snd_coin.ogg
Normal file
Binary file not shown.
15
audio/sounds/snd_coin.ogg.import
Normal file
15
audio/sounds/snd_coin.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/snd_coin.ogg-e43af4b2a5fcdba9e9309ebc8f191147.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/sounds/snd_coin.ogg"
|
||||
dest_files=[ "res://.import/snd_coin.ogg-e43af4b2a5fcdba9e9309ebc8f191147.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/scaling.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/borders/prideborder.png" type="Texture" id=2]
|
||||
[ext_resource path="res://maps/map01.tscn" type="PackedScene" id=3]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
@ -21,6 +23,7 @@ texture = ExtResource( 2 )
|
|||
expand = true
|
||||
|
||||
[node name="ViewportContainer" type="ViewportContainer" parent="."]
|
||||
material = SubResource( 1 )
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
|
|
2
credits.txt
Normal file
2
credits.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Game by Penny Rigate
|
||||
Shaders by Hazel Aranda
|
7
game.gd
7
game.gd
|
@ -6,6 +6,13 @@ var current_sector = Vector2(0,0)
|
|||
var golds = 0
|
||||
var stars = 0
|
||||
var shards = 0
|
||||
#Audio Channels
|
||||
onready var ac_jump = $JumpSound
|
||||
onready var ac_collectible = $CollecitbleSound
|
||||
#Sounds
|
||||
onready var a_gold = preload("res://audio/sounds/snd_coin.ogg")
|
||||
onready var a_jump = preload("res://audio/sounds/jump.ogg")
|
||||
onready var a_star = preload("res://audio/sounds/a_jinjo.ogg")
|
||||
|
||||
func instance_node(node:PackedScene,x:float,y:float,parent):
|
||||
var Instance = node.instance()
|
||||
|
|
|
@ -4,3 +4,9 @@
|
|||
|
||||
[node name="Game" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CollecitbleSound" type="AudioStreamPlayer" parent="."]
|
||||
volume_db = -8.0
|
||||
|
||||
[node name="JumpSound" type="AudioStreamPlayer" parent="."]
|
||||
volume_db = -12.0
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://objects/ladder/ladder.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://graphics/backgrounds/blue_sky.png" type="Texture" id=3]
|
||||
[ext_resource path="res://objects/enemy/slime.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://objects/collectibles/star.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://objects/collectibles/gold.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://tilesets/t_grass.tres" type="TileSet" id=7]
|
||||
[ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://scripts/delete_on_game_running.gd" type="Script" id=9]
|
||||
[ext_resource path="res://tilesets/t_water.tres" type="TileSet" id=10]
|
||||
[ext_resource path="res://objects/rock/rock.tscn" type="PackedScene" id=11]
|
||||
[ext_resource path="res://objects/collectibles/shard.tscn" type="PackedScene" id=12]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
@ -69,16 +69,67 @@ scale = Vector2( 1, 9 )
|
|||
[node name="Shard" parent="Collectibles" instance=ExtResource( 12 )]
|
||||
position = Vector2( 32, 40 )
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="."]
|
||||
[node name="Gold" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 48, 40 )
|
||||
|
||||
[node name="Slime" parent="Enemies" instance=ExtResource( 5 )]
|
||||
position = Vector2( 128, 152 )
|
||||
[node name="Gold2" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 64, 40 )
|
||||
|
||||
[node name="Rock" parent="." instance=ExtResource( 11 )]
|
||||
[node name="Gold3" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 80, 40 )
|
||||
|
||||
[node name="Gold4" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 168, 40 )
|
||||
|
||||
[node name="Gold5" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 192, 40 )
|
||||
|
||||
[node name="Gold6" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 136, 152 )
|
||||
|
||||
[node name="Gold7" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 152, 152 )
|
||||
|
||||
[node name="Gold8" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 104, 128 )
|
||||
|
||||
[node name="Gold9" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 88, 128 )
|
||||
|
||||
[node name="Gold10" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 72, 128 )
|
||||
|
||||
[node name="Gold11" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 144, 104 )
|
||||
|
||||
[node name="Rock2" parent="." instance=ExtResource( 11 )]
|
||||
position = Vector2( 144, 152 )
|
||||
[node name="Gold12" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 160, 104 )
|
||||
|
||||
[node name="Gold13" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 176, 104 )
|
||||
|
||||
[node name="Gold14" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 192, 104 )
|
||||
|
||||
[node name="Gold15" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 112, 80 )
|
||||
|
||||
[node name="Gold17" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 72, 80 )
|
||||
|
||||
[node name="Gold19" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 16, 88 )
|
||||
|
||||
[node name="Gold20" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 24, 88 )
|
||||
|
||||
[node name="Star" parent="Collectibles" instance=ExtResource( 4 )]
|
||||
position = Vector2( 16, 136 )
|
||||
|
||||
[node name="Gold21" parent="Collectibles" instance=ExtResource( 5 )]
|
||||
position = Vector2( 32, 88 )
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
margin_left = 256.0
|
||||
|
|
|
@ -10,4 +10,5 @@ func _on_Area2D_area_entered(area):
|
|||
#Collect
|
||||
if area.is_in_group("player"):
|
||||
Game.golds += value
|
||||
Game.play_sound(Game.a_gold,Game.ac_collectible)
|
||||
queue_free()
|
||||
|
|
|
@ -9,6 +9,7 @@ func _ready():
|
|||
func _on_Area2D_area_entered(area):
|
||||
#Collect
|
||||
if area.is_in_group("player"):
|
||||
Game.play_sound(Game.a_star,Game.ac_collectible)
|
||||
Game.stars += value
|
||||
#5 Star reward
|
||||
if Game.stars == 5: Game.shards += 1
|
||||
|
|
|
@ -49,9 +49,6 @@ func _physics_process(delta):
|
|||
if current_state != State.CLIMB: velocity.y += gravity
|
||||
#Apply velocity
|
||||
move_and_slide(velocity,Vector2.UP)
|
||||
|
||||
print(Game.shards)
|
||||
if Input.is_action_just_pressed("debug_1"): $AnimationPlayer.play("Stab")
|
||||
|
||||
func _process_idle():
|
||||
if anims.get_current_animation() != "idle": anims.play("idle")
|
||||
|
@ -112,6 +109,7 @@ func _process_climb():
|
|||
#Auto Jump
|
||||
if climb_ray.get_collider() == null:
|
||||
velocity.y = -jump_force
|
||||
Game.play_sound(Game.a_jump,Game.ac_jump)
|
||||
current_state = State.FALL
|
||||
return
|
||||
|
||||
|
@ -134,6 +132,7 @@ func check_jump():
|
|||
# Jump
|
||||
jump_pressure = 0
|
||||
current_state = State.JUMP
|
||||
Game.play_sound(Game.a_jump,Game.ac_jump)
|
||||
anims.play("jump")
|
||||
velocity.y = -jump_force
|
||||
move(walk_speed,0,true)
|
||||
|
|
|
@ -50,6 +50,10 @@ texture={
|
|||
"stream": false,
|
||||
"svg/scale": 1.0
|
||||
}
|
||||
ogg_vorbis={
|
||||
"loop": false,
|
||||
"loop_offset": 0
|
||||
}
|
||||
|
||||
[input]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue