Pārlūkot izejas kodu

:tada: first commit

Felix Bytow 10 mēneši atpakaļ
revīzija
7d3dd6025b
7 mainītis faili ar 79 papildinājumiem un 0 dzēšanām
  1. 2 0
      .gitattributes
  2. 5 0
      .gitignore
  3. 4 0
      README.md
  4. 20 0
      project.godot
  5. 3 0
      screens/game.tscn
  6. 4 0
      screens/main_menu.gd
  7. 41 0
      screens/main_menu.tscn

+ 2 - 0
.gitattributes

@@ -0,0 +1,2 @@
+# Normalize EOL for all files that Git considers text files.
+* text=auto eol=lf

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+# Godot 4+ specific ignores
+.godot/
+
+# export files
+web-export/

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+# Last Stand of Humanity
+
+Entry for the 2024 gamedev.tv game jam.
+This is a post-apocalyptic zombie survival rogue-like tower-defense game.

+ 20 - 0
project.godot

@@ -0,0 +1,20 @@
+; Engine configuration file.
+; It's best edited using the editor UI and not directly,
+; since the parameters that go here are not all obvious.
+;
+; Format:
+;   [section] ; section goes between []
+;   param=value ; assign values to parameters
+
+config_version=5
+
+[application]
+
+config/name="gdtv-gamejam-2024-last-stand"
+run/main_scene="res://screens/main_menu.tscn"
+config/features=PackedStringArray("4.2", "GL Compatibility")
+
+[rendering]
+
+renderer/rendering_method="gl_compatibility"
+renderer/rendering_method.mobile="gl_compatibility"

+ 3 - 0
screens/game.tscn

@@ -0,0 +1,3 @@
+[gd_scene format=3 uid="uid://c483fkssc36s"]
+
+[node name="Game" type="Node2D"]

+ 4 - 0
screens/main_menu.gd

@@ -0,0 +1,4 @@
+extends Control
+
+func _on_button_pressed():
+	get_tree().quit()

+ 41 - 0
screens/main_menu.tscn

@@ -0,0 +1,41 @@
+[gd_scene load_steps=2 format=3 uid="uid://bnug1ybm5mlyd"]
+
+[ext_resource type="Script" path="res://screens/main_menu.gd" id="1_6qk7l"]
+
+[node name="MainMenu" type="Control"]
+layout_mode = 3
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+script = ExtResource("1_6qk7l")
+
+[node name="Title" type="Label" parent="."]
+layout_mode = 1
+anchors_preset = 5
+anchor_left = 0.5
+anchor_right = 0.5
+offset_left = -238.5
+offset_right = 238.5
+offset_bottom = 58.0
+grow_horizontal = 2
+theme_override_font_sizes/font_size = 42
+text = "Last Stand of Humanity"
+
+[node name="Button" type="Button" parent="."]
+layout_mode = 1
+anchors_preset = 8
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+offset_left = -42.5
+offset_top = -19.0
+offset_right = 42.5
+offset_bottom = 19.0
+grow_horizontal = 2
+grow_vertical = 2
+text = "QUIT"
+
+[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]