Skip to content

Commit

Permalink
rapidaj malamikoj. Gvidilo kaj Pri.
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanHeydariNasab committed Jul 10, 2017
1 parent 63b65b5 commit b050b42
Show file tree
Hide file tree
Showing 23 changed files with 29,143 additions and 192 deletions.
49 changes: 47 additions & 2 deletions Cxenoj.csv
Expand Up @@ -7,9 +7,9 @@ If already you helped us, I don't remember; Because now is a time before that!"
Mi akceptas la defion.,I accept the challenge.
"Cxu vi sciias ke vi povas plibonigi la armilojn? kolektu samajn armilojn en la bazo.
Duoblklaku/Duoblfrapetu al kanono/lasero por sxangxi gxian strategion.
Armiloj bezonas energion por pafi al malamikoj; metu ilin je la cirklumoj.","Do you know that you can upgrade the weapons? Collect similar weapons in the base.
Armiloj bezonas energion por pafi al malamikoj; metu ilin je la cirklumoj. (Vi povas plibonigi bombojn ankaux tiel.)","Do you know that you can upgrade the weapons? Collect similar weapons in the base.
Double tap/Double click on cannon/laser to change its strategy.
Weapons need energy for firing at enemies; put them on the circles."
Weapons need energy for firing at enemies; put them on the circles.(Also you can upgrade bombs in this way)"
Mi estas preta.,I'm ready.
Ondo,Wave
Nova,New
Expand All @@ -25,3 +25,48 @@ Ludi,Play
Cxu vere vi volas eliri?,Do you really want to exit?
Sekva ondo,Next wave
Vastigu la reton,Extend the network
"Cxi tio ludo eldonas sub GPLv3 permesilo.
vi povas atingi la kodon je:
https://github.com/HassanHeydariNasab/defendo

Atribuoj:

#Sonoj
Ondilo:
http://freesound.org/people/BMacZero/sounds/164102
Kanono:
http://freesound.org/people/bowlingballout/sounds/151713
Lasero:
http://freesound.org/people/junggle/sounds/28912
Malamiko batas la bazon:
http://freesound.org/people/sforsman/sounds/274404
Bombo:
http://freesound.org/people/zippi1/sounds/21313

#Muzikoj
Digital Soul (Utopia Mix) by Ars Sonor and Digital By Birth","This game releases under GPLv3 license.
you can access the code at:
https://github.com/HassanHeydariNasab/defendo

Attributions:

#Sounds
Ondilo:
http://freesound.org/people/BMacZero/sounds/164102
Cannon:
http://freesound.org/people/bowlingballout/sounds/151713
Laser:
http://freesound.org/people/junggle/sounds/28912
Enemy hits the base:
http://freesound.org/people/sforsman/sounds/274404
Bomb:
http://freesound.org/people/zippi1/sounds/21313

#Musics
Digital Soul (Utopia Mix) by Ars Sonor and Digital By Birth"
Via Rekordo,Your Record
Reen,Back
Nova epoko,New era
Malnova epoko,Old era
Pri,About
Gvidilo,Guide
2 changes: 1 addition & 1 deletion Defendiloj/Kugloj/Kuglo/Kuglo.gd
Expand Up @@ -12,7 +12,7 @@ func _ready():
set_fixed_process(true)

func _fixed_process(delta):
Kuglo.move((Vector2(4.0*(log(nivelo)+1.0)*cos(angulo), -4.0*(log(nivelo)+1.0)*sin(angulo))))
Kuglo.move((Vector2(4.0*(log(nivelo+1)+1.0)*cos(angulo), -4.0*(log(nivelo+1)+1.0)*sin(angulo))))

func _on_Area2D_body_enter( korpo ):
if korpo.get_name() == "Malamiko":
Expand Down
7 changes: 5 additions & 2 deletions Defendiloj/Kugloj/Laserradio/Laserradio.gd
Expand Up @@ -18,8 +18,11 @@ func _fixed_process(delta):

func _on_Area2D_body_enter( korpo ):
if korpo.get_name() == "Malamiko":
if korpo.tipo == 0 or korpo.tipo == 1 or korpo.tipo == 2:
korpo.get_parent().vivo -= log(nivelo+3)*22-20
if korpo.tipo == 2:
korpo.get_parent().vivo -= log(nivelo+5)*70-70
queue_free()
else:
korpo.get_parent().vivo -= log(nivelo+5)*70-110
queue_free()

