mirror of
https://github.com/csd4ni3l/fleet-commander.git
synced 2026-04-25 11:39:03 +02:00
Add basic mechanics, like shooting and some basic textures
This commit is contained in:
@@ -3,6 +3,15 @@ from arcade.types import Color
|
||||
from arcade.gui.widgets.buttons import UITextureButtonStyle, UIFlatButtonStyle
|
||||
from arcade.gui.widgets.slider import UISliderStyle
|
||||
|
||||
ENEMY_ROWS = 3
|
||||
ENEMY_COLS = 13
|
||||
|
||||
PLAYER_SPEED = 5 # not actually player
|
||||
PLAYER_ATTACK_SPEED = 0.75
|
||||
|
||||
BULLET_SPEED = 3
|
||||
BULLET_RADIUS = 10
|
||||
|
||||
menu_background_color = (30, 30, 47)
|
||||
log_dir = 'logs'
|
||||
discord_presence_id = 1438214877343907881
|
||||
|
||||
@@ -5,4 +5,7 @@ _module_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
_assets_dir = os.path.join(os.path.dirname(_module_dir), 'assets')
|
||||
|
||||
button_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button.png')))
|
||||
button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button_hovered.png')))
|
||||
button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button_hovered.png')))
|
||||
|
||||
enemy_texture = arcade.load_texture("assets/graphics/enemy.png")
|
||||
player_texture = arcade.load_texture("assets/graphics/player.png")
|
||||
Reference in New Issue
Block a user