Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
807feb00
Commit
807feb00
authored
Jun 05, 2015
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vertical dashing less effective
parent
ec5c6aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
PlayerControl.cs
Assets/Scripts/PlayerControl.cs
+3
-2
No files found.
Assets/Scripts/PlayerControl.cs
View file @
807feb00
...
...
@@ -31,7 +31,8 @@ public class PlayerControl : MonoBehaviour
public
float
dashCompletionTime
=
0.25f
;
public
float
dashStartSpeed
=
20.0f
;
public
float
dashEndSpeed
=
8.0f
;
public
float
dashCoolDown
=
0.5f
;
public
float
dashCoolDown
=
0.4f
;
public
float
dashVerticalScale
=
0.5f
;
public
float
dashCollisionCoolDown
=
1.5f
;
[
HideInInspector
]
public
float
currentDashCoolDown
=
0.0f
;
...
...
@@ -217,7 +218,7 @@ public class PlayerControl : MonoBehaviour
}
if
(
horizontalDashDirection
!=
0.0f
||
verticalDashDirection
!=
0.0f
)
dashDirection
=
new
Vector2
(
horizontalDashDirection
,
verticalDashDirection
);
dashDirection
=
new
Vector2
(
horizontalDashDirection
,
dashVerticalScale
*
verticalDashDirection
);
}
private
float
getDashTime
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment