Open wayne-wang-1119 opened 10 months ago
a1ce6b4ce1
)Here are the sandbox execution logs prior to making any changes:
8829aba
Checking byow/TileEngine/Tileset.java for syntax errors... ✅ byow/TileEngine/Tileset.java has no syntax errors!
1/1 ✓Checking byow/TileEngine/Tileset.java for syntax errors... ✅ byow/TileEngine/Tileset.java has no syntax errors!
Sandbox passed on the latest main
, so sandbox checks will be enabled for this issue.
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
byow/TileEngine/textures/new_image.png
✓ https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/commit/84bd1de942fcaf934ab5d5559c18a56081270f7b Edit
Create byow/TileEngine/textures/new_image.png with contents:
• Place the new image file in the textures directory. The image should be of the correct size (16x16) and in .png format.
byow/TileEngine/textures/new_image.png
✓ Edit
Check byow/TileEngine/textures/new_image.png with contents:
Ran GitHub Actions for 84bd1de942fcaf934ab5d5559c18a56081270f7b:
byow/TileEngine/Tileset.java
✓ https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/commit/6f3200b2763256cf0aa302cf862cdcb0fb51e173 Edit
Modify byow/TileEngine/Tileset.java with contents:
• Replace the current filepaths in the TETile instances with the filepath of the new image. For example, if the new image is named new_image.png, replace "byow/TileEngine/textures/Knight.png" with "byow/TileEngine/textures/new_image.png".
• Repeat this step for all the TETile instances in the Tileset.java file.
--- +++ @@ -21,22 +21,22 @@ */ public class Tileset { - public static final TETile AVATAR = new TETile('@', Color.white, Color.black, "you", "byow/TileEngine/textures/Knight.png"); + public static final TETile AVATAR = new TETile('@', Color.white, Color.black, "you", "byow/TileEngine/textures/new_image.png"); public static final TETile WALL = new TETile('#', new Color(216, 128, 128), Color.darkGray, - "wall"); + "wall", "byow/TileEngine/textures/new_image.png"); public static final TETile FLOOR = new TETile('·', new Color(128, 192, 128), Color.black, - "floor"); - public static final TETile NOTHING = new TETile(' ', Color.black, Color.black, "Out of Reach", "byow/TileEngine/textures/nothing.png"); - public static final TETile GRASS = new TETile('"', Color.green, Color.black, "grass"); - public static final TETile WATER = new TETile('≈', Color.blue, Color.black, "Hallway Floor", "byow/TileEngine/textures/stonefloor.png"); - public static final TETile FLOWER = new TETile('❀', Color.magenta, Color.pink, "Treasure", "byow/TileEngine/textures/Chests.png"); + "floor", "byow/TileEngine/textures/new_image.png"); + public static final TETile NOTHING = new TETile(' ', Color.black, Color.black, "Out of Reach", "byow/TileEngine/textures/new_image.png"); + public static final TETile GRASS = new TETile('"', Color.green, Color.black, "grass", "byow/TileEngine/textures/new_image.png"); + public static final TETile WATER = new TETile('≈', Color.blue, Color.black, "Hallway Floor", "byow/TileEngine/textures/new_image.png"); + public static final TETile FLOWER = new TETile('❀', Color.magenta, Color.pink, "Treasure", "byow/TileEngine/textures/new_image.png"); public static final TETile LOCKED_DOOR = new TETile('█', Color.orange, Color.black, - "locked door"); + "locked door", "byow/TileEngine/textures/new_image.png"); public static final TETile UNLOCKED_DOOR = new TETile('▢', Color.orange, Color.black, - "unlocked door", "byow/TileEngine/textures/doors2.png"); - public static final TETile SAND = new TETile('▒', Color.yellow, Color.black, "Room Floor", "byow/TileEngine/textures/room.png"); - public static final TETile MOUNTAIN = new TETile('▲', Color.gray, Color.black, "Hallway Wall", "byow/TileEngine/textures/free_torches.png"); - public static final TETile TREE = new TETile('♠', Color.green, Color.black, "Room Wall", "byow/TileEngine/textures/room_wall.png"); + "unlocked door", "byow/TileEngine/textures/new_image.png"); + public static final TETile SAND = new TETile('▒', Color.yellow, Color.black, "Room Floor", "byow/TileEngine/textures/new_image.png"); + public static final TETile MOUNTAIN = new TETile('▲', Color.gray, Color.black, "Hallway Wall", "byow/TileEngine/textures/new_image.png"); + public static final TETile TREE = new TETile('♠', Color.green, Color.black, "Room Wall", "byow/TileEngine/textures/new_image.png"); }
byow/TileEngine/Tileset.java
✓ Edit
Check byow/TileEngine/Tileset.java with contents:
Ran GitHub Actions for 6f3200b2763256cf0aa302cf862cdcb0fb51e173:
I have finished reviewing the code for completeness. I did not find errors for sweep/change_the_tiles_used_in_the_game_by_usi
.
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
Please change the tiles used in the game to another image, instead of the current one.
Checklist
- [X] Create `byow/TileEngine/textures/new_image.png` ✓ https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/commit/84bd1de942fcaf934ab5d5559c18a56081270f7b [Edit](https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/edit/sweep/change_the_tiles_used_in_the_game_by_usi/byow/TileEngine/textures/new_image.png) - [X] Running GitHub Actions for `byow/TileEngine/textures/new_image.png` ✓ [Edit](https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/edit/sweep/change_the_tiles_used_in_the_game_by_usi/byow/TileEngine/textures/new_image.png) - [X] Modify `byow/TileEngine/Tileset.java` ✓ https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/commit/6f3200b2763256cf0aa302cf862cdcb0fb51e173 [Edit](https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/edit/sweep/change_the_tiles_used_in_the_game_by_usi/byow/TileEngine/Tileset.java#L23-L38) - [X] Running GitHub Actions for `byow/TileEngine/Tileset.java` ✓ [Edit](https://github.com/wayne-wang-1119/Pirates-of-The-Caribbean/edit/sweep/change_the_tiles_used_in_the_game_by_usi/byow/TileEngine/Tileset.java#L23-L38)