Skip to content

Commit 2eddf1d

Browse files
committed
new enemies
2 parents ceef565 + 4241abc commit 2eddf1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+11232
-29
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="4721e0c18d969d87b07d29eb8cb6f39f"
2+
dest_md5="457e07dab05ccf40c859a4fe647d66b3"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="eb0f4fd3d0ac4ba5379748c581763928"
2+
dest_md5="5d4e1280b743455c51f67da40bef1837"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="366e0cbb67e07b1c0a63549004f23e20"
2+
dest_md5="b69666770a5e200fce9a49f1aa99c170"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="c661d1586fd03a7f8002d0c8af3cb90f"
2+
dest_md5="53470ce03cb309ce78e60bc8ba502079"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="00bd7aaa83b8cd323cd2e7099bae9ae4"
2+
dest_md5="d3b8eaf73420cd3ca5ea466a648bb3e5"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="63eac119824dc82a7a8e28402528a672"
2+
dest_md5="07ec2f671dd5742f9702b185eaf45b81"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="75a84f17c681d2ffe5d7abc23b30714a"
2+
dest_md5="4b2b56ea8dc99320d5e588999ca5167a"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="16520e24d28246ee42fa871f850bc001"
2+
dest_md5="2e3acf2babbdfea143c9d49f02c160d0"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="70ca1fb2745f6b66947f16ba60cd5cc9"
2+
dest_md5="877c0f1485343f5abe38b8deda3b8029"
3+
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="45d513ccfe12ba37873c66a56cb7dab0"
2+
dest_md5="a9440b40e78ce09fcc24948b28b2b2e5"
3+
Binary file not shown.

Enemy.gd

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
extends Area2D
2+
3+
# Declare member variables here. Examples:
4+
# var a = 2
5+
# var b = "text"
6+
7+
export var enemy_speed = 1
8+
export var time_min = 3
9+
export var time_max = 5
10+
var Velocity = Vector2()
11+
12+
func flip():
13+
Velocity.x *= -1
14+
$AnimatedSprite.flip_h = Velocity.x < 0
15+
16+
# Called when the node enters the scene tree for the first time.
17+
func _ready():
18+
Velocity.x = enemy_speed
19+
pass # Replace with function body.
20+
21+
# Called every frame. 'delta' is the elapsed time since the previous frame.
22+
#func _process(delta):
23+
# pass
24+
25+
func _physics_process(delta):
26+
if not $BottomFront.is_colliding() or not $BottomRear.is_colliding() or $Rear.is_colliding() or $Front.is_colliding():
27+
flip()
28+
pass
29+
30+
position.x += Velocity.x*delta
31+
32+
33+
func _on_Timer_timeout():
34+
flip()
35+
#$Timer.stop()
36+
$Timer.wait_time = rand_range(2,5)
37+
pass # Replace with function body.
38+
39+
40+
41+
func _on_Enemy_body_entered(body):
42+
if body.get_name() == "Player":
43+
body.get_damage()
44+
$Timer.stop()
45+
queue_free()
46+
print("lifes left: ", body.lifes)
47+
pass # Replace with function body.
48+
49+
50+
func _on_Enemy_area_shape_entered(area_id, area, area_shape, self_shape):
51+
pass # Replace with function body.

PlayerMove.gd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ func _physics_process(delta):
5050
speed.y = 0
5151

5252
move_and_slide(speed*delta*100,Vector2(0,-1))
53-
print(move_and_collide(speed*delta))
5453

5554
func _on_Area2D_body_entered(body):
5655
print (body)
46.5 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/1.png-ba6161f1776720b4c6ed1624bed4d4cb.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkaidziepng/1.png"
13+
dest_files=[ "res://.import/1.png-ba6161f1776720b4c6ed1624bed4d4cb.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
46.8 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/2.png-9a18a46e954a39b957b2a7da629ece7a.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkaidziepng/2.png"
13+
dest_files=[ "res://.import/2.png-9a18a46e954a39b957b2a7da629ece7a.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
34.8 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/1.png-9d4a9cb8c20b00b5b7b91005b93f8919.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkasiekrecipng/1.png"
13+
dest_files=[ "res://.import/1.png-9d4a9cb8c20b00b5b7b91005b93f8919.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
37 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/2.png-8d09ac60920663b15cd2ff41cf256a80.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkasiekrecipng/2.png"
13+
dest_files=[ "res://.import/2.png-8d09ac60920663b15cd2ff41cf256a80.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
34.7 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/3.png-db355a147722afd31f804cfdf53b0b13.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkasiekrecipng/3.png"
13+
dest_files=[ "res://.import/3.png-db355a147722afd31f804cfdf53b0b13.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
42.2 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/4.png-b4d43bf9cd91f2d74121020edc174bf0.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkasiekrecipng/4.png"
13+
dest_files=[ "res://.import/4.png-b4d43bf9cd91f2d74121020edc174bf0.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
45.7 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/1.png-f8293f1409188cb6060e970dac58e17a.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkaskaczepng/1.png"
13+
dest_files=[ "res://.import/1.png-f8293f1409188cb6060e970dac58e17a.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
46.8 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/2.png-bce5939e458265a2abd1c9c68f9b8262.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://assets/images/duck/kaczkaskaczepng/2.png"
13+
dest_files=[ "res://.import/2.png-bce5939e458265a2abd1c9c68f9b8262.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0
47.1 KB
Loading

0 commit comments

Comments
 (0)