mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-10 04:05:24 -06:00
changed bullet speed and size, final format check
This commit is contained in:
@@ -211,7 +211,8 @@ class Game(arcade.Window):
|
|||||||
# If the bullet flies off-screen, remove it. TEMP change to range calc
|
# If the bullet flies off-screen, remove it. TEMP change to range calc
|
||||||
if (bullet.bottom < self.view_bottom or bullet.top > self.view_bottom+Config.SCREEN_HEIGHT
|
if (bullet.bottom < self.view_bottom or bullet.top > self.view_bottom+Config.SCREEN_HEIGHT
|
||||||
or bullet.right > self.view_left+Config.SCREEN_WIDTH or bullet.left < self.view_left):
|
or bullet.right > self.view_left+Config.SCREEN_WIDTH or bullet.left < self.view_left):
|
||||||
bullet.remove_from_sprite_lists()
|
bullet.remove_from_sprite_lists()
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ class Temp(Projectile):
|
|||||||
def __init__(self, *args, **kwargs) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
super(Temp, self).__init__(*args, **kwargs)
|
super(Temp, self).__init__(*args, **kwargs)
|
||||||
self.texture = arcade.load_texture("resources/images/monsters/frog/frog1.png")
|
self.texture = arcade.load_texture("resources/images/monsters/frog/frog1.png")
|
||||||
self.speed = 12
|
self.speed = 20
|
||||||
self.scale = 4
|
self.scale = 1
|
||||||
# collision list for who/what to collide with: wall, player, enemy
|
# collision list for who/what to collide with: wall, player, enemy
|
||||||
|
|
||||||
# Can place function for starting on player or enemy
|
# Can place function for starting on player or enemy
|
||||||
|
|||||||
Reference in New Issue
Block a user