func _on_Vivtempilo_timeout():
Expand Down
2 changes: 1 addition & 1 deletion Defendiloj/Pistoloj/Kanono/Kanono.gd
Expand Up @@ -78,7 +78,7 @@ func _process(delta):
K_.nivelo = nivelo
K_.angulo = angulo
K_.set_global_pos(Kuglujo.get_global_pos())
K_.set_global_scale(Vector2(log(nivelo)+1.0, log(nivelo)+1.0))
K_.set_global_scale(Vector2(log(nivelo+1)+1.0, log(nivelo+1)+1.0))
Kugloj.add_child(K_)
elif atendado_nova_K >= 100:
atendado_nova_K = 0
Expand Down
4 changes: 2 additions & 2 deletions Defendiloj/Pistoloj/Ondilo/Ondilo.gd
Expand Up @@ -89,6 +89,6 @@ func _on_Ondo_body_enter( korpo ):
if korpo.get_parent().rapido > nova_rapido:
korpo.get_parent().rapido = nova_rapido
if korpo.tipo == 2:
korpo.get_parent().vivo -= log(nivelo+3)*70-10
korpo.get_parent().vivo -= log(nivelo+5)*70-80
else:
korpo.get_parent().vivo -= log(nivelo+3)*20-15
korpo.get_parent().vivo -= log(nivelo+5)*50-60
7 changes: 7 additions & 0 deletions Kontroloj/Gvidilo.gd
@@ -0,0 +1,7 @@
extends Control

func _ready():
pass

func _on_Reen_pressed():
get_tree().change_scene("res://Kontroloj/Niveloj.tscn")
99 changes: 99 additions & 0 deletions Kontroloj/Gvidilo.tscn
@@ -0,0 +1,99 @@
[gd_scene load_steps=7 format=1]

[ext_resource path="res://Kontroloj/Gvidilo.gd" type="Script" id=1]
[ext_resource path="res://Temoj/Butono_sxveda.tres" type="StyleBox" id=2]
[ext_resource path="res://Temoj/Butono_premita.tres" type="StyleBox" id=3]
[ext_resource path="res://Temoj/Butono.tres" type="StyleBox" id=4]
[ext_resource path="res://Tiparoj/roboto.fnt" type="BitmapFont" id=5]
[ext_resource path="res://Tiparoj/roboto30.fnt" type="BitmapFont" id=6]

[node name="Gvidilo" type="Control"]

anchor/right = 1
anchor/bottom = 1
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 800.0
margin/bottom = 1200.0
script/script = ExtResource( 1 )

[node name="Control" type="Control" parent="."]

anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 0.0
margin/bottom = 0.0

[node name="Reen" type="Button" parent="Control"]

