commit 17acd91c9dac3ad357759848171bfb721fb31884 parent 47f9b5d4a6e138a54f802b779d52d5b5f0eb07ac Author: Léo Villeveygoux <l@vgx.fr> Date: Sun, 28 Aug 2022 19:53:18 +0200 More evil+hidden+gameover Diffstat:
71 files changed, 1283 insertions(+), 9 deletions(-)
diff --git a/Evil.gd b/Evil.gd @@ -0,0 +1,16 @@ +extends "res://Public.gd" + +class_name Evil + +var pnj_evil_frames = [preload("res://PNJ1evilframes.tres"), preload("res://PNJ2evilframes.tres"), preload("res://PNJ3evilframes.tres")] + +func _ready(): + max_speed = max_speed*3.5 + force = force*5 + pnj_frames = pnj_evil_frames + init() + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/Evil.tscn b/Evil.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://Public.tscn" type="PackedScene" id=1] +[ext_resource path="res://Evil.gd" type="Script" id=2] + +[node name="Public" instance=ExtResource( 1 )] +script = ExtResource( 2 ) + +[node name="Sprite" parent="." index="0"] +frame = 1 + +[connection signal="body_entered" from="." to="." method="_on_Public_body_entered"] diff --git a/GameOverScreen.tscn b/GameOverScreen.tscn @@ -0,0 +1,12 @@ +[gd_scene format=2] + +[node name="GameOverScreen" type="Node2D"] + +[node name="Label" type="Label" parent="."] +margin_left = 216.0 +margin_top = 123.0 +margin_right = 314.0 +margin_bottom = 159.0 +text = "Game Over" +align = 1 +valign = 1 diff --git a/Hidden.gd b/Hidden.gd @@ -0,0 +1,19 @@ +extends "res://Public.gd" + +export var detect_dist = 100.0 + +var target + +var evil_scn = preload("res://Evil.tscn") + +func _ready(): + init() + target = get_node("../President") + +func _process(delta): + if position.distance_to(target.position) < detect_dist: + var evil = evil_scn.instance() + evil.type = type + evil.position = position + get_parent().add_child(evil) + queue_free() diff --git a/Hidden.tscn b/Hidden.tscn @@ -0,0 +1,11 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://Public.tscn" type="PackedScene" id=1] +[ext_resource path="res://Hidden.gd" type="Script" id=2] + +[node name="Hidden" instance=ExtResource( 1 )] +script = ExtResource( 2 ) +detect_dist = 100.0 + +[node name="Sprite" parent="." index="0"] +frame = 1 diff --git a/Lampadaire.tscn b/Lampadaire.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://graphics/lampadaire.png" type="Texture" id=1] + +[sub_resource type="CapsuleShape2D" id=1] +radius = 7.0 +height = 12.0 + +[node name="Lampadaire" type="StaticBody2D"] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +rotation = 1.5708 +shape = SubResource( 1 ) + +[node name="Lampadaire" type="Sprite" parent="."] +position = Vector2( 0, -37 ) +texture = ExtResource( 1 ) diff --git a/Level.gd b/Level.gd @@ -6,6 +6,11 @@ var safe_radius = 40.0 var public_scn = preload("res://Public.tscn") var evil_scn = preload("res://Evil.tscn") +var hidden_scn = preload("res://Hidden.tscn") + +var lampadaire_scn = preload("res://Lampadaire.tscn") + +var poubelle_scn = preload("res://Poubelle.tscn") #func _ready(): # $President.position = Vector2(safe_radius, get_viewport_rect().size.y/2) @@ -14,10 +19,27 @@ var evil_scn = preload("res://Evil.tscn") func _ready(): $LvlLabel.text = "lvl: " + String(lvl) - for i in range(int(10+lvl*2)): + for _i in range(int(10+lvl*2)): $YSort.add_child(public_scn.instance()) - for i in range(int((lvl-1)*2)): - $YSort.add_child(evil_scn.instance()) + for _i in range(int((lvl-1)*2)): + if randi()%2 == 0: + $YSort.add_child(evil_scn.instance()) + else: + $YSort.add_child(hidden_scn.instance()) + + $RoadBG.frame = randi()%3 + + for _i in range(randi()%5): + var lampadaire = lampadaire_scn.instance() + lampadaire.position.x = rand_range(0, get_viewport_rect().size.x) + lampadaire.position.y = rand_range(0, get_viewport_rect().size.y) + $YSort.add_child(lampadaire) + + for _i in range(randi()%5): + var poubelle = poubelle_scn.instance() + poubelle.position.x = rand_range(0, get_viewport_rect().size.x) + poubelle.position.y = rand_range(0, get_viewport_rect().size.y) + $YSort.add_child(poubelle) diff --git a/Level.tscn b/Level.tscn @@ -1,10 +1,21 @@ -[gd_scene load_steps=54 format=2] +[gd_scene load_steps=58 format=2] [ext_resource path="res://Level.gd" type="Script" id=1] [ext_resource path="res://President.gd" type="Script" id=2] +[ext_resource path="res://graphics/route1.png" type="Texture" id=3] [ext_resource path="res://Guard.gd" type="Script" id=4] [ext_resource path="res://graphics/guard_sheet.png" type="Texture" id=5] [ext_resource path="res://graphics/president_sheet.png" type="Texture" id=6] +[ext_resource path="res://graphics/route.png" type="Texture" id=7] +[ext_resource path="res://graphics/route2.png" type="Texture" id=8] + +[sub_resource type="SpriteFrames" id=50] +animations = [ { +"frames": [ ExtResource( 7 ), ExtResource( 3 ), ExtResource( 8 ) ], +"loop": true, +"name": "default", +"speed": 5.0 +} ] [sub_resource type="CanvasItemMaterial" id=2] @@ -273,6 +284,10 @@ gradient = SubResource( 48 ) [node name="Level" type="Node2D"] script = ExtResource( 1 ) +[node name="RoadBG" type="AnimatedSprite" parent="."] +frames = SubResource( 50 ) +centered = false + [node name="YSort" type="YSort" parent="."] [node name="Walls" type="StaticBody2D" parent="YSort"] @@ -348,3 +363,5 @@ margin_right = 502.0 margin_bottom = 21.0 text = "lvl: 1" align = 2 + +[connection signal="body_entered" from="YSort/President" to="YSort/President" method="_on_President_body_entered"] diff --git a/PNJ1evilframes.tres b/PNJ1evilframes.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj1_evil_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/PNJ1frames.tres b/PNJ1frames.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj1_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/PNJ2evilframes.tres b/PNJ2evilframes.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj2_evil_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/PNJ2frames.tres b/PNJ2frames.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj2_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/PNJ3evilframes.tres b/PNJ3evilframes.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj3_evil_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/PNJ3frames.tres b/PNJ3frames.tres @@ -0,0 +1,126 @@ +[gd_resource type="SpriteFrames" load_steps=22 format=2] + +[ext_resource path="res://graphics/pnj3_sheet.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=2] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=3] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=4] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 120, 60, 60 ) + +[sub_resource type="AtlasTexture" id=5] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=6] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=7] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=8] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=9] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=10] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 60, 60, 60 ) + +[sub_resource type="AtlasTexture" id=11] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=12] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=13] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=14] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=15] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 300, 0, 60, 60 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 60, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 120, 180, 60, 60 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 180, 180, 60, 60 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], +"loop": true, +"name": "down", +"speed": 5.0 +}, { +"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], +"loop": true, +"name": "left", +"speed": 5.0 +}, { +"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ], +"loop": true, +"name": "right", +"speed": 5.0 +}, { +"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], +"loop": true, +"name": "up", +"speed": 5.0 +} ] diff --git a/Poubelle.tscn b/Poubelle.tscn @@ -0,0 +1,19 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://graphics/poubelle.png" type="Texture" id=1] + +[sub_resource type="CapsuleShape2D" id=1] +radius = 6.0 +height = 12.0 + +[node name="Poubelle" type="RigidBody2D"] +mode = 2 +mass = 100.0 + +[node name="Poubelle" type="Sprite" parent="."] +position = Vector2( 0, -7 ) +texture = ExtResource( 1 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +rotation = 1.5708 +shape = SubResource( 1 ) diff --git a/President.gd b/President.gd @@ -2,6 +2,10 @@ extends RigidBody2D export var max_speed = 30.0 +func _ready(): + contact_monitor = true + contacts_reported = 10 + func _process(_delta): var direction = int(rad2deg(linear_velocity.angle())+360+45)%360/90 if direction == 0: @@ -19,3 +23,7 @@ func _integrate_forces(state): applied_force.x = 30.0 else: applied_force.x = 0 + +func _on_President_body_entered(body): + if body is Evil: + get_tree().change_scene("res://GameOverScreen.tscn") diff --git a/Public.gd b/Public.gd @@ -5,14 +5,20 @@ export var force = 20.0 var pnj_frames = [preload("res://PNJ1frames.tres"), preload("res://PNJ2frames.tres"), preload("res://PNJ3frames.tres")] +var type = -1 + func init(): max_speed = rand_range(0, max_speed) - var vp_size = get_viewport_rect().size - position.x = rand_range(vp_size.x/10, vp_size.x-30.0) - position.y = rand_range(30.0, vp_size.y-30.0) + if position == Vector2(): + var vp_size = get_viewport_rect().size + position.x = rand_range(vp_size.x/10, vp_size.x-30.0) + position.y = rand_range(30.0, vp_size.y-30.0) + + if type == -1: + type = randi()%3 - $Sprite.frames = pnj_frames[randi()%3] + $Sprite.frames = pnj_frames[type] func _ready(): init() diff --git a/Public.tscn b/Public.tscn @@ -17,7 +17,6 @@ __meta__ = { [node name="Sprite" type="AnimatedSprite" parent="."] frames = ExtResource( 1 ) animation = "down" -frame = 2 playing = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/artsrc/garde d corps dash.aseprite b/artsrc/garde d corps dash.aseprite Binary files differ. diff --git a/artsrc/lampadaire.aseprite b/artsrc/lampadaire.aseprite Binary files differ. diff --git a/artsrc/pnj1 EVIL bas.aseprite b/artsrc/pnj1 EVIL bas.aseprite Binary files differ. diff --git a/artsrc/pnj1 EVIL droite.aseprite b/artsrc/pnj1 EVIL droite.aseprite Binary files differ. diff --git a/artsrc/pnj1 EVIL gauche.aseprite b/artsrc/pnj1 EVIL gauche.aseprite Binary files differ. diff --git a/artsrc/pnj1 EVIL haut.aseprite b/artsrc/pnj1 EVIL haut.aseprite Binary files differ. diff --git a/artsrc/pnj1_evil_sheet.aseprite b/artsrc/pnj1_evil_sheet.aseprite Binary files differ. diff --git a/artsrc/pnj2 EVIL bas.aseprite b/artsrc/pnj2 EVIL bas.aseprite Binary files differ. diff --git a/artsrc/pnj2 EVIL droite.aseprite b/artsrc/pnj2 EVIL droite.aseprite Binary files differ. diff --git a/artsrc/pnj2 EVIL gauche.aseprite b/artsrc/pnj2 EVIL gauche.aseprite Binary files differ. diff --git a/artsrc/pnj2 EVIL haut.aseprite b/artsrc/pnj2 EVIL haut.aseprite Binary files differ. diff --git a/artsrc/pnj2 bas.aseprite b/artsrc/pnj2 bas.aseprite Binary files differ. diff --git a/artsrc/pnj2 droite.aseprite b/artsrc/pnj2 droite.aseprite Binary files differ. diff --git a/artsrc/pnj2 gauche.aseprite b/artsrc/pnj2 gauche.aseprite Binary files differ. diff --git a/artsrc/pnj2 haut.aseprite b/artsrc/pnj2 haut.aseprite Binary files differ. diff --git a/artsrc/pnj2_evil_sheet.aseprite b/artsrc/pnj2_evil_sheet.aseprite Binary files differ. diff --git a/artsrc/pnj2_sheet.aseprite b/artsrc/pnj2_sheet.aseprite Binary files differ. diff --git a/artsrc/pnj3 EVIL bas.aseprite b/artsrc/pnj3 EVIL bas.aseprite Binary files differ. diff --git a/artsrc/pnj3 EVIL droite.aseprite b/artsrc/pnj3 EVIL droite.aseprite Binary files differ. diff --git a/artsrc/pnj3 EVIL haut.aseprite b/artsrc/pnj3 EVIL haut.aseprite Binary files differ. diff --git a/artsrc/pnj3 EVILgauche.aseprite b/artsrc/pnj3 EVILgauche.aseprite Binary files differ. diff --git a/artsrc/pnj3 bas.aseprite b/artsrc/pnj3 bas.aseprite Binary files differ. diff --git a/artsrc/pnj3 droite.aseprite b/artsrc/pnj3 droite.aseprite Binary files differ. diff --git a/artsrc/pnj3 gauche.aseprite b/artsrc/pnj3 gauche.aseprite Binary files differ. diff --git a/artsrc/pnj3 haut.aseprite b/artsrc/pnj3 haut.aseprite Binary files differ. diff --git a/artsrc/pnj3_evil_sheet.aseprite b/artsrc/pnj3_evil_sheet.aseprite Binary files differ. diff --git a/artsrc/pnj3_sheet.aseprite b/artsrc/pnj3_sheet.aseprite Binary files differ. diff --git a/artsrc/poubelle.aseprite b/artsrc/poubelle.aseprite Binary files differ. diff --git a/artsrc/route.aseprite b/artsrc/route.aseprite Binary files differ. diff --git a/artsrc/route1.aseprite b/artsrc/route1.aseprite Binary files differ. diff --git a/artsrc/route2.aseprite b/artsrc/route2.aseprite Binary files differ. diff --git a/graphics/guard_dash.png b/graphics/guard_dash.png Binary files differ. diff --git a/graphics/lampadaire.png b/graphics/lampadaire.png Binary files differ. diff --git a/graphics/lampadaire.png.import b/graphics/lampadaire.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/lampadaire.png-27e9399ada830c948eadcba45fee73c7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/lampadaire.png" +dest_files=[ "res://.import/lampadaire.png-27e9399ada830c948eadcba45fee73c7.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/pnj1_evil_sheet.png b/graphics/pnj1_evil_sheet.png Binary files differ. diff --git a/graphics/pnj1_evil_sheet.png.import b/graphics/pnj1_evil_sheet.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pnj1_evil_sheet.png-a39fb92d76b7ec10495ce1e35d8bd4db.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/pnj1_evil_sheet.png" +dest_files=[ "res://.import/pnj1_evil_sheet.png-a39fb92d76b7ec10495ce1e35d8bd4db.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/pnj2_evil_sheet.png b/graphics/pnj2_evil_sheet.png Binary files differ. diff --git a/graphics/pnj2_evil_sheet.png.import b/graphics/pnj2_evil_sheet.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pnj2_evil_sheet.png-a21eb8e8e107c59af4d39b4892a0dfc1.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/pnj2_evil_sheet.png" +dest_files=[ "res://.import/pnj2_evil_sheet.png-a21eb8e8e107c59af4d39b4892a0dfc1.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/pnj2_sheet.png b/graphics/pnj2_sheet.png Binary files differ. diff --git a/graphics/pnj2_sheet.png.import b/graphics/pnj2_sheet.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pnj2_sheet.png-b041ff06db3afbcfe59983772f6a9151.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/pnj2_sheet.png" +dest_files=[ "res://.import/pnj2_sheet.png-b041ff06db3afbcfe59983772f6a9151.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/pnj3_evil_sheet.png b/graphics/pnj3_evil_sheet.png Binary files differ. diff --git a/graphics/pnj3_evil_sheet.png.import b/graphics/pnj3_evil_sheet.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pnj3_evil_sheet.png-b942ce8fd7e88f6896f5a19718799998.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/pnj3_evil_sheet.png" +dest_files=[ "res://.import/pnj3_evil_sheet.png-b942ce8fd7e88f6896f5a19718799998.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/pnj3_sheet.png b/graphics/pnj3_sheet.png Binary files differ. diff --git a/graphics/pnj3_sheet.png.import b/graphics/pnj3_sheet.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pnj3_sheet.png-cdbe57814db6f4de39f388b2ff6abf27.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/pnj3_sheet.png" +dest_files=[ "res://.import/pnj3_sheet.png-cdbe57814db6f4de39f388b2ff6abf27.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/poubelle.png b/graphics/poubelle.png Binary files differ. diff --git a/graphics/poubelle.png.import b/graphics/poubelle.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/poubelle.png-068e4c337675981e70faa4fc454d0839.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/poubelle.png" +dest_files=[ "res://.import/poubelle.png-068e4c337675981e70faa4fc454d0839.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/route.png b/graphics/route.png Binary files differ. diff --git a/graphics/route.png.import b/graphics/route.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/route.png-d60b9207fd9c717272337738f1dc3fda.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/route.png" +dest_files=[ "res://.import/route.png-d60b9207fd9c717272337738f1dc3fda.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/route1.png b/graphics/route1.png Binary files differ. diff --git a/graphics/route1.png.import b/graphics/route1.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/route1.png-1d4b60c9b362b2a172ddda969dd77a26.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/route1.png" +dest_files=[ "res://.import/route1.png-1d4b60c9b362b2a172ddda969dd77a26.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/route2.png b/graphics/route2.png Binary files differ. diff --git a/graphics/route2.png.import b/graphics/route2.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/route2.png-bf32062ca0ae3718693a854a0d4742e9.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/route2.png" +dest_files=[ "res://.import/route2.png-bf32062ca0ae3718693a854a0d4742e9.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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/project.godot b/project.godot @@ -8,6 +8,16 @@ config_version=4 +_global_script_classes=[ { +"base": "RigidBody2D", +"class": "Evil", +"language": "GDScript", +"path": "res://Evil.gd" +} ] +_global_script_class_icons={ +"Evil": "" +} + [application] config/name="President"