Experimenting with HaxeGodot
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "projects/godot-squash-the-creeps-3d/addons/haxe"]
|
||||
path = projects/godot-squash-the-creeps-3d/addons/haxe
|
||||
url = https://github.com/HaxeGodot/editor-plugin.git
|
11
projects/godot-squash-the-creeps-3d/.gitignore
vendored
Normal file
11
projects/godot-squash-the-creeps-3d/.gitignore
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Godot-specific ignores
|
||||
.import/
|
||||
export.cfg
|
||||
export_presets.cfg
|
||||
|
||||
# Imported translations (automatically generated from CSV files)
|
||||
*.translation
|
||||
|
||||
# Mono-specific ignores
|
||||
.mono/
|
||||
data_*/
|
23
projects/godot-squash-the-creeps-3d/Main.tscn
Normal file
23
projects/godot-squash-the-creeps-3d/Main.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 30, 1, 30 )
|
||||
|
||||
[sub_resource type="CubeMesh" id=2]
|
||||
size = Vector3( 60, 2, 60 )
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
|
||||
[node name="Ground" type="StaticBody" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Ground"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="Ground"]
|
||||
mesh = SubResource( 2 )
|
||||
material/0 = null
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, -0.163205, 0.986592, 0, -0.986592, -0.163205, 0, 22.3151, 0 )
|
||||
shadow_enabled = true
|
16
projects/godot-squash-the-creeps-3d/Player.tscn
Normal file
16
projects/godot-squash-the-creeps-3d/Player.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://art/player.glb" type="PackedScene" id=1]
|
||||
|
||||
[sub_resource type="SphereShape" id=1]
|
||||
radius = 0.79911
|
||||
|
||||
[node name="Player" type="KinematicBody"]
|
||||
|
||||
[node name="Pivot" type="Spatial" parent="."]
|
||||
|
||||
[node name="Character" parent="Pivot" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.798974, 0 )
|
||||
shape = SubResource( 1 )
|
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Godot.NET.Sdk/3.3.0">
|
||||
<PropertyGroup>
|
||||
<RootNamespace>SquashtheCreeps3D</RootNamespace>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Squash the Creeps (3D)", "Squash the Creeps (3D).csproj", "{3199EABE-01CA-4949-B357-288E76880466}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
ExportDebug|Any CPU = ExportDebug|Any CPU
|
||||
ExportRelease|Any CPU = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
||||
{3199EABE-01CA-4949-B357-288E76880466}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
1
projects/godot-squash-the-creeps-3d/addons/haxe
Submodule
1
projects/godot-squash-the-creeps-3d/addons/haxe
Submodule
Submodule projects/godot-squash-the-creeps-3d/addons/haxe added at cbc98d35e3
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/House In a Forest Loop.ogg-1a6a72ae843ad792b7039931227e8d50.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/House In a Forest Loop.ogg"
|
||||
dest_files=[ "res://.import/House In a Forest Loop.ogg-1a6a72ae843ad792b7039931227e8d50.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
projects/godot-squash-the-creeps-3d/art/body.material
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/body.material
Normal file
Binary file not shown.
BIN
projects/godot-squash-the-creeps-3d/art/eye.material
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/eye.material
Normal file
Binary file not shown.
BIN
projects/godot-squash-the-creeps-3d/art/mob.glb
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/mob.glb
Normal file
Binary file not shown.
1063
projects/godot-squash-the-creeps-3d/art/mob.glb.import
Normal file
1063
projects/godot-squash-the-creeps-3d/art/mob.glb.import
Normal file
File diff suppressed because it is too large
Load Diff
BIN
projects/godot-squash-the-creeps-3d/art/mob_body.material
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/mob_body.material
Normal file
Binary file not shown.
BIN
projects/godot-squash-the-creeps-3d/art/mob_eye.material
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/mob_eye.material
Normal file
Binary file not shown.
BIN
projects/godot-squash-the-creeps-3d/art/player.glb
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/player.glb
Normal file
Binary file not shown.
1063
projects/godot-squash-the-creeps-3d/art/player.glb.import
Normal file
1063
projects/godot-squash-the-creeps-3d/art/player.glb.import
Normal file
File diff suppressed because it is too large
Load Diff
BIN
projects/godot-squash-the-creeps-3d/art/pupil.material
Normal file
BIN
projects/godot-squash-the-creeps-3d/art/pupil.material
Normal file
Binary file not shown.
8
projects/godot-squash-the-creeps-3d/build.hxml
Normal file
8
projects/godot-squash-the-creeps-3d/build.hxml
Normal file
@@ -0,0 +1,8 @@
|
||||
--cs build
|
||||
--define net-ver=50
|
||||
--define no-compilation
|
||||
--define analyzer-optimize
|
||||
--class-path scripts
|
||||
--library godot
|
||||
--macro godot.Godot.buildProject()
|
||||
--dce full
|
@@ -0,0 +1,3 @@
|
||||
[gd_resource type="AudioBusLayout" format=2]
|
||||
|
||||
[resource]
|
4
projects/godot-squash-the-creeps-3d/default_env.tres
Normal file
4
projects/godot-squash-the-creeps-3d/default_env.tres
Normal file
@@ -0,0 +1,4 @@
|
||||
[gd_resource type="Environment" format=2]
|
||||
|
||||
[resource]
|
||||
ambient_light_color = Color( 0.341176, 0.341176, 0.466667, 1 )
|
43
projects/godot-squash-the-creeps-3d/fonts/LICENSE.txt
Normal file
43
projects/godot-squash-the-creeps-3d/fonts/LICENSE.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
—————————————————————————————-
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
—————————————————————————————-
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
|
||||
|
||||
“Reserved Font Name” refers to any names specified as such after the copyright statement(s).
|
||||
|
||||
“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
|
||||
|
||||
“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
|
||||
|
||||
“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
projects/godot-squash-the-creeps-3d/fonts/Montserrat-Medium.ttf
Normal file
BIN
projects/godot-squash-the-creeps-3d/fonts/Montserrat-Medium.ttf
Normal file
Binary file not shown.
BIN
projects/godot-squash-the-creeps-3d/icon.png
Normal file
BIN
projects/godot-squash-the-creeps-3d/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
34
projects/godot-squash-the-creeps-3d/icon.png.import
Normal file
34
projects/godot-squash-the-creeps-3d/icon.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
93
projects/godot-squash-the-creeps-3d/project.godot
Normal file
93
projects/godot-squash-the-creeps-3d/project.godot
Normal file
@@ -0,0 +1,93 @@
|
||||
; 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=4
|
||||
|
||||
_global_script_classes=[ {
|
||||
"base": "EditorPlugin",
|
||||
"class": "HaxePlugin",
|
||||
"language": "GDScript",
|
||||
"path": "res://addons/haxe/scripts/haxe.gd"
|
||||
}, {
|
||||
"base": "Reference",
|
||||
"class": "HaxePluginConstants",
|
||||
"language": "GDScript",
|
||||
"path": "res://addons/haxe/scripts/constants.gd"
|
||||
}, {
|
||||
"base": "EditorProperty",
|
||||
"class": "HaxePluginEditorProperty",
|
||||
"language": "GDScript",
|
||||
"path": "res://addons/haxe/scripts/editor_property.gd"
|
||||
}, {
|
||||
"base": "EditorInspectorPlugin",
|
||||
"class": "HaxePluginInspectorPlugin",
|
||||
"language": "GDScript",
|
||||
"path": "res://addons/haxe/scripts/inspector_plugin.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
"HaxePlugin": "",
|
||||
"HaxePluginConstants": "",
|
||||
"HaxePluginEditorProperty": "",
|
||||
"HaxePluginInspectorPlugin": ""
|
||||
}
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Squash the Creeps (3D)"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PoolStringArray( "res://addons/haxe/plugin.cfg" )
|
||||
|
||||
[haxe]
|
||||
|
||||
hide_native_script_field=true
|
||||
external_editor="VSCode"
|
||||
|
||||
[input]
|
||||
|
||||
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":16777231,"unicode":0,"echo":false,"script":null)
|
||||
, 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)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"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":16777233,"unicode":0,"echo":false,"script":null)
|
||||
, 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)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
|
||||
]
|
||||
}
|
||||
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":16777232,"unicode":0,"echo":false,"script":null)
|
||||
, 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)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
|
||||
]
|
||||
}
|
||||
move_back={
|
||||
"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":16777234,"unicode":0,"echo":false,"script":null)
|
||||
, 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)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"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)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[rendering]
|
||||
|
||||
quality/driver/driver_name="GLES2"
|
||||
quality/filters/msaa=3
|
4
projects/godot-squash-the-creeps-3d/scripts/import.hx
Normal file
4
projects/godot-squash-the-creeps-3d/scripts/import.hx
Normal file
@@ -0,0 +1,4 @@
|
||||
import godot.*;
|
||||
import godot.GD.*;
|
||||
|
||||
using godot.Utils;
|
Reference in New Issue
Block a user