Procházet zdrojové kódy

bunch of fixes based on feedback, adding changelog

galo před 1 rokem
rodič
revize
bd1feda265
4 změnil soubory, kde provedl 13 přidání a 13 odebrání
  1. 1 1
      export_presets.cfg
  2. 10 10
      main.tscn
  3. 1 1
      project.godot
  4. 1 1
      ui/TouchScreenButton.gd

+ 1 - 1
export_presets.cfg

@@ -7,7 +7,7 @@ custom_features=""
 export_filter="all_resources"
 include_filter=""
 exclude_filter=""
-export_path="../Game Export/bacterium/0.2/bacterium odyssey 5.apk"
+export_path="../Game Export/bacterium/0.3/bacterium odyssey 6.apk"
 script_export_mode=1
 script_encryption_key=""
 

+ 10 - 10
main.tscn

@@ -96,32 +96,31 @@ pause_mode = 2
 script = ExtResource( 3 )
 
 [node name="MarginContainer" type="MarginContainer" parent="restarter"]
-visible = false
 anchor_right = 1.0
 anchor_bottom = 1.0
-margin_left = 300.0
-margin_right = -300.0
+margin_left = 80.0
+margin_right = -80.0
 theme = SubResource( 2 )
 
 [node name="VBoxContainer" type="VBoxContainer" parent="restarter/MarginContainer"]
-margin_right = 89.0
+margin_right = 380.0
 margin_bottom = 960.0
 theme = SubResource( 2 )
 alignment = 1
 
 [node name="Label" type="Label" parent="restarter/MarginContainer/VBoxContainer"]
-margin_top = 621.0
-margin_right = 120.0
-margin_bottom = 635.0
+margin_top = 456.0
+margin_right = 380.0
+margin_bottom = 475.0
 custom_fonts/font = ExtResource( 7 )
 text = "game over"
 align = 1
 valign = 1
 
 [node name="Button" type="Button" parent="restarter/MarginContainer/VBoxContainer"]
-margin_top = 639.0
-margin_right = 120.0
-margin_bottom = 659.0
+margin_top = 479.0
+margin_right = 380.0
+margin_bottom = 504.0
 custom_fonts/font = ExtResource( 7 )
 text = "restart"
 
@@ -376,6 +375,7 @@ anchor_bottom = 1.0
 theme = SubResource( 2 )
 
 [node name="debug" type="Label" parent="CanvasLayer"]
+visible = false
 margin_left = 22.0
 margin_top = 890.0
 margin_right = 96.0

+ 1 - 1
project.godot

@@ -90,7 +90,7 @@ window/size/height=960
 window/size/test_width=540
 window/size/test_height=960
 window/handheld/orientation="portrait"
-window/stretch/mode="2d"
+window/stretch/mode="viewport"
 
 [editor_plugins]
 

+ 1 - 1
ui/TouchScreenButton.gd

@@ -23,7 +23,7 @@ func _physics_process(delta):
 	if is_pressed(): 
 #		$col/CollisionShape2D.call_deferred('set_disabled', true)
 		$Label.hide()
-		global_position = get_global_mouse_position()
+		global_position = get_global_mouse_position() - Vector2(32,32)
 
 
 func _on_Button_mouse_entered():