Skip to content

Commit

Permalink
Added Fonts, Testing Godot 3.4.4, Changing Credits, Readme and Removi…
Browse files Browse the repository at this point in the history
…ng Hands
  • Loading branch information
Kamyab Nazari committed Apr 25, 2022
1 parent 360e01d commit 6a45301
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 38 deletions.
7 changes: 7 additions & 0 deletions Fonts/DetailText.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://Fonts/Kenney Pixel Square.ttf" type="DynamicFontData" id=1]

[resource]
size = 10
font_data = ExtResource( 1 )
Binary file added Fonts/Kenney Pixel Square.ttf
Binary file not shown.
7 changes: 7 additions & 0 deletions Fonts/PageTitles.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://Fonts/Kenney Pixel Square.ttf" type="DynamicFontData" id=1]

[resource]
size = 15
font_data = ExtResource( 1 )
7 changes: 7 additions & 0 deletions Fonts/TextFonts.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://Fonts/Kenney Pixel Square.ttf" type="DynamicFontData" id=1]

[resource]
size = 12
font_data = ExtResource( 1 )
Binary file removed Global/T_SplashScreen.png
Binary file not shown.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Color-Eater
# Retro Magic Demo

**Status:** Demo Project

**Current Phase:** Prototype

**Version** 1.0.0
**Version** 1.1.0

## The Project

Expand All @@ -14,8 +14,6 @@ Features:

Simple UI, FPS Fast paced Controlls, Enemy AI with Pathfinding and States, Weapon and Projectile System, Music/Sound-Effects and a complete game loop to experience.

#### Demo Video: coming soon.

## Screenshots

<p float="left">
Expand All @@ -37,7 +35,7 @@ Simple UI, FPS Fast paced Controlls, Enemy AI with Pathfinding and States, Weapo

**Renderer:** GLES 3.0 (OpenGL ES 3.0)

**Game Engine:** Godot (3.3)
**Game Engine:** Godot (3.4.4)

## Rules

Expand Down
15 changes: 1 addition & 14 deletions Scenes/Characters/SC_Player.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=7 format=2]

[ext_resource path="res://Scripts/Gameplay/CO_Player.gd" type="Script" id=1]
[ext_resource path="res://Scripts/Gameplay/CO_SpellController.gd" type="Script" id=2]
Expand All @@ -9,9 +9,6 @@
[sub_resource type="CapsuleShape" id=1]
radius = 0.5

[sub_resource type="CubeMesh" id=2]
size = Vector3( 0.2, 0.2, 0.5 )

[node name="Player" type="KinematicBody"]
collision_layer = 2
script = ExtResource( 1 )
Expand All @@ -29,16 +26,6 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
[node name="Camera" type="Camera" parent="Head"]
fov = 90.0

[node name="RightArm" type="MeshInstance" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.378335, -0.561418, -0.696038 )
mesh = SubResource( 2 )
material/0 = null

[node name="LeftArm" type="MeshInstance" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.394099, -0.561418, -0.696038 )
mesh = SubResource( 2 )
material/0 = null

[node name="Hand" type="Position3D" parent="Head"]
transform = Transform( 1, 0, 0, 0, 0.999997, -0.00246091, 0, 0.00246091, 0.999997, 0, -0.728066, -1.40332 )

Expand Down
73 changes: 60 additions & 13 deletions Scenes/Main/SC_MainMenu.tscn
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=6 format=2]

[ext_resource path="res://Scripts/Main/CO_MainMenu.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Core/SC_SceneTransition.tscn" type="PackedScene" id=2]
[ext_resource path="res://Fonts/DetailText.tres" type="DynamicFont" id=3]
[ext_resource path="res://Fonts/PageTitles.tres" type="DynamicFont" id=4]
[ext_resource path="res://Fonts/TextFonts.tres" type="DynamicFont" id=5]

