diff --git a/.gitattributes b/.gitattributes index de426aa..1db9fac 100644 --- a/.gitattributes +++ b/.gitattributes @@ -41,6 +41,12 @@ *.xml text *.xhtml text +## Godot +*.gd eol=lf +*.tscn eol=lf +*.tres eol=lf +*.cfg eol=lf + ## DOCKER *.dockerignore text Dockerfile text diff --git a/README.md b/README.md index 1d3af72..e597d58 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# GodotStarter +# Godot Template Starter + This package pretends to be a startup point on how to structure projects using the Godot Game engine + +---- + +> *NOTE:* This project structure is based (losely) in the proposals of the [Official Documentation](http://docs.godotengine.org/en/stable/getting_started/workflow/project_setup/project_organization.html) on project structure and the [Assets Naming Convention](https://wiki.unrealengine.com/Assets_Naming_Convention) from Unreal Engine to create a comprehensive set of folders. +> The premise is always: **GROUPING ASSETS BY USAGE, NOT BY TYPE** since the latter one doesn't scale on big projects. diff --git a/game/build/.gitkeep b/game/build/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/build/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/base/globals.gd b/game/content/base/globals.gd new file mode 100644 index 0000000..fc85aba --- /dev/null +++ b/game/content/base/globals.gd @@ -0,0 +1,3 @@ +extends Node + +const SPEED = 800 \ No newline at end of file diff --git a/game/content/base/helpers/.gitkeep b/game/content/base/helpers/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/base/helpers/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/base/services/.gitkeep b/game/content/base/services/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/base/services/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/base/startup.tscn b/game/content/base/startup.tscn new file mode 100644 index 0000000..6876793 --- /dev/null +++ b/game/content/base/startup.tscn @@ -0,0 +1,5 @@ +[gd_scene format=2] + +[node name="World" type="Node" index="0"] + + diff --git a/game/content/characters/enemy/.gitkeep b/game/content/characters/enemy/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/enemy/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/npc/.gitkeep b/game/content/characters/npc/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/npc/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/.gitkeep b/game/content/characters/player/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/warrior/animations/.gitkeep b/game/content/characters/player/warrior/animations/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/warrior/animations/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/warrior/effects/.gitkeep b/game/content/characters/player/warrior/effects/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/warrior/effects/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/warrior/scripts/.gitkeep b/game/content/characters/player/warrior/scripts/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/warrior/scripts/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/warrior/sounds/.gitkeep b/game/content/characters/player/warrior/sounds/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/warrior/sounds/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/characters/player/warrior/textures/.gitkeep b/game/content/characters/player/warrior/textures/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/characters/player/warrior/textures/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/dev/boot-splash/.gitkeep b/game/content/dev/boot-splash/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/dev/boot-splash/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/dev/icons-android/.gitkeep b/game/content/dev/icons-android/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/dev/icons-android/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/dev/icons-base/.gitkeep b/game/content/dev/icons-base/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/dev/icons-base/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/dev/icons-base/icon.png b/game/content/dev/icons-base/icon.png new file mode 100644 index 0000000..a0b64ee Binary files /dev/null and b/game/content/dev/icons-base/icon.png differ diff --git a/game/content/dev/icons-base/icon.png.import b/game/content/dev/icons-base/icon.png.import new file mode 100644 index 0000000..58c01c9 --- /dev/null +++ b/game/content/dev/icons-base/icon.png.import @@ -0,0 +1,29 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-ec8b107024373b54fb7d45b0fe8476e5.stex" + +[deps] + +source_file="res://content/dev/icons-base/icon.png" +dest_files=[ "res://.import/icon.png-ec8b107024373b54fb7d45b0fe8476e5.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/content/dev/icons-ios/.gitkeep b/game/content/dev/icons-ios/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/dev/icons-ios/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/effects/postprocess/.gitkeep b/game/content/effects/postprocess/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/effects/postprocess/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/background/.gitkeep b/game/content/environment/background/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/background/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/buildings/.gitkeep b/game/content/environment/buildings/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/buildings/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/default_env.tres b/game/content/environment/default_env.tres new file mode 100644 index 0000000..ad86b72 --- /dev/null +++ b/game/content/environment/default_env.tres @@ -0,0 +1,101 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +radiance_size = 4 +sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 ) +sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) +sky_curve = 0.25 +sky_energy = 1.0 +ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 ) +ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 ) +ground_curve = 0.01 +ground_energy = 1.0 +sun_color = Color( 1, 1, 1, 1 ) +sun_latitude = 35.0 +sun_longitude = 0.0 +sun_angle_min = 1.0 +sun_angle_max = 100.0 +sun_curve = 0.05 +sun_energy = 16.0 +texture_size = 2 + +[resource] + +background_mode = 2 +background_sky = SubResource( 1 ) +background_sky_custom_fov = 0.0 +background_color = Color( 0, 0, 0, 1 ) +background_energy = 1.0 +background_canvas_max_layer = 0 +ambient_light_color = Color( 0, 0, 0, 1 ) +ambient_light_energy = 1.0 +ambient_light_sky_contribution = 1.0 +fog_enabled = false +fog_color = Color( 0.5, 0.6, 0.7, 1 ) +fog_sun_color = Color( 1, 0.9, 0.7, 1 ) +fog_sun_amount = 0.0 +fog_depth_enabled = true +fog_depth_begin = 10.0 +fog_depth_curve = 1.0 +fog_transmit_enabled = false +fog_transmit_curve = 1.0 +fog_height_enabled = false +fog_height_min = 0.0 +fog_height_max = 100.0 +fog_height_curve = 1.0 +tonemap_mode = 0 +tonemap_exposure = 1.0 +tonemap_white = 1.0 +auto_exposure_enabled = false +auto_exposure_scale = 0.4 +auto_exposure_min_luma = 0.05 +auto_exposure_max_luma = 8.0 +auto_exposure_speed = 0.5 +ss_reflections_enabled = false +ss_reflections_max_steps = 64 +ss_reflections_fade_in = 0.15 +ss_reflections_fade_out = 2.0 +ss_reflections_depth_tolerance = 0.2 +ss_reflections_roughness = true +ssao_enabled = false +ssao_radius = 1.0 +ssao_intensity = 1.0 +ssao_radius2 = 0.0 +ssao_intensity2 = 1.0 +ssao_bias = 0.01 +ssao_light_affect = 0.0 +ssao_color = Color( 0, 0, 0, 1 ) +ssao_quality = 0 +ssao_blur = 3 +ssao_edge_sharpness = 4.0 +dof_blur_far_enabled = false +dof_blur_far_distance = 10.0 +dof_blur_far_transition = 5.0 +dof_blur_far_amount = 0.1 +dof_blur_far_quality = 1 +dof_blur_near_enabled = false +dof_blur_near_distance = 2.0 +dof_blur_near_transition = 1.0 +dof_blur_near_amount = 0.1 +dof_blur_near_quality = 1 +glow_enabled = false +glow_levels/1 = false +glow_levels/2 = false +glow_levels/3 = true +glow_levels/4 = false +glow_levels/5 = true +glow_levels/6 = false +glow_levels/7 = false +glow_intensity = 0.8 +glow_strength = 1.0 +glow_bloom = 0.0 +glow_blend_mode = 2 +glow_hdr_threshold = 1.0 +glow_hdr_scale = 2.0 +glow_bicubic_upscale = false +adjustment_enabled = false +adjustment_brightness = 1.0 +adjustment_contrast = 1.0 +adjustment_saturation = 1.0 + diff --git a/game/content/environment/folliage/.gitkeep b/game/content/environment/folliage/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/folliage/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/landscape/.gitkeep b/game/content/environment/landscape/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/landscape/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/scene-props/.gitkeep b/game/content/environment/scene-props/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/scene-props/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/sky/.gitkeep b/game/content/environment/sky/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/sky/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/environment/water/.gitkeep b/game/content/environment/water/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/environment/water/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/gameplay/ai/.gitkeep b/game/content/gameplay/ai/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/gameplay/ai/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/gameplay/multiplayer/.gitkeep b/game/content/gameplay/multiplayer/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/gameplay/multiplayer/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/items/powerups/.gitkeep b/game/content/items/powerups/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/items/powerups/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/items/stuff/.gitkeep b/game/content/items/stuff/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/items/stuff/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/items/weapons/.gitkeep b/game/content/items/weapons/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/items/weapons/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/episode-01/.gitkeep b/game/content/maps/episode-01/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/episode-01/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/.gitkeep b/game/content/maps/test-maps/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/animations/.gitkeep b/game/content/maps/test-maps/test-island/animations/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/animations/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/effects/.gitkeep b/game/content/maps/test-maps/test-island/effects/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/effects/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/materials/.gitkeep b/game/content/maps/test-maps/test-island/materials/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/materials/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/meshes/.gitkeep b/game/content/maps/test-maps/test-island/meshes/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/meshes/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/particles/.gitkeep b/game/content/maps/test-maps/test-island/particles/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/particles/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/scripts/.gitkeep b/game/content/maps/test-maps/test-island/scripts/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/scripts/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/sounds/.gitkeep b/game/content/maps/test-maps/test-island/sounds/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/sounds/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/maps/test-maps/test-island/textures/.gitkeep b/game/content/maps/test-maps/test-island/textures/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/maps/test-maps/test-island/textures/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/sound/music/.gitkeep b/game/content/sound/music/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/sound/music/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/sound/sfx/.gitkeep b/game/content/sound/sfx/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/sound/sfx/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/hud/.gitkeep b/game/content/ui/hud/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/hud/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/in-gme/.gitkeep b/game/content/ui/menus/in-gme/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/in-gme/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/inventory/.gitkeep b/game/content/ui/menus/inventory/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/inventory/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/menu/.gitkeep b/game/content/ui/menus/menu/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/menu/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/options/.gitkeep b/game/content/ui/menus/options/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/options/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/services/.gitkeep b/game/content/ui/menus/services/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/services/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/splash/.gitkeep b/game/content/ui/menus/splash/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/splash/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/ui/menus/title/.gitkeep b/game/content/ui/menus/title/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/ui/menus/title/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/content/vehicles/.gitkeep b/game/content/vehicles/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/game/content/vehicles/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/game/project.godot b/game/project.godot new file mode 100644 index 0000000..e83670e --- /dev/null +++ b/game/project.godot @@ -0,0 +1,27 @@ +; 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=3 + +[application] + +config/name="Godot Starter Template" +run/main_scene="res://content/base/startup.tscn" +config/icon="res://content/dev/icons-base/icon.png" + +[autoload] + +globals="*res://content/base/globals.gd" + +[locale] + +locale_filter=[ 0, [ "en", "es", "fr", "it" ] ] + +[rendering] + +environment/default_environment="res://content/environment/default_env.tres" diff --git a/related/android-store/.gitkeep b/related/android-store/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/related/android-store/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/related/apple-store/.gitkeep b/related/apple-store/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/related/apple-store/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/related/presskit/.gitkeep b/related/presskit/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/related/presskit/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/server/.gitkeep b/server/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/server/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file diff --git a/site/.gitkeep b/site/.gitkeep new file mode 100644 index 0000000..d0af639 --- /dev/null +++ b/site/.gitkeep @@ -0,0 +1 @@ +# Keep this folder \ No newline at end of file