basic-move-and-dodge-game

[LEARNING] basic godot game based off the tutorial by borncg on youtube
git clone git://git.figbert.com/basic-move-and-dodge-game.git
Log | Files | Refs | README

commit 54918b639e845b67f8311440ccc0dd17acfaafc3
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 21 Nov 2020 21:14:32 -0800

Initial commit

This first commit is not an empty project, but rather contains
the code after completing the first section of the "Godot 3
Tutorial Series" by BornCG

Diffstat:
A.gitattributes | 14++++++++++++++
A.gitignore | 7+++++++
ALevel.tscn | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adefault_env.tres | 7+++++++
Aicon.png | 0
Aicon.png.import | 34++++++++++++++++++++++++++++++++++
Aproject.godot | 23+++++++++++++++++++++++
7 files changed, 141 insertions(+), 0 deletions(-)

diff --git a/.gitattributes b/.gitattributes @@ -0,0 +1,14 @@ +*.gltf !text !filter !merge !diff +*.tres !text !filter !merge !diff +*.material !text !filter !merge !diff +*.jpg !text !filter !merge !diff +*.tscn !text !filter !merge !diff +*.otf !text !filter !merge !diff +scenes/blocks.tscn filter=lfs diff=lfs merge=lfs -text +assets/fonts/SF-Pro-Rounded-Black.otf filter=lfs diff=lfs merge=lfs -text +assets/block.gltf filter=lfs diff=lfs merge=lfs -text +assets/blocks.tres filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +scenes/enemy.tscn filter=lfs diff=lfs merge=lfs -text +assets/material-block.material filter=lfs diff=lfs merge=lfs -text +** !text !filter !merge !diff diff --git a/.gitignore b/.gitignore @@ -0,0 +1,7 @@ +.import/ +export.cfg +export_presets.cfg +*.translation +.mono/ +data_*/ + diff --git a/Level.tscn b/Level.tscn @@ -0,0 +1,56 @@ +[gd_scene load_steps=5 format=2] + +[sub_resource type="BoxShape" id=1] + +[sub_resource type="CubeMesh" id=2] + +[sub_resource type="BoxShape" id=3] +extents = Vector3( 15, 1, 15 ) + +[sub_resource type="CubeMesh" id=4] +size = Vector3( 30, 2, 30 ) + +[node name="Level" type="Spatial"] + +[node name="Box1" type="RigidBody" parent="."] +transform = Transform( 0.364682, -0.736898, 0.5692, -0.223911, 0.523958, 0.821786, -0.903809, -0.427141, 0.0260788, 0, 4.84117, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Box1"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Box1"] +mesh = SubResource( 2 ) +material/0 = null + +[node name="Box2" type="RigidBody" parent="."] +transform = Transform( 0.513511, 0.857976, 0.0135868, -0.252411, 0.166167, -0.953245, -0.820119, 0.486072, 0.301891, 0, 7.81481, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Box2"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Box2"] +mesh = SubResource( 2 ) +material/0 = null + +[node name="Box3" type="RigidBody" parent="."] +transform = Transform( -0.471122, 0.753256, -0.458966, -0.570719, -0.657047, -0.492513, -0.67255, 0.0299074, 0.739447, 0, 11.3101, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Box3"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Box3"] +mesh = SubResource( 2 ) +material/0 = null + +[node name="Floor" type="StaticBody" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Floor"] +shape = SubResource( 3 ) + +[node name="MeshInstance" type="MeshInstance" parent="Floor"] +mesh = SubResource( 4 ) +material/0 = null + +[node name="Camera" type="Camera" parent="."] +transform = Transform( 1, 0, 0, 0, 0.851398, 0.524521, 0, -0.524521, 0.851398, 0, 4.91959, 10.0583 ) diff --git a/default_env.tres b/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/icon.png b/icon.png Binary files differ. diff --git a/icon.png.import b/icon.png.import @@ -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 diff --git a/project.godot b/project.godot @@ -0,0 +1,23 @@ +; 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=[ ] +_global_script_class_icons={ + +} + +[application] + +config/name="Basic Move and Dodge Game" +config/icon="res://icon.png" + +[rendering] + +environment/default_environment="res://default_env.tres"