[node name="MainMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Background" type="ColorRect" parent="."]
margin_right = 640.0
Expand All @@ -24,18 +24,16 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -50.5857
margin_left = -58.0
margin_top = -91.5
margin_right = 49.4143
margin_bottom = -71.5
margin_right = 58.0
margin_bottom = -68.5
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_fonts/font = ExtResource( 4 )
text = "Retro Magic"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": false
}

[node name="PlayButton" type="Button" parent="."]
anchor_left = 0.5
Expand All @@ -46,10 +44,8 @@ margin_left = -50.0
margin_top = -40.0
margin_right = 50.0
margin_bottom = -20.0
custom_fonts/font = ExtResource( 5 )
text = "Play"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CreditsButton" type="Button" parent="."]
anchor_left = 0.5
Expand All @@ -60,6 +56,7 @@ margin_left = -50.0
margin_top = -10.0
margin_right = 50.0
margin_bottom = 10.0
custom_fonts/font = ExtResource( 5 )
text = "Credits"
__meta__ = {
"_edit_use_anchors_": false
Expand All @@ -74,12 +71,62 @@ margin_left = -50.0
margin_top = 20.0
margin_right = 50.0
margin_bottom = 40.0
custom_fonts/font = ExtResource( 5 )
text = "Exit"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="SceneTransition" parent="." instance=ExtResource( 2 )]

[node name="CreditsPanel" type="Panel" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -78.0
margin_top = -57.0
margin_right = 79.0
margin_bottom = 150.0

[node name="Title" type="Label" parent="CreditsPanel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -31.0
margin_top = 8.0
margin_right = 31.0
margin_bottom = 26.0
custom_fonts/font = ExtResource( 5 )
text = "Credits"

[node name="Details" type="RichTextLabel" parent="CreditsPanel"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -69.0
margin_top = -68.5
margin_right = 69.0
margin_bottom = 68.5
custom_fonts/normal_font = ExtResource( 3 )
text = "This is Retro Magic an open source game project created by Kamyab Nazari in part of an educational Project to teach anybody how to use godot."
scroll_active = false

[node name="CloseButton" type="Button" parent="CreditsPanel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -28.0
margin_top = -28.0
margin_right = 28.0
margin_bottom = -4.0
custom_colors/font_color = Color( 1, 0.494118, 0, 1 )
custom_fonts/font = ExtResource( 5 )
text = "Close"

[connection signal="pressed" from="PlayButton" to="." method="_on_PlayButton_pressed"]
[connection signal="pressed" from="CreditsButton" to="." method="_on_CreditsButton_pressed"]
[connection signal="pressed" from="ExitButton" to="." method="_on_ExitButton_pressed"]
[connection signal="pressed" from="CreditsPanel/CloseButton" to="." method="_on_CloseButton_pressed"]
7 changes: 7 additions & 0 deletions Scripts/Main/CO_MainMenu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends Control

# MainMenu of the Game
onready var _transition = $SceneTransition;
onready var creditsPanel = $CreditsPanel;

func ready():
_transition.fade_out()
Expand All @@ -15,3 +16,9 @@ func _on_PlayButton_pressed():

func _on_ExitButton_pressed():
get_tree().quit()

func _on_CreditsButton_pressed():
creditsPanel.visible = true;

func _on_CloseButton_pressed():
creditsPanel.visible = false;
11 changes: 5 additions & 6 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ _global_script_class_icons={
config/name="Retro Magic"
config/description="You are the Arena fighter, use your magic to defeat your enemies."
run/main_scene="res://Scenes/Core/SC_Main.tscn"
boot_splash/image="res://Global/T_SplashScreen.png"
boot_splash/bg_color=Color( 0, 0, 0, 1 )
config/icon="res://ScreenShots/T-Icon.png"

Expand Down Expand Up @@ -86,27 +85,27 @@ texture={

move_forward={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
move_backward={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
move_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
move_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
jump={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
primary_action={
Expand Down

0 comments on commit 6a45301

Please sign in to comment.