Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 84 additions & 61 deletions Wordless.kv
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,36 @@
header: header
seconds: 0
displayed_seconds: 0
tile_collector: tile_collector
tile_cover: tile_cover
orientation: 'vertical'
spacing: 50,50
Header:
id: header
pos_hint: {'top': 1}
pos_hint: {'top': 1, 'right': 0.95}
PlayArea:
id: playArea
Footer:
id: footer
pos_hint: {'top': 0}
Label:
id: tile_collector
Button:
id: tile_cover
text: ""
background_color: 1,0,0,1
pos: -5000, -5000
#disabled: True

<Footer>
bubble: button
size_hint: 1, 0.2
Label:
size_hint: 4, 2
pos_hint: {'x': .35, 'y': .075}
search: search
SearchWord:
id: search
pos: root.parent.center_x - search.width / 2, -25
text: root.parent._searchword
font_size: 45
color: [.5, .75, 1, 1]
Bonus:
pos: -5000, -5000
id: button
Expand All @@ -42,7 +55,7 @@
<PlayArea>
orientation: 'horizontal'
size_hint: .9, .8
pos_hint: {'x': .05, 'y': .075}
pos_hint: {'x': .05, 'y': .065}

<Header>
word_complete: wordComplete
Expand Down Expand Up @@ -75,6 +88,7 @@
id: scoreboard
Level:
id: level_on
pos_hint: {'x': -.12}
ProgressBar:
pos_hint: {'x': -.05}
id: progressBar
Expand All @@ -85,10 +99,10 @@
Label:
text: 'LEVEL:'
font_size: 20
color: [1, 0, 1, 1]
color: [.75, 0, 1, 1]
Label:
font_size: 25
color: [1, 0, 1, 1]
color: [.75, 0, 1, 1]
text: str(root.parent.parent.parent.level)

<GameTimer>:
Expand Down Expand Up @@ -132,104 +146,113 @@
size_hint_y: .9

<Tile>:
lscore: letter_score
lscore: 0
font_size: 50
Label:
id: letter_score
text: "4"
text: str(root.lscore)
font_size: 17
color: 0,0.5,1,1
size: 5,5
pos: root.center_x + root.width/2 - 12, root.y + 8

<ScoreDisplay@BoxLayout>
text1: 'test'
text2: ''
color: 0,0,0,1
BoxLayout:
orientation: 'horizontal'
Label:
size_hint: 0.25, 1
pos_hint: {'right': 0.65}
text: root.text1
font_size: 30
color: root.color
Label:
size_hint: 0.25, 1
pos_hint: {'right': 0.35}
text: root.text2
font_size: 30
color: root.color


<MenuScreen>
scores: 0,0,0,0,0
player: '','','','',''
your_score: 0
champ_score: 0
second_score: 0
third_score: 0
fourth_score: 0
fifth_score: 0
champion: ''
second: ''
third: ''
fourth: ''
fifth: ''

Button:
color: 0,0,0,1
on_press: root.manager.current = 'game'
background_color: 0.2,1,2,1

Label:
text: 'Your Score:'
font_size: 60
color: 0,1,0.5,1
pos: root.center_x - 100, root.center_y + 200
pos: root.center_x - 110, root.center_y + 200
Label:
text: str(root.your_score)
font_size: 65
color: 0,1,0.5,1
pos: root.center_x + 100, root.center_y + 200
pos: root.center_x + 110, root.center_y + 200
Label:
text: 'High Scores'
font_size: 70
font_size: 80
color: 1,0,0.2,1
pos: root.center_x - 80, root.center_y + 100
pos: root.center_x - 70, root.center_y + 100
Label:
text: str(root.champion)
font_size: 30
text: str(root.player[0])
font_size: 35
color: 0,0,0,1
pos: root.center_x -150, root.center_y + 50
pos: root.center_x -150, root.center_y + 35
Label:
text: str(root.champ_score)
font_size: 30
text: str(root.scores[0])
font_size: 35
color: 0,0,0,1
pos: root.center_x +50, root.center_y + 50
pos: root.center_x +50, root.center_y + 35
Label:
text: str(root.second)
font_size: 30
text: str(root.player[1])
font_size: 35
color: 0,0,0,1
pos: root.center_x -150, root.center_y + 25
pos: root.center_x -150, root.center_y + 5
Label:
text: str(root.second_score)
font_size: 30
text: str(root.scores[1])
font_size: 35
color: 0,0,0,1
pos: root.center_x +50, root.center_y + 25
pos: root.center_x +50, root.center_y + 5
Label:
text: str(root.third)
font_size: 30
text: str(root.player[2])
font_size: 35
color: 0,0,0,1
pos: root.center_x -150, root.center_y
pos: root.center_x -150, root.center_y -25
Label:
text: str(root.third_score)
font_size: 30
text: str(root.scores[2])
font_size: 35
color: 0,0,0,1
pos: root.center_x +50, root.center_y
pos: root.center_x +50, root.center_y -25
Label:
text: str(root.fourth)
font_size: 30
text: str(root.player[3])
font_size: 35
color: 0,0,0,1
pos: root.center_x -150, root.center_y - 25
pos: root.center_x -150, root.center_y - 55
Label:
text: str(root.fourth_score)
font_size: 30
text: str(root.scores[3])
font_size: 35
color: 0,0,0,1
pos: root.center_x +50, root.center_y - 25
pos: root.center_x +50, root.center_y - 55
Label:
text: str(root.fifth)
font_size: 30
text: str(root.player[4])
font_size: 35
color: 0,0,0,1
pos: root.center_x -150, root.center_y - 50
pos: root.center_x -150, root.center_y - 85
Label:
text: str(root.fifth_score)
font_size: 30
text: str(root.scores[4])
font_size: 35
color: 0,0,0,1
pos: root.center_x +50, root.center_y - 50
pos: root.center_x +50, root.center_y - 85
Label:
text: 'Click anywhere to begin new Game'
text: 'Click Anywhere to begin new Game'
font_size: 40
color: 1,1,1,1
pos: root.center_x - 50, root.center_y - 200



color: 1,1,1,1
pos: root.center_x -50, root.center_y - 200
Loading