Compare commits
0
Commits
263011b460
..
main
No files matched your search
@@ -1,4 +0,0 @@
|
|||||||
[submodule "evolve-die-repeat/thirdparty/godot-cpp"]
|
|
||||||
path = evolve-die-repeat/thirdparty/godot-cpp
|
|
||||||
url = https://github.com/godotengine/godot-cpp.git
|
|
||||||
branch = 4.5
|
|
||||||
@@ -1,25 +1,2 @@
|
|||||||
# Evolve Die Repeat TODO: The name is a work in progress
|
# notSpore
|
||||||
|
|
||||||
This is currently quite empty.
|
|
||||||
|
|
||||||
## C++ setup
|
|
||||||
From anywhere in proejct:
|
|
||||||
```bash
|
|
||||||
git submodule update --init --recursive
|
|
||||||
```
|
|
||||||
|
|
||||||
In `thirdparty`:
|
|
||||||
```bash
|
|
||||||
godot --headless --dump-extension-api
|
|
||||||
```
|
|
||||||
|
|
||||||
To compile the cpp extension, run this from `thirdparty/godot-cpp`:
|
|
||||||
```bash
|
|
||||||
scons platform=linux target=template_debug generate_bindings=yes custom_api_file=../extension_api.json -j8
|
|
||||||
```
|
|
||||||
|
|
||||||
Finally, to compile and extern local `.cpp` files, run this from `thirdparty`:
|
|
||||||
```bash
|
|
||||||
scons platform=linux target=template_debug -j8
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
charset = utf-8
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Normalize EOL for all files that Git considers text files.
|
|
||||||
* text=auto eol=lf
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# Godot 4+ specific ignores
|
|
||||||
.godot/
|
|
||||||
/android/
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 72 KiB |
@@ -1,40 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://cua5ptyehfnag"
|
|
||||||
path="res://.godot/imported/bg-far-placeholder.jpg-6a0cffeb916e2168f0ff74b7863cf6c9.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://bg-far-placeholder.jpg"
|
|
||||||
dest_files=["res://.godot/imported/bg-far-placeholder.jpg-6a0cffeb916e2168f0ff74b7863cf6c9.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=false
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
extends Label
|
|
||||||
|
|
||||||
var counter := Test.new() # C++ class
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
text += str(counter.get_counter())
|
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
|
||||||
#if Input.is_action_just_pressed("ui_accept"):
|
|
||||||
counter.increment()
|
|
||||||
var baseText := text
|
|
||||||
baseText = baseText.left(baseText.length() - str(counter.get_counter()).length())
|
|
||||||
text = baseText + str(counter.get_counter())
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://ceut2lrvkns75
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
@@ -1,40 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://bfjf6dxvbq5cj"
|
|
||||||
path="res://.godot/imported/dirt-specs.png-ba680203b0a1b1c73166838cd341279d.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://dirt-specs.png"
|
|
||||||
dest_files=["res://.godot/imported/dirt-specs.png-ba680203b0a1b1c73166838cd341279d.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=false
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
|
||||||
|
Before Width: | Height: | Size: 995 B |
@@ -1,43 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://uqy71st3rbdr"
|
|
||||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://icon.svg"
|
|
||||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=false
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
||||||
svg/scale=1.0
|
|
||||||
editor/scale_with_editor_scale=false
|
|
||||||
editor/convert_colors_with_editor_theme=false
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
extends Control
|
|
||||||
|
|
||||||
|
|
||||||
func _on_play_button_pressed() -> void:
|
|
||||||
get_tree().change_scene_to_file("res://molecular_stage.tscn")
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://dxc66bci2ivrj
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://drgv154ei1vrl"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://main_menu.gd" id="1_06t4h"]
|
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_rhts7"]
|
|
||||||
font_size = 64
|
|
||||||
|
|
||||||
[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_06t4h")
|
|
||||||
|
|
||||||
[node name="PlayButton" type="Button" parent="."]
|
|
||||||
layout_mode = 0
|
|
||||||
offset_left = 448.0
|
|
||||||
offset_top = 256.0
|
|
||||||
offset_right = 768.0
|
|
||||||
offset_bottom = 314.0
|
|
||||||
text = "Play"
|
|
||||||
|
|
||||||
[node name="MainMenuText" type="Label" parent="."]
|
|
||||||
layout_mode = 0
|
|
||||||
offset_left = 320.0
|
|
||||||
offset_top = 32.0
|
|
||||||
offset_right = 904.0
|
|
||||||
offset_bottom = 151.0
|
|
||||||
text = "The Main Menu"
|
|
||||||
label_settings = SubResource("LabelSettings_rhts7")
|
|
||||||
horizontal_alignment = 1
|
|
||||||
vertical_alignment = 1
|
|
||||||
|
|
||||||
[connection signal="pressed" from="PlayButton" to="." method="_on_play_button_pressed"]
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
extends Area2D
|
|
||||||
|
|
||||||
@export var speed = 400
|
|
||||||
var screen_size
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
screen_size = get_viewport_rect().size
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
var velocity = Vector2.ZERO
|
|
||||||
if Input.is_action_pressed("move_right"):
|
|
||||||
velocity.x += 1
|
|
||||||
if Input.is_action_pressed("move_left"):
|
|
||||||
velocity.x -= 1
|
|
||||||
if Input.is_action_pressed("move_down"):
|
|
||||||
velocity.y += 1
|
|
||||||
if Input.is_action_pressed("move_up"):
|
|
||||||
velocity.y -= 1
|
|
||||||
|
|
||||||
position += speed * velocity * delta
|
|
||||||
position = position.clamp(Vector2.ZERO, screen_size)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://di7eglnrnqm6i
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://dxluckxdkpv4f"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://di7eglnrnqm6i" path="res://molecular_player.gd" id="1_0ix7k"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cy6kyldb6toa4" path="res://player-sprite-placeholder-crop.png" id="1_hh536"]
|
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
|
|
||||||
animations = [{
|
|
||||||
"frames": [{
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("1_hh536")
|
|
||||||
}],
|
|
||||||
"loop": true,
|
|
||||||
"name": &"default",
|
|
||||||
"speed": 5.0
|
|
||||||
}]
|
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4flbx"]
|
|
||||||
radius = 191.95984
|
|
||||||
height = 1295.8773
|
|
||||||
|
|
||||||
[node name="player" type="Area2D"]
|
|
||||||
script = ExtResource("1_0ix7k")
|
|
||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
||||||
scale = Vector2(0.5, 0.5)
|
|
||||||
sprite_frames = SubResource("SpriteFrames_onrkg")
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
||||||
position = Vector2(0, 56)
|
|
||||||
rotation = -1.5732701
|
|
||||||
shape = SubResource("CapsuleShape2D_4flbx")
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://b55w56d4twno1"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://ceut2lrvkns75" path="res://debug_label.gd" id="1_0kdu2"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cua5ptyehfnag" path="res://bg-far-placeholder.jpg" id="2_f4v4g"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bfjf6dxvbq5cj" path="res://dirt-specs.png" id="3_582e3"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dxluckxdkpv4f" path="res://molecular_player.tscn" id="4_f4v4g"]
|
|
||||||
|
|
||||||
[node name="MolecularStag" type="Node2D"]
|
|
||||||
|
|
||||||
[node name="Background" type="Node2D" parent="."]
|
|
||||||
|
|
||||||
[node name="ParallaxFar" type="Parallax2D" parent="Background"]
|
|
||||||
scroll_scale = Vector2(0.5, 0.5)
|
|
||||||
repeat_times = 7
|
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="Background/ParallaxFar"]
|
|
||||||
position = Vector2(295.99997, 360)
|
|
||||||
scale = Vector2(0.94648564, 0.92012787)
|
|
||||||
texture = ExtResource("2_f4v4g")
|
|
||||||
|
|
||||||
[node name="Sprite2D2" type="Sprite2D" parent="Background/ParallaxFar"]
|
|
||||||
position = Vector2(892.09973, 359.82693)
|
|
||||||
scale = Vector2(0.95814764, 0.9195748)
|
|
||||||
texture = ExtResource("2_f4v4g")
|
|
||||||
|
|
||||||
[node name="ParallaxNear" type="Parallax2D" parent="Background"]
|
|
||||||
scroll_scale = Vector2(0.9, 0.9)
|
|
||||||
repeat_times = 7
|
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="Background/ParallaxNear"]
|
|
||||||
position = Vector2(596, 359.5)
|
|
||||||
scale = Vector2(3.725, 2.4159663)
|
|
||||||
texture = ExtResource("3_582e3")
|
|
||||||
|
|
||||||
[node name="player" parent="." instance=ExtResource("4_f4v4g")]
|
|
||||||
position = Vector2(120, 144)
|
|
||||||
scale = Vector2(0.047164187, 0.089221194)
|
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="player"]
|
|
||||||
rotation = 3.1415927
|
|
||||||
zoom = Vector2(5, 5)
|
|
||||||
limit_enabled = false
|
|
||||||
limit_left = 0
|
|
||||||
limit_top = 0
|
|
||||||
limit_right = 1152
|
|
||||||
limit_bottom = 648
|
|
||||||
|
|
||||||
[node name="UI" type="Node2D" parent="."]
|
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer" parent="UI"]
|
|
||||||
|
|
||||||
[node name="DebugLabel" type="Label" parent="UI/CanvasLayer"]
|
|
||||||
offset_right = 296.0
|
|
||||||
offset_bottom = 49.0
|
|
||||||
text = "Debug: You made it into the game!
|
|
||||||
This is running from C++: "
|
|
||||||
script = ExtResource("1_0kdu2")
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 715 KiB |
@@ -1,40 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://cy6kyldb6toa4"
|
|
||||||
path="res://.godot/imported/player-sprite-placeholder-crop.png-235fee3dea28a886964cc2a1a4d4ef94.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://player-sprite-placeholder-crop.png"
|
|
||||||
dest_files=["res://.godot/imported/player-sprite-placeholder-crop.png-235fee3dea28a886964cc2a1a4d4ef94.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=false
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,40 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://bl387esu1eeh"
|
|
||||||
path="res://.godot/imported/player-sprite-placeholder.png-8f910f217c7c1bd0e8dd681061ddca66.ctex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://player-sprite-placeholder.png"
|
|
||||||
dest_files=["res://.godot/imported/player-sprite-placeholder.png-8f910f217c7c1bd0e8dd681061ddca66.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=false
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=1
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
; 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="EvolveDieRepeat"
|
|
||||||
run/main_scene="uid://drgv154ei1vrl"
|
|
||||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
|
||||||
config/icon="res://icon.svg"
|
|
||||||
|
|
||||||
[input]
|
|
||||||
|
|
||||||
move_right={
|
|
||||||
"deadzone": 0.2,
|
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
move_left={
|
|
||||||
"deadzone": 0.2,
|
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
move_up={
|
|
||||||
"deadzone": 0.2,
|
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
move_down={
|
|
||||||
"deadzone": 0.2,
|
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
bin
|
|
||||||
*.uid
|
|
||||||
*sconsign.dblite
|
|
||||||
**.os
|
|
||||||
|
|
||||||
godot-cpp/bin/
|
|
||||||
*.o
|
|
||||||
*.so
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
import os
|
|
||||||
from SCons.Script import DefaultEnvironment, ARGUMENTS, Glob, Dir
|
|
||||||
|
|
||||||
env = DefaultEnvironment()
|
|
||||||
platform = ARGUMENTS.get("platform", "linux")
|
|
||||||
target = ARGUMENTS.get("target", "template_debug") # or template_release
|
|
||||||
arch = ARGUMENTS.get("arch", "x86_64")
|
|
||||||
|
|
||||||
HERE = Dir(".").abspath
|
|
||||||
GODOTCPP = os.path.join(HERE, "godot-cpp")
|
|
||||||
|
|
||||||
inc_paths = [
|
|
||||||
os.path.join(GODOTCPP, "include"),
|
|
||||||
os.path.join(GODOTCPP, "gen", "include"),
|
|
||||||
]
|
|
||||||
for extra in ("godot-headers", "gdextension"):
|
|
||||||
p = os.path.join(GODOTCPP, extra)
|
|
||||||
if os.path.isdir(p):
|
|
||||||
inc_paths.append(p)
|
|
||||||
|
|
||||||
env.Append(CPPPATH=inc_paths)
|
|
||||||
env.Append(LIBPATH=[os.path.join(GODOTCPP, "bin")])
|
|
||||||
env.Append(CXXFLAGS=["-std=c++17", "-fPIC"])
|
|
||||||
|
|
||||||
env.Append(LIBS=[f"godot-cpp.{platform}.{target}.{arch}"])
|
|
||||||
|
|
||||||
outdir = os.path.join(HERE, "bin")
|
|
||||||
os.makedirs(outdir, exist_ok=True)
|
|
||||||
soname = f"gol.{platform}.{'debug' if target == 'template_debug' else 'release'}.{arch}"
|
|
||||||
|
|
||||||
env.SharedLibrary(target=os.path.join(outdir, soname), source=Glob("src/*.cpp"))
|
|
||||||
-10
@@ -1,10 +0,0 @@
|
|||||||
|
|
||||||
[configuration]
|
|
||||||
entry_symbol = "gol_library_init"
|
|
||||||
compatibility_minimum = "4.5" ; required in 4.5+
|
|
||||||
reloadable = true
|
|
||||||
|
|
||||||
[libraries]
|
|
||||||
linux.debug.x86_64 = "res://thirdparty/bin/libgol.linux.debug.x86_64"
|
|
||||||
|
|
||||||
|
|
||||||
-337509
File diff suppressed because it is too large.
Load diff
-1
Submodule evolve-die-repeat/thirdparty/godot-cpp deleted from e83fd0904c.
-56
@@ -1,56 +0,0 @@
|
|||||||
|
|
||||||
#include <gdextension_interface.h>
|
|
||||||
#include <godot_cpp/classes/ref_counted.hpp>
|
|
||||||
#include <godot_cpp/core/class_db.hpp>
|
|
||||||
#include <godot_cpp/core/defs.hpp>
|
|
||||||
#include <godot_cpp/godot.hpp>
|
|
||||||
|
|
||||||
using namespace godot;
|
|
||||||
|
|
||||||
class Test : public RefCounted {
|
|
||||||
GDCLASS(Test, RefCounted);
|
|
||||||
|
|
||||||
int counter = 0;
|
|
||||||
|
|
||||||
static void _bind_methods() {
|
|
||||||
ClassDB::bind_method(D_METHOD("increment"), &Test::increment);
|
|
||||||
ClassDB::bind_method(D_METHOD("get_counter"), &Test::get_counter);
|
|
||||||
ClassDB::bind_method(D_METHOD("set_counter", "value"), &Test::set_counter);
|
|
||||||
ClassDB::add_property("Test", PropertyInfo(Variant::INT, "counter"),
|
|
||||||
"set_counter", "get_counter");
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
|
||||||
int increment() {
|
|
||||||
counter += 1;
|
|
||||||
return counter;
|
|
||||||
}
|
|
||||||
|
|
||||||
int get_counter() const { return counter; }
|
|
||||||
|
|
||||||
void set_counter(int p_value) { counter = p_value; }
|
|
||||||
};
|
|
||||||
|
|
||||||
extern "C" GDExtensionBool GDE_EXPORT
|
|
||||||
gol_library_init(GDExtensionInterfaceGetProcAddress get_proc_address,
|
|
||||||
GDExtensionClassLibraryPtr library,
|
|
||||||
GDExtensionInitialization *r_initialization) {
|
|
||||||
|
|
||||||
static GDExtensionBinding::InitObject init(get_proc_address, library,
|
|
||||||
r_initialization);
|
|
||||||
|
|
||||||
init.register_initializer([](ModuleInitializationLevel p_level) {
|
|
||||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ClassDB::register_class<Test>();
|
|
||||||
});
|
|
||||||
|
|
||||||
init.register_terminator([](ModuleInitializationLevel /*p_level*/) {
|
|
||||||
// no-op
|
|
||||||
});
|
|
||||||
|
|
||||||
init.set_minimum_library_initialization_level(
|
|
||||||
MODULE_INITIALIZATION_LEVEL_SCENE);
|
|
||||||
return init.init();
|
|
||||||
}
|
|
||||||