Skip to content

Commit bb8bc52

Browse files
author
Aurore
committed
better dash
1 parent 6d4e0eb commit bb8bc52

File tree

2 files changed

+18
-90
lines changed

2 files changed

+18
-90
lines changed

Assets/Scenes/Level2/Level2_2.unity

Lines changed: 15 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,35 +3358,35 @@ Tilemap:
33583358
- first: {x: 2, y: 1, z: 0}
33593359
second:
33603360
serializedVersion: 2
3361-
m_TileIndex: 9
3362-
m_TileSpriteIndex: 9
3361+
m_TileIndex: 12
3362+
m_TileSpriteIndex: 12
33633363
m_TileMatrixIndex: 0
33643364
m_TileColorIndex: 0
33653365
m_TileObjectToInstantiateIndex: 65535
33663366
m_AllTileFlags: 1073741825
33673367
- first: {x: 3, y: 1, z: 0}
33683368
second:
33693369
serializedVersion: 2
3370-
m_TileIndex: 9
3371-
m_TileSpriteIndex: 9
3370+
m_TileIndex: 11
3371+
m_TileSpriteIndex: 11
33723372
m_TileMatrixIndex: 0
33733373
m_TileColorIndex: 0
33743374
m_TileObjectToInstantiateIndex: 65535
33753375
m_AllTileFlags: 1073741825
33763376
- first: {x: 4, y: 1, z: 0}
33773377
second:
33783378
serializedVersion: 2
3379-
m_TileIndex: 9
3380-
m_TileSpriteIndex: 9
3379+
m_TileIndex: 11
3380+
m_TileSpriteIndex: 11
33813381
m_TileMatrixIndex: 0
33823382
m_TileColorIndex: 0
33833383
m_TileObjectToInstantiateIndex: 65535
33843384
m_AllTileFlags: 1073741825
33853385
- first: {x: 5, y: 1, z: 0}
33863386
second:
33873387
serializedVersion: 2
3388-
m_TileIndex: 9
3389-
m_TileSpriteIndex: 9
3388+
m_TileIndex: 7
3389+
m_TileSpriteIndex: 7
33903390
m_TileMatrixIndex: 0
33913391
m_TileColorIndex: 0
33923392
m_TileObjectToInstantiateIndex: 65535
@@ -3445,42 +3445,6 @@ Tilemap:
34453445
m_TileColorIndex: 0
34463446
m_TileObjectToInstantiateIndex: 65535
34473447
m_AllTileFlags: 1073741825
3448-
- first: {x: 2, y: 2, z: 0}
3449-
second:
3450-
serializedVersion: 2
3451-
m_TileIndex: 10
3452-
m_TileSpriteIndex: 10
3453-
m_TileMatrixIndex: 0
3454-
m_TileColorIndex: 0
3455-
m_TileObjectToInstantiateIndex: 65535
3456-
m_AllTileFlags: 1073741825
3457-
- first: {x: 3, y: 2, z: 0}
3458-
second:
3459-
serializedVersion: 2
3460-
m_TileIndex: 10
3461-
m_TileSpriteIndex: 10
3462-
m_TileMatrixIndex: 0
3463-
m_TileColorIndex: 0
3464-
m_TileObjectToInstantiateIndex: 65535
3465-
m_AllTileFlags: 1073741825
3466-
- first: {x: 4, y: 2, z: 0}
3467-
second:
3468-
serializedVersion: 2
3469-
m_TileIndex: 9
3470-
m_TileSpriteIndex: 9
3471-
m_TileMatrixIndex: 0
3472-
m_TileColorIndex: 0
3473-
m_TileObjectToInstantiateIndex: 65535
3474-
m_AllTileFlags: 1073741825
3475-
- first: {x: 5, y: 2, z: 0}
3476-
second:
3477-
serializedVersion: 2
3478-
m_TileIndex: 9
3479-
m_TileSpriteIndex: 9
3480-
m_TileMatrixIndex: 0
3481-
m_TileColorIndex: 0
3482-
m_TileObjectToInstantiateIndex: 65535
3483-
m_AllTileFlags: 1073741825
34843448
- first: {x: 12, y: 2, z: 0}
34853449
second:
34863450
serializedVersion: 2
@@ -3517,42 +3481,6 @@ Tilemap:
35173481
m_TileColorIndex: 0
35183482
m_TileObjectToInstantiateIndex: 65535
35193483
m_AllTileFlags: 1073741825
3520-
- first: {x: 2, y: 3, z: 0}
3521-
second:
3522-
serializedVersion: 2
3523-
m_TileIndex: 12
3524-
m_TileSpriteIndex: 12
3525-
m_TileMatrixIndex: 0
3526-
m_TileColorIndex: 0
3527-
m_TileObjectToInstantiateIndex: 65535
3528-
m_AllTileFlags: 1073741825
3529-
- first: {x: 3, y: 3, z: 0}
3530-
second:
3531-
serializedVersion: 2
3532-
m_TileIndex: 11
3533-
m_TileSpriteIndex: 11
3534-
m_TileMatrixIndex: 0
3535-
m_TileColorIndex: 0
3536-
m_TileObjectToInstantiateIndex: 65535
3537-
m_AllTileFlags: 1073741825
3538-
- first: {x: 4, y: 3, z: 0}
3539-
second:
3540-
serializedVersion: 2
3541-
m_TileIndex: 11
3542-
m_TileSpriteIndex: 11
3543-
m_TileMatrixIndex: 0
3544-
m_TileColorIndex: 0
3545-
m_TileObjectToInstantiateIndex: 65535
3546-
m_AllTileFlags: 1073741825
3547-
- first: {x: 5, y: 3, z: 0}
3548-
second:
3549-
serializedVersion: 2
3550-
m_TileIndex: 7
3551-
m_TileSpriteIndex: 7
3552-
m_TileMatrixIndex: 0
3553-
m_TileColorIndex: 0
3554-
m_TileObjectToInstantiateIndex: 65535
3555-
m_AllTileFlags: 1073741825
35563484
m_AnimatedTiles: {}
35573485
m_TileAssetArray:
35583486
- m_RefCount: 0
@@ -3573,9 +3501,9 @@ Tilemap:
35733501
m_Data: {fileID: 11400000, guid: 418a25eaaf627094482d3c6d43e8f6e5, type: 2}
35743502
- m_RefCount: 6
35753503
m_Data: {fileID: 11400000, guid: abc6e755f719d3d4f87da10439c19f0e, type: 2}
3576-
- m_RefCount: 26
3504+
- m_RefCount: 20
35773505
m_Data: {fileID: 11400000, guid: bb6a072dec6619849a523d19f4b864bf, type: 2}
3578-
- m_RefCount: 7
3506+
- m_RefCount: 5
35793507
m_Data: {fileID: 11400000, guid: ce259be058488104ba277e9091d8342a, type: 2}
35803508
- m_RefCount: 10
35813509
m_Data: {fileID: 11400000, guid: 71a7eea2b2a60ca44b43266198af8e57, type: 2}
@@ -3610,10 +3538,10 @@ Tilemap:
36103538
- m_RefCount: 6
36113539
m_Data: {fileID: -101727570008643307, guid: 5a845afa38eaf044aaa7da7e76440e5b,
36123540
type: 3}
3613-
- m_RefCount: 26
3541+
- m_RefCount: 20
36143542
m_Data: {fileID: -4388360538170998283, guid: 5a845afa38eaf044aaa7da7e76440e5b,
36153543
type: 3}
3616-
- m_RefCount: 7
3544+
- m_RefCount: 5
36173545
m_Data: {fileID: -4921194623594234067, guid: 5a845afa38eaf044aaa7da7e76440e5b,
36183546
type: 3}
36193547
- m_RefCount: 10
@@ -3625,7 +3553,7 @@ Tilemap:
36253553
- m_RefCount: 0
36263554
m_Data: {fileID: 0}
36273555
m_TileMatrixArray:
3628-
- m_RefCount: 90
3556+
- m_RefCount: 82
36293557
m_Data:
36303558
e00: 1
36313559
e01: 0
@@ -3644,7 +3572,7 @@ Tilemap:
36443572
e32: 0
36453573
e33: 1
36463574
m_TileColorArray:
3647-
- m_RefCount: 90
3575+
- m_RefCount: 82
36483576
m_Data: {r: 1, g: 1, b: 1, a: 1}
36493577
m_TileObjectToInstantiateArray: []
36503578
m_AnimationFrameRate: 1
@@ -5754,7 +5682,7 @@ PrefabInstance:
57545682
- target: {fileID: 8949153041030979158, guid: d41310786b2de6d42945d51c17d1c013,
57555683
type: 3}
57565684
propertyPath: m_LocalPosition.y
5757-
value: 70
5685+
value: 4
57585686
objectReference: {fileID: 0}
57595687
- target: {fileID: 8949153041030979158, guid: d41310786b2de6d42945d51c17d1c013,
57605688
type: 3}

Assets/Scripts/PlayerBehavior.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ private void Update()
131131
//en fonction de la direction, on dash pas dans la meme direction
132132
if (direction == 1)
133133
{
134-
rb2DPlayer.velocity = Vector2.right * speedDash * 15;
134+
rb2DPlayer.velocity = Vector2.right * speedDash * 50;
135135
}
136136
else if (direction == 2)
137137
{
138-
rb2DPlayer.velocity = Vector2.left * speedDash * 15;
138+
rb2DPlayer.velocity = Vector2.left * speedDash * 50;
139139
}
140140
else if (direction == 3)
141141
{
142-
rb2DPlayer.velocity = Vector2.up * speedDash;
142+
rb2DPlayer.velocity = Vector2.up * (speedDash + 76);
143143
}
144144
isDashing = true; //impossible de re dash
145145
animator.SetTrigger("EndDash");//déclenchement de l'animation de fin du dash

0 commit comments

Comments
 (0)