rect/scale = Vector2( 0.7, 0.7 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 150.0
margin/top = 950.0
margin/right = 865.0
margin/bottom = 1164.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Reen"
flat = false

[node name="ScrollContainer" type="ScrollContainer" parent="Control"]

focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 50.0
margin/top = 50.0
margin/right = 800.0
margin/bottom = 900.0
scroll/horizontal = false
scroll/vertical = true

[node name="Label" type="Label" parent="Control/ScrollContainer"]

rect/min_size = Vector2( 700, 1000 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 0.0
margin/top = 0.0
margin/right = 700.0
margin/bottom = 1000.0
custom_fonts/font = ExtResource( 6 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Cxu vi sciias ke vi povas plibonigi la armilojn? kolektu samajn armilojn en la bazo.
Duoblklaku/Duoblfrapetu al kanono/lasero por sxangxi gxian strategion.
Armiloj bezonas energion por pafi al malamikoj; metu ilin je la cirklumoj. (Vi povas plibonigi bombojn ankaux tiel.)"
autowrap = true
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[connection signal="pressed" from="Control/Reen" to="." method="_on_Reen_pressed"]


4 changes: 2 additions & 2 deletions Kontroloj/Lingvo.gd
Expand Up @@ -10,9 +10,9 @@ func _ready():
func _on_EO_pressed():
Agordejo.set_value("Lingvo", "lingvo", 0)
Agordejo.save(agordejo)
get_tree().change_scene("res://Kontroloj/Komenco.tscn")
get_tree().change_scene("res://Kontroloj/Niveloj.tscn")

func _on_EN_pressed():
Agordejo.set_value("Lingvo", "lingvo", 1)
Agordejo.save(agordejo)
get_tree().change_scene("res://Kontroloj/Komenco.tscn")
get_tree().change_scene("res://Kontroloj/Niveloj.tscn")
26 changes: 26 additions & 0 deletions Kontroloj/Malvenkigxi.gd
@@ -0,0 +1,26 @@
extends Control

var agordejo = "user://agordejo.cfg"
onready var Agordejo = ConfigFile.new()
const lingvoj = ["eo", "en"]

func _ready():
get_tree().set_auto_accept_quit(true)

Agordejo.load(agordejo)
var lingvo_indekso = Agordejo.get_value("Lingvo", "lingvo")
if lingvo_indekso == null:
get_tree().change_scene("res://Kontroloj/Lingvo.tscn")
elif TranslationServer.get_locale() != lingvoj[lingvo_indekso]:
TranslationServer.set_locale(lingvoj[lingvo_indekso])
get_tree().reload_current_scene()

get_node("Poentaro").set_text(str(Tutmonda.poentaro))
if Tutmonda.epoko == "nova":
Agordejo.set_value("Rekordoj", "nova_epoko", Tutmonda.poentaro)
elif Tutmonda.epoko == "malnova":
Agordejo.set_value("Rekordoj", "malnova_epoko", Tutmonda.poentaro)
Agordejo.save(agordejo)

func _on_Reen_pressed():
get_tree().change_scene("res://Kontroloj/Niveloj.tscn")
93 changes: 43 additions & 50 deletions Kontroloj/Malvenkigxi.tscn
@@ -1,37 +1,26 @@
[gd_scene load_steps=6 format=1]

[ext_resource path="res://Tiparoj/roboto.fnt" type="BitmapFont" id=1]
[ext_resource path="res://Temoj/Butono_sxveda.tres" type="StyleBox" id=2]
[ext_resource path="res://Temoj/Butono_premita.tres" type="StyleBox" id=3]
[ext_resource path="res://Temoj/Butono.tres" type="StyleBox" id=4]

[sub_resource type="GDScript" id=1]

script/source = "extends Node2D

var agordejo = \"user://agordejo.cfg\"
onready var Agordejo = ConfigFile.new()
const lingvoj = [\"eo\", \"en\"]

func _ready():
get_tree().set_auto_accept_quit(true)

Agordejo.load(agordejo)
var lingvo_indekso = Agordejo.get_value(\"Lingvo\", \"lingvo\")
if lingvo_indekso == null:
get_tree().change_scene(\"res://Kontroloj/Lingvo.tscn\")
elif TranslationServer.get_locale() != lingvoj[lingvo_indekso]:
TranslationServer.set_locale(lingvoj[lingvo_indekso])
get_tree().reload_current_scene()

get_node(\"Poentaro\").set_text(str(Tutmonda.poentaro))

func _on_Denove_pressed():
get_tree().change_scene(\"res://Radiko.tscn\")"

[node name="Node2D" type="Node2D"]

script/script = SubResource( 1 )
[ext_resource path="res://Kontroloj/Malvenkigxi.gd" type="Script" id=1]
[ext_resource path="res://Tiparoj/roboto.fnt" type="BitmapFont" id=2]
[ext_resource path="res://Temoj/Butono_sxveda.tres" type="StyleBox" id=3]
[ext_resource path="res://Temoj/Butono_premita.tres" type="StyleBox" id=4]
[ext_resource path="res://Temoj/Butono.tres" type="StyleBox" id=5]

[node name="Malvenkigxi" type="Control"]

anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 400.0
margin/top = 600.0
margin/right = 400.0
margin/bottom = 600.0
script/script = ExtResource( 1 )

[node name="Mesagxo" type="Label" parent="."]

Expand All @@ -40,38 +29,42 @@ focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 128.0
margin/top = 256.0
margin/right = 661.0
margin/bottom = 333.0
custom_fonts/font = ExtResource( 1 )
margin/left = 150.0
margin/top = 250.0
margin/right = 683.0
margin/bottom = 327.0
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Vi Malvenkigxis!"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Denove" type="Button" parent="."]
[node name="Reen" type="Button" parent="."]

anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 192.0
margin/top = 896.0
margin/right = 576.0
margin/bottom = 1024.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 1 )
margin/left = -150.0
margin/top = -900.0
margin/right = -650.0
margin/bottom = -1054.0
custom_styles/hover = ExtResource( 3 )
custom_styles/pressed = ExtResource( 4 )
custom_styles/normal = ExtResource( 5 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Denove"
text = "Reen"
flat = false

[node name="Poentaro" type="Label" parent="."]
Expand All @@ -87,7 +80,7 @@ margin/left = 192.0
margin/top = 576.0
margin/right = -182.0
margin/bottom = -589.0
custom_fonts/font = ExtResource( 1 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "-1"
align = 1
Expand All @@ -107,13 +100,13 @@ margin/left = 320.0
margin/top = 704.0
margin/right = 538.0
margin/bottom = 781.0
custom_fonts/font = ExtResource( 1 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Ondoj"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[connection signal="pressed" from="Denove" to="." method="_on_Denove_pressed"]
[connection signal="pressed" from="Reen" to="." method="_on_Reen_pressed"]


0 comments on commit b050b42

Please sign in to comment.