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
e01b1daa
Commit
e01b1daa
authored
Jun 05, 2015
by
Tim Reiter
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.breab.org:2222/gamejam-gpn15/dyingIsMainstream
Conflicts: Assets/Scripts/PlayerControl.cs
parents
3f8d4410
66550528
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
DeserializedLevelsLoader.cs
Assets/Scripts/LevelManagement/DeserializedLevelsLoader.cs
+0
-1
PlayerControl.cs
Assets/Scripts/PlayerControl.cs
+0
-8
No files found.
Assets/Scripts/LevelManagement/DeserializedLevelsLoader.cs
View file @
e01b1daa
...
...
@@ -10,7 +10,6 @@ public class DeserializedLevelsLoader
private
DeserializedLevels
deserializedLevels
;
private
int
currentLevelIndex
=
0
;
private
int
currentSegmentIndex
=
0
;
private
const
string
prefabsFolder
=
"Prefabs/"
;
...
...
Assets/Scripts/PlayerControl.cs
View file @
e01b1daa
...
...
@@ -6,8 +6,6 @@ using GamepadInput;
public
class
PlayerControl
:
MonoBehaviour
{
private
Rigidbody2D
body2D
;
private
Vector3
lastPos
;
// we make sure the last Pos is never the curPos.
private
Vector2
moveDirection
;
public
Transform
groundCheck
;
public
LayerMask
mask
;
...
...
@@ -87,9 +85,6 @@ public class PlayerControl : MonoBehaviour
void
FixedUpdate
()
{
//Update last position:
lastPos
=
transform
.
position
;
if
(
isGrounded
())
velocity
.
y
=
0
;
...
...
@@ -164,9 +159,6 @@ public class PlayerControl : MonoBehaviour
//finally set the velocity:
Debug
.
Log
(
velocity
.
y
);
body2D
.
velocity
=
velocity
+
currentPushSpeed
;
//update move direction after the currentposition was updated:
moveDirection
=
(
transform
.
position
-
lastPos
).
normalized
;
}
private
bool
isGrounded
()
...
...
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