added prototyping graphics

set up prototyping tilemap
added some starting scenes
added empty player script
updated project settings with layers for 2d physics
master
Zac 4 years ago
parent e9c648ddf4
commit e561c8009b
  1. 96
      default_env.tres
  2. BIN
      images/ground.png
  3. 29
      images/ground.png.import
  4. BIN
      images/test_char.png
  5. 29
      images/test_char.png.import
  6. BIN
      images/wall.png
  7. 29
      images/wall.png.import
  8. 7
      project.godot
  9. BIN
      resources/tiles.res
  10. 26
      scenes/Player.tscn
  11. 51
      scenes/World.tscn
  12. 38
      scenes/tilemap_library.tscn
  13. 4
      scripts/Player.gd

@ -1,5 +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

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/ground.png-5cb87f3e2b4055e821a79c5bf3b0df8c.stex"
[deps]
source_file="res://images/ground.png"
dest_files=[ "res://.import/ground.png-5cb87f3e2b4055e821a79c5bf3b0df8c.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/test_char.png-55131fdab561f380e06631bb235d0b6e.stex"
[deps]
source_file="res://images/test_char.png"
dest_files=[ "res://.import/test_char.png-55131fdab561f380e06631bb235d0b6e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/wall.png-713da5e916c63478bbe908e09dd86168.stex"
[deps]
source_file="res://images/wall.png"
dest_files=[ "res://.import/wall.png-713da5e916c63478bbe908e09dd86168.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

@ -13,6 +13,13 @@ config_version=3
config/name="2DWalkingSim"
config/icon="res://icon.png"
[layer_names]
2d_physics/layer_1="player"
2d_physics/layer_2="walls"
2d_physics/layer_3="npc"
2d_physics/layer_4="items"
[rendering]
environment/default_environment="res://default_env.tres"

Binary file not shown.

@ -0,0 +1,26 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://images/test_char.png" type="Texture" id=1]
[node name="Player" type="KinematicBody2D" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 14
collision/safe_margin = 0.08
_sections_unfolded = [ "Collision" ]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="0"]
build_mode = 0
polygon = PoolVector2Array( -26.5097, -40.0408, -36.4849, -29.9804, -36.3144, 14.9503, -16.4493, 40.016, 18.5063, 40.016, 36.4956, 14.9503, 36.4956, -4.82946, 23.4512, -39.9556 )
[node name="Sprite" type="Sprite" parent="CollisionPolygon2D" index="0"]
texture = ExtResource( 1 )
hframes = 3
region_enabled = true
region_rect = Rect2( 0, 0, 73, 80 )
_sections_unfolded = [ "Region" ]

@ -0,0 +1,51 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://resources/tiles.res" type="TileSet" id=1]
[node name="World" type="Node2D" index="0"]
[node name="Tiles" type="Node2D" parent="." index="0"]
[node name="Walls" type="TileMap" parent="Tiles" index="0"]
mode = 0
tile_set = ExtResource( 1 )
cell_size = Vector2( 64, 64 )
cell_quadrant_size = 16
cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
cell_half_offset = 2
cell_tile_origin = 0
cell_y_sort = false
cell_clip_uv = false
collision_use_kinematic = false
collision_friction = 1.0
collision_bounce = 0.0
collision_layer = 2
collision_mask = 13
occluder_light_mask = 1
format = 1
tile_data = PoolIntArray( -196610, 0, 0, -196609, 0, 0, -262144, 0, 0, -262143, 0, 0, -262142, 0, 0, -262141, 0, 0, -262140, 0, 0, -262139, 0, 0, -262138, 0, 0, -262137, 0, 0, -262136, 0, 0, -262135, 0, 0, -131074, 0, 0, -196599, 0, 0, -65540, 0, 0, -65539, 0, 0, -65538, 0, 0, -131071, 0, 0, -131070, 0, 0, -131069, 0, 0, -131068, 0, 0, -131067, 0, 0, -131066, 0, 0, -131065, 0, 0, -131063, 0, 0, -4, 0, 0, -65535, 0, 0, -65529, 0, 0, -65527, 0, 0, 65532, 0, 0, 1, 0, 0, 7, 0, 0, 9, 0, 0, 131068, 0, 0, 131070, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65543, 0, 0, 65545, 0, 0 )
_sections_unfolded = [ "Collision" ]
[node name="ground" type="TileMap" parent="Tiles" index="1"]
mode = 0
tile_set = ExtResource( 1 )
cell_size = Vector2( 64, 64 )
cell_quadrant_size = 16
cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
cell_half_offset = 2
cell_tile_origin = 0
cell_y_sort = false
cell_clip_uv = false
collision_use_kinematic = false
collision_friction = 1.0
collision_bounce = 0.0
collision_layer = 1
collision_mask = 1
occluder_light_mask = 1
format = 1
tile_data = PoolIntArray( -131073, 1, 0, -196608, 1, 0, -196607, 1, 0, -196606, 1, 0, -196605, 1, 0, -196604, 1, 0, -196603, 1, 0, -196602, 1, 0, -196601, 1, 0, -196600, 1, 0, -65537, 1, 0, -131072, 1, 0, -131064, 1, 0, -3, 1, 0, -2, 1, 0, -1, 1, 0, -65536, 1, 0, -65528, 1, 0, 65533, 1, 0, 65534, 1, 0, 65535, 1, 0, 0, 1, 0, 8, 1, 0, 131069, 1, 0, 65544, 1, 0, 196604, 0, 0, 196605, 0, 0, 196606, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0 )
_sections_unfolded = [ "Collision" ]

@ -0,0 +1,38 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://images/wall.png" type="Texture" id=1]
[ext_resource path="res://images/ground.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 32.0076, 31.9661 )
[node name="map" type="Node2D" index="0"]
[node name="wall" type="Sprite" parent="." index="0"]
position = Vector2( 248.783, 0 )
texture = ExtResource( 1 )
[node name="StaticBody2D" type="StaticBody2D" parent="wall" index="0"]
input_pickable = false
collision_layer = 2
collision_mask = 5
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
_sections_unfolded = [ "Collision" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall/StaticBody2D" index="0"]
shape = SubResource( 2 )
[node name="ground" type="Sprite" parent="." index="1"]
position = Vector2( 151.923, 0 )
texture = ExtResource( 2 )

@ -0,0 +1,4 @@
extends KinematicBody2D
func _ready():
pass
Loading…
Cancel
Save