Add a Godot 4.x starter project for Squash The Creeps 3D

The docs currently referencing downloading an asset pack wrapped in a
3.x project. That is now part of an archived repository. The demo
project was migrated as a 4.x project to, but it is the finished project
instead of the assets and a minimum project like the getting started
tutorial asks for.

The files added were copied from the current 4.x finished demo project.

I followed the entire 3d tutorial, and I am making a PR to the docs
repository to update a links to this starter projects and a few changes
based on 4.x updates. I will link the two PRs as a reference.

Current Docs:
* https://docs.godotengine.org/en/stable/getting_started/first_3d_game/index.html

Old starter repository:
https://github.com/godotengine/godot-3d-dodge-the-creeps

Current demo project:
https://github.com/godotengine/godot-demo-projects/tree/master/3d/squash_the_creeps
This commit is contained in:
Russell Sanborn
2024-08-02 08:37:42 -05:00
parent d0682b9a3c
commit 23418d6846
20 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
.import
logs/

View File

@@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://c5qpnfga41t4p"
path="res://.godot/imported/House In a Forest Loop.ogg-1a6a72ae843ad792b7039931227e8d50.oggvorbisstr"
[deps]
source_file="res://art/House In a Forest Loop.ogg"
dest_files=["res://.godot/imported/House In a Forest Loop.ogg-1a6a72ae843ad792b7039931227e8d50.oggvorbisstr"]
[params]
loop=true
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@@ -0,0 +1,12 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
resource_name = "body"
params_cull_mode = 2
albedo_color = Color( 0.906332, 0.353653, 0, 1 )
roughness = 0.5
emission_enabled = true
emission = Color( 0, 0, 0, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false

View File

@@ -0,0 +1,14 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
resource_name = "eye"
params_cull_mode = 2
albedo_color = Color( 0.858824, 0.858824, 0.858824, 1 )
metallic = 0.05
metallic_specular = 1.0
roughness = 0.1
emission_enabled = true
emission = Color( 0.254902, 0.254902, 0.27451, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://bicorb7we351t"
path="res://.godot/imported/mob.glb-3afb43c03b9d1598b6af5154e2543eac.scn"
[deps]
source_file="res://art/mob.glb"
dest_files=["res://.godot/imported/mob.glb-3afb43c03b9d1598b6af5154e2543eac.scn"]
[params]
nodes/root_type="Spatial"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=false
meshes/create_shadow_meshes=true
meshes/light_baking=0
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=15
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=0
gltf/embedded_image_handling=1

View File

@@ -0,0 +1,7 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
resource_name = "mob_body"
params_cull_mode = 2
albedo_color = Color( 0.0588235, 0.266667, 0.490196, 1 )
roughness = 0.43

View File

@@ -0,0 +1,14 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
resource_name = "mob_eye"
params_cull_mode = 2
albedo_color = Color( 0.760784, 0.113725, 0.188235, 1 )
metallic = 0.48
metallic_specular = 1.0
roughness = 0.25
emission_enabled = true
emission = Color( 0.74902, 0.0784314, 0.0784314, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://d0ypm0v45pwdv"
path="res://.godot/imported/player.glb-08dcfb373480a049995065542e37637b.scn"
[deps]
source_file="res://art/player.glb"
dest_files=["res://.godot/imported/player.glb-08dcfb373480a049995065542e37637b.scn"]
[params]
nodes/root_type="Spatial"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=false
meshes/create_shadow_meshes=true
meshes/light_baking=0
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=15
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=0
gltf/embedded_image_handling=1

View File

@@ -0,0 +1,16 @@
[gd_resource type="SpatialMaterial" format=2]
[resource]
resource_name = "pupil"
params_cull_mode = 2
albedo_color = Color( 0, 0, 0, 1 )
metallic_specular = 1.0
roughness = 0.3
emission_enabled = true
emission = Color( 0, 0, 0, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
rim_enabled = true
rim = 1.0
rim_tint = 0.5

View 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.

View File

@@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://cyxhh7ddkn62q"
path="res://.godot/imported/Montserrat-Medium.ttf-e832861e4ad4110e172112dc430c04b0.fontdata"
[deps]
source_file="res://fonts/Montserrat-Medium.ttf"
dest_files=["res://.godot/imported/Montserrat-Medium.ttf-e832861e4ad4110e172112dc430c04b0.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://nev7b6ohgeo"
path="res://.godot/imported/icon.webp-e94f9a68b0f625a567a797079e4d325f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.webp"
dest_files=["res://.godot/imported/icon.webp-e94f9a68b0f625a567a797079e4d325f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

View File

@@ -0,0 +1,24 @@
; 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="Squash the Creeps (3D)"
config/description="In this game, your goal is to chase and kick out the creeps!"
config/features=PackedStringArray("4.2")
config/icon="res://icon.webp"
[filesystem]
import/blender/enabled=false
[rendering]
anti_aliasing/quality/msaa_3d=2