mirror of
https://github.com/csd4ni3l/connect-the-current.git
synced 2026-01-01 04:13:41 +01:00
Make cells modular, add crosses and t junctions and houses which have example texture and dont work yet, improve code quality, fix cell texture not being the same when pressed
This commit is contained in:
@@ -3,6 +3,30 @@ from arcade.types import Color
|
||||
from arcade.gui.widgets.buttons import UITextureButtonStyle, UIFlatButtonStyle
|
||||
from arcade.gui.widgets.slider import UISliderStyle
|
||||
|
||||
ROTATIONS = {
|
||||
"line": ["vertical", "horizontal"],
|
||||
"corner": ["right_bottom", "left_bottom", "left_top", "right_top"],
|
||||
"t_junction": ["top_bottom_right", "left_right_bottom", "top_bottom_left", "left_right_top"],
|
||||
"cross": ["cross"],
|
||||
"power_source": ["cross"],
|
||||
"house": ["cross"]
|
||||
}
|
||||
|
||||
NEIGHBOURS = {
|
||||
"vertical": ["b", "t"],
|
||||
"horizontal": ["l", "r"],
|
||||
"left_bottom": ["l", "b"],
|
||||
"right_bottom": ["r", "b"],
|
||||
"left_top": ["l", "t"],
|
||||
"right_top": ["r", "t"],
|
||||
"top_bottom_right": ["t", "b", "r"],
|
||||
"top_bottom_left": ["t", "b", "l"],
|
||||
"left_right_bottom": ["l", "r", "b"],
|
||||
"left_right_top": ["l", "r", "t"],
|
||||
"cross": ["l", "r", "t", "b"]
|
||||
}
|
||||
|
||||
|
||||
menu_background_color = (30, 30, 47)
|
||||
log_dir = 'logs'
|
||||
discord_presence_id = 1435687634960777266
|
||||
|
||||
Reference in New Issue
Block a user