Make Bullets use textures instead of one circle for all of them, remove some bloat code

This commit is contained in:
csd4ni3l
2025-10-10 21:30:49 +02:00
parent 02561e01b6
commit 5798f3ba2a
3 changed files with 13 additions and 31 deletions

View File

@@ -28,10 +28,9 @@ SHOP_ITEMS = []
PLAYER_SPEED = 4
INVENTORY_ITEMS = [
["Fireball", 0.2, 10, 10],
["Lightning Bolt", 0.4, 20, 20],
["Ice Blast", 0.1, 5, 7.5],
["Arcane Beam", 0.2, 20, 15],
["Fireball", 0.2, 10, 10, "fireball_texture"],
["Lightning Bolt", 0.4, 20, 20, "lightning_bolt_texture"],
["Ice Blast", 0.1, 5, 7.5, "ice_blast_texture"],
]
INVENTORY_TRIGGER_KEYS = [getattr(arcade.key, f"KEY_{n+1}") for n in range(len(INVENTORY_ITEMS))]

View File

@@ -15,4 +15,8 @@ dark_wizard_right_animation = arcade.TextureAnimation([arcade.TextureKeyframe(te
dark_wizard_standing_animation = arcade.TextureAnimation([arcade.TextureKeyframe(texture, 300) for texture in dark_wizard_spritesheet[6:8]])
dark_wizard_left_animation = arcade.TextureAnimation([arcade.TextureKeyframe(texture, 300) for texture in dark_wizard_spritesheet[9:11]])
fireball_texture = arcade.make_circle_texture(10, arcade.color.RED)
lightning_bolt_texture = arcade.make_circle_texture(20, arcade.color.BLUE)
ice_blast_texture = arcade.make_circle_texture(20, arcade.color.ICEBERG)
irs_agent_texture = arcade.load_texture("assets/graphics/irs_agent.png")