Skip to content

Commit

Permalink
Max 100 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariasteam committed Jan 14, 2019
1 parent 3135f5e commit aaa597e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Scenes/Column.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ transform/local = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6.27751, 0 )

_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
script/script = ExtResource( 3 )
MAX_PLATFORMS = 100
space = 7
n_platforms = 30

Expand Down
2 changes: 1 addition & 1 deletion Scenes/Player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ _import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
]]

_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
transform/local = Transform( 1, 0, 0, 0, 0.881651, 0.471905, 0, -0.471905, 0.881651, 0.0479576, 6.5581, 17.1744 )
transform/local = Transform( 1, 0, 0, 0, 0.881651, 0.471905, 0, -0.471905, 0.881651, 0, 6.5581, 17.1744 )
projection = 0
fov = 65.0
near = 0.1
Expand Down
2 changes: 1 addition & 1 deletion engine.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ motion_fix_enabled=true

[rasterizer]

shadow_filter=1
low_memory_2d_mode=true
anisotropic_filter_level=2.0
shadow_filter=1

[render]

Expand Down
5 changes: 4 additions & 1 deletion platforms_deployer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ extends Spatial
var first_platform = preload ("res://Scenes/first_platform.tscn")
var platform = preload ("res://Scenes/platform.tscn")
var end_line = preload ("res://Scenes/end_line.tscn")
export var MAX_PLATFORMS = 100


onready var col = get_node ("Column")

Expand All @@ -18,7 +20,8 @@ func _ready():
instance_in(prev_platform, 0)

if (global.level > 16):
n_platforms += ((global.level - 16) / 3)
n_platforms += ((global.level - 16) / 12)
n_platforms = min(n_platforms, MAX_PLATFORMS)
global.level_size = n_platforms

col.set_scale(Vector3(col.get_scale().x, n_platforms + n_platforms * 0.0035, col.get_scale().z))
Expand Down

0 comments on commit aaa597e

Please sign in to comment.