Skip to content

Commit

Permalink
nightly 1.6.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ipodtouch0218 committed Jun 18, 2022
1 parent f514b17 commit 1158f4c
Show file tree
Hide file tree
Showing 13 changed files with 3,446 additions and 1,073 deletions.
3,119 changes: 2,683 additions & 436 deletions Assets/Scenes/Levels/CustomBonus.unity

Large diffs are not rendered by default.

430 changes: 215 additions & 215 deletions Assets/Scenes/MainMenu.unity

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions Assets/Scripts/Entity/Player/PlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1876,17 +1876,9 @@ bool HandleStuckInBlock() {
onGround = true;

if (Utils.IsAnyTileSolidBetweenWorldBox(checkPos, checkSize)) {

if (!Utils.IsAnyTileSolidBetweenWorldBox(body.position + Vector2.up * 0.25f, checkPos * Vector2.right)) {
Debug.Log("a");
if (!Utils.IsAnyTileSolidBetweenWorldBox(body.position + Vector2.up * 0.5f, checkSize * Vector2.right)) {
transform.position = body.position = new(body.position.x, Mathf.Floor(body.position.y * 2 + 1) / 2);

} else if (!Utils.IsAnyTileSolidBetweenWorldBox(body.position + Vector2.up * 0.75f, checkPos * Vector2.right)) {
Debug.Log("b");
transform.position = body.position = new(body.position.x, Mathf.Floor(body.position.y * 2 + 2) / 2);

} else if (!Utils.IsAnyTileSolidBetweenWorldBox(body.position + Vector2.down * 0.4f, checkPos * Vector2.right)) {
Debug.Log("c");
} else if (!Utils.IsAnyTileSolidBetweenWorldBox(body.position + Vector2.down * 0.5f, checkSize * Vector2.right)) {
float heightInTiles = Mathf.Floor(hitboxes[0].size.y * transform.lossyScale.y * 2);
transform.position = body.position = new(body.position.x, Mathf.Floor(body.position.y * 2 - heightInTiles - 1) / 2);
}
Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public static bool IsAnyTileSolidBetweenWorldBox(Vector2 checkPosition, Vector2
Vector3Int minPos = WorldToTilemapPosition(checkPosition - (checkSize / 2), wrap: false);
Vector3Int size = WorldToTilemapPosition(checkPosition + (checkSize / 2), wrap: false) - minPos;

Debug.Log("size" + size);

for (int x = 0; x <= size.x; x++) {
for (int y = 0; y <= size.y; y++) {

Expand Down
8 changes: 8 additions & 0 deletions Assets/Sprites/Atlases/Terrain/Atlas.spriteatlas
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,13 @@ SpriteAtlas:
- {fileID: -2940530314470319842, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 3036753812775530641, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 1433433934713897156, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: -1848089947, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 4994258414075552032, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: -2103662274, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 2763954904775634219, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 1669150104, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 6594603699599502552, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 1038974077, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: -1082198178173625565, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: 3661830941288844219, guid: 0370724d18844184d950a518e4daf31d, type: 3}
- {fileID: -766508114, guid: 0370724d18844184d950a518e4daf31d, type: 3}
Expand Down Expand Up @@ -1022,9 +1026,13 @@ SpriteAtlas:
- clown_5
- clown_4
- clown_3
- bonus_21
- clown_2
- bonus_20
- clown_1
- bonus_23
- clown_0
- bonus_22
- clown_9
- clown_8
- bonus_10
Expand Down
94 changes: 91 additions & 3 deletions Assets/Sprites/Atlases/Terrain/bonus.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sprites/Background/bonus-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1158f4c

Please sign in to comment.