This commit is contained in:
Mylloon 2023-02-26 20:37:46 +01:00
parent e8cd88c1b2
commit f013ae2ef9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
19 changed files with 179 additions and 21 deletions

0
Assets/dossier/2.png.import Normal file → Executable file
View file

BIN
Assets/icons/jaquette.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 MiB

BIN
Assets/icons/jaquette.png (Stored with Git LFS) Executable file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jaquette.png-158cb741fd8d264739826f4af6402863.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/icons/jaquette.png"
dest_files=[ "res://.import/jaquette.png-158cb741fd8d264739826f4af6402863.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

0
Assets/windows/0.png.import Normal file → Executable file
View file

0
Assets/windows/1.png.import Normal file → Executable file
View file

0
Assets/windows/2.png.import Normal file → Executable file
View file

0
Assets/windows/3.png.import Normal file → Executable file
View file

BIN
Assets/windows/background.png (Stored with Git LFS) Executable file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/background.png-fba0a085cd5fd6ebd4f1fbd967955538.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/windows/background.png"
dest_files=[ "res://.import/background.png-fba0a085cd5fd6ebd4f1fbd967955538.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

0
Assets/windows/terminal.png.import Normal file → Executable file
View file

View file

@ -26,10 +26,8 @@ func _on_Area2D_input_event(_viewport: Node, event: InputEvent, _shape_idx: int)
event = event as InputEventMouseButton
if event.pressed and event.button_index == BUTTON_LEFT:
drag_change_state()
#print("here haha")
elif event.button_index == BUTTON_LEFT and !event.pressed:
drag_change_state()
#print("here huhu")
func _on_Area2D2_input_event(_viewport: Node, event: InputEvent, _shape_idx: int) -> void:

7
Scenes/Help.gd Executable file
View file

@ -0,0 +1,7 @@
extends Button
onready var window = $".."
func _on_Back_button_pressed() -> void:
window.visible = false

View file

@ -4,22 +4,21 @@ onready var villain = $"../../../Villain/AnimatedSprite"
onready var villain_animations = $"../../../Villain"
export(bool) var etat = false
var remplissage = 0
const texture_pressed = preload("res://Assets/tres_button/hover-pressed.png")
const texture_released = preload("res://Assets/tres_button/normal.png")
var timer = 0
# Called every frame. '_delta' is the elapsed time since the previous frame.
func _process(_delta) -> void:
func _process(delta) -> void:
if etat:
timer += delta
if villain.animation == villain_animations.animations[-1]:
assert(get_tree().change_scene("res://Scenes/gameover.tscn") == OK)
if remplissage == 60 * 10: # fermer le dossier et enlever l'icone
if timer >= 7: # fermer le dossier et enlever l'icone
etat = false
self.get_parent().get_parent().visible = false
else:
remplissage += 1
print(remplissage)
func _on_Button_pressed() -> void:

View file

@ -16,7 +16,6 @@ const texture_terminal = preload("res://Assets/dossier/2.png") #à modifier
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var icon = terminal.get_node("Sprite")
var window = terminal.get_node("Screen")
var button_window = window.get_node("Button2")
@ -48,13 +47,15 @@ func _ready() -> void:
var posY = i % 4
var posX = i / 4
if(posX == 0) : posY +=1
if posX == 0:
posY += 1
button_window.focus_mode = Button.FOCUS_NONE
dossier.position = Vector2(dossier.position.x + (150 * posX), dossier.position.y + 150 * (posY))
dossier.position = Vector2(
dossier.position.x + (150 * posX), dossier.position.y + 150 * (posY)
)
dossier.set_z_index(dossier.get_z_index() + 10 * (i + 1))
add_child(dossier)
icon = terminal.get_node("Sprite")
window = terminal.get_node("Screen")
name_term.text = "Terminal"
@ -67,6 +68,7 @@ func _ready() -> void:
window.get_node("Window3").visible = true
# Change button visibility
button_window.visible = false
button_window.focus_mode = Button.FOCUS_NONE
# Called every frame. 'delta' is the elapsed time since the previous frame.

View file

@ -1,5 +1,6 @@
extends Control
onready var hover_sound = $"Hover"
onready var help = $"../Help"
func _on_PlayButton_pressed() -> void:
@ -7,7 +8,7 @@ func _on_PlayButton_pressed() -> void:
func _on_Help_Button_pressed() -> void:
print("help me")
help.visible = true
func _on_Quit_Button_pressed() -> void:

70
Scenes/help.tscn Executable file
View file

@ -0,0 +1,70 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Assets/windows/background.png" type="Texture" id=1]
[ext_resource path="res://Assets/skin_assets/dir_font.tres" type="DynamicFont" id=2]
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=3]
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=4]
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=5]
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=6]
[ext_resource path="res://Scenes/Help.gd" type="Script" id=7]
[node name="HELP" type="Node2D"]
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 512, 360 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 1 )
[node name="Label" type="Label" parent="."]
margin_left = 1.0
margin_top = 8.0
margin_right = 1025.0
margin_bottom = 726.0
custom_fonts/font = ExtResource( 2 )
text = "[ Aim of the game ]
If you have made it this far, you've been selected
for an important mission:
Get rid of our greatest enemy, Macreye.
He is an extremely powerful individual who has been forcing
his way of thinking for decades.
He keeps us under control with his huge hands and
his almost omnipresent eye.
Recently, one of our spies managed to connect to his system
but did not manage to destroy it.
Your task is to infiltrate the system and destroy all the files on Macreye's system
without Macreye's system without his knowledge.
[How to Play ]
There are 3 types of elements to click on:
- Folder
When you click on it, a button appears.
This button allows you to uninstall the contents of the folder
This takes time, sometimes you have to stop the execution
to avoid being noticed.
Warning: if you close the window, the download will still be in progress.
- Classic file
Works in the same way as the folder.
- Terminal icon
This icon works the same way as the others elements.
[Note]
It is possible to launch several files at the same time.
Good luck soldier!"
align = 1
[node name="Back_button" type="Button" parent="."]
margin_left = 445.0
margin_top = 679.0
margin_right = 581.0
margin_bottom = 716.0
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 )
custom_fonts/font = ExtResource( 3 )
custom_styles/hover = ExtResource( 5 )
custom_styles/pressed = ExtResource( 4 )
custom_styles/normal = ExtResource( 6 )
text = "RETOUR"
script = ExtResource( 7 )
[connection signal="pressed" from="Back_button" to="Back_button" method="_on_Back_button_pressed"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Scenes/Scripts/Screen_Menu.gd" type="Script" id=1]
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=2]
@ -8,6 +8,7 @@
[ext_resource path="res://Assets/windows/window.png" type="Texture" id=6]
[ext_resource path="res://Musics/wav/menu.wav" type="AudioStream" id=7]
[ext_resource path="res://Musics/sound effect/hower.wav" type="AudioStream" id=8]
[ext_resource path="res://Scenes/help.tscn" type="PackedScene" id=9]
[node name="Node2D" type="Node2D"]
@ -74,6 +75,9 @@ stream = ExtResource( 7 )
volume_db = 8.0
autoplay = true
[node name="Help" parent="." instance=ExtResource( 9 )]
visible = false
[connection signal="mouse_entered" from="VBoxContainer/PlayButton" to="VBoxContainer" method="_on_PlayButton_mouse_entered"]
[connection signal="pressed" from="VBoxContainer/PlayButton" to="VBoxContainer" method="_on_PlayButton_pressed"]
[connection signal="mouse_entered" from="VBoxContainer/Help_Button" to="VBoxContainer" method="_on_Help_Button_mouse_entered"]

View file

@ -12,7 +12,8 @@ config_version=4
config/name="Gja"
run/main_scene="res://Scenes/Menu.tscn"
config/icon="res://icon.png"
config/icon="res://Assets/icons/jaquette.png"
config/windows_native_icon="res://Assets/icons/jaquette.ico"
[display]