Change to relative paths for bitmap files

This commit is contained in:
RetiredWizard 2025-08-07 23:06:45 -04:00
parent e804e240a6
commit 06ccf1cc75

View file

@ -52,7 +52,7 @@ else:
game_logic = GameLogic(display) # pylint: disable=no-value-for-parameter game_logic = GameLogic(display) # pylint: disable=no-value-for-parameter
# Load the spritesheet # Load the spritesheet
sprite_sheet = OnDiskBitmap("/bitmaps/game_sprites.bmp") sprite_sheet = OnDiskBitmap("bitmaps/game_sprites.bmp")
# Main group will hold all the visual layers # Main group will hold all the visual layers
main_group = Group() main_group = Group()
@ -76,7 +76,7 @@ ui_group = Group()
main_group.append(ui_group) main_group.append(ui_group)
# Create the mouse graphics and add to the main group # Create the mouse graphics and add to the main group
mouse_bmp = OnDiskBitmap("/bitmaps/mouse_cursor.bmp") mouse_bmp = OnDiskBitmap("bitmaps/mouse_cursor.bmp")
mouse_bmp.pixel_shader.make_transparent(0) mouse_bmp.pixel_shader.make_transparent(0)
mouse_tg = TileGrid(mouse_bmp, pixel_shader=mouse_bmp.pixel_shader) mouse_tg = TileGrid(mouse_bmp, pixel_shader=mouse_bmp.pixel_shader)
mouse_tg.x = display.width // 2 mouse_tg.x = display.width // 2