Zoomed the camera, reduced jump heights
This commit is contained in:
@@ -3,18 +3,18 @@ class_name BoxBoy extends CharacterBody2D
|
||||
@onready var _gameplayController = $/root/Scene/GameplayController
|
||||
@onready var _sprite = $AnimatedSprite2D
|
||||
|
||||
const MOVE_FORCE: int = 300 #about 10 tiles horizontally (airborne arc)
|
||||
const JUMP_FORCE: int = 500 #about 4 tiles vertically
|
||||
const MOVE_FORCE: int = 150
|
||||
const JUMP_FORCE: int = 380 #about 2 tiles
|
||||
|
||||
const GRAVITY_RISING: int = 15
|
||||
const GRAVITY_FALLING: int = 30
|
||||
|
||||
#bouncy platform
|
||||
const BOUNCE_FORCE: int = -820 #about 10 tiles vertically
|
||||
const BOUNCE_FORCE: int = -500 #about 4 tiles
|
||||
var just_bounced: bool = false #allow max bounce height (i.e. ignore jump input)
|
||||
|
||||
#limits
|
||||
const MAX_MOVE_SPEED: int = 300
|
||||
const MAX_MOVE_SPEED: int = 200 #about 6 tiles when airborne
|
||||
const MAX_FALL_SPEED: int = 800
|
||||
|
||||
#game-feel
|
||||
|
||||
@@ -32,7 +32,7 @@ animations = [{
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ulcgi"]
|
||||
radius = 14.0
|
||||
height = 32.0
|
||||
height = 31.0
|
||||
|
||||
[node name="BoxBoy" type="CharacterBody2D" unique_id=904940283]
|
||||
script = ExtResource("1_av86f")
|
||||
|
||||
49
Controllers/DialogContainer.tscn
Normal file
49
Controllers/DialogContainer.tscn
Normal file
@@ -0,0 +1,49 @@
|
||||
[gd_scene format=3 uid="uid://xmes6cyca17"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_66br4"]
|
||||
content_margin_left = 50.0
|
||||
bg_color = Color(0.4373566, 0.12280094, 0.2996518, 1)
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(0.7138311, 0.75896835, 1, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[node name="DialogContainer" type="MarginContainer" unique_id=988261899]
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -240.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 20
|
||||
|
||||
[node name="DialogBackground" type="Panel" parent="." unique_id=865458038]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_66br4")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=1763747003]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 20
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="MarginContainer" unique_id=53979081]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/normal_font_size = 30
|
||||
theme_override_font_sizes/bold_font_size = 30
|
||||
theme_override_font_sizes/bold_italics_font_size = 30
|
||||
theme_override_font_sizes/italics_font_size = 30
|
||||
theme_override_font_sizes/mono_font_size = 30
|
||||
text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dictum aliquet arcu, vel tristique ligula dictum id. Mauris ac libero ut enim ultrices aliquam vel eget lacus. Nam ultricies dapibus erat. In lacus sapien, porttitor at purus blandit, sagittis euismod augue."
|
||||
scroll_active = false
|
||||
autowrap_mode = 2
|
||||
vertical_alignment = 1
|
||||
justification_flags = 227
|
||||
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ compatibility/default_parent_skeleton_in_mesh_instance_3d=true
|
||||
[application]
|
||||
|
||||
config/name="colorvania"
|
||||
run/main_scene="res://Scene.tscn"
|
||||
run/main_scene="res://Workspace.tscn"
|
||||
config/features=PackedStringArray("4.6", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
@@ -60,4 +60,3 @@ controller_dialog={
|
||||
textures/canvas_textures/default_texture_filter=0
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
2d/snap/snap_2d_transforms_to_pixel=true
|
||||
|
||||
Reference in New Issue
Block a user