/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to win_view.lua

  • Committer: Josh C
  • Date: 2013-08-26 00:38:14 UTC
  • Revision ID: josh@9ix.org-20130826003814-zi36hgt8co873c9l
nameĀ theĀ game

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
WinView = Subview:extend {
2
2
   onNew = function (self)
3
 
              local boxW = 300
 
3
              local boxW = 550
4
4
              local boxH = 190
5
5
              local boxL = the.app.width / 2 - boxW / 2
6
6
              local boxT = the.app.height / 2 - boxH / 2
7
7
              local boxR = boxL + boxW
8
8
              local boxB = boxT + boxH
 
9
              local nr = 'data/NewRocker-Regular.otf'
9
10
 
10
11
              self:add(Fill:new{
11
12
                          fill = {240,221,58},
24
25
                       })
25
26
 
26
27
              self:add(Text:new{
27
 
                          text = 'You Win!',
 
28
                          text = 'You found the shinies!',
28
29
                          x = boxL,
29
 
                          y = boxT + 16,
 
30
                          y = boxT + 25,
30
31
                          width = boxW,
31
 
                          font = 48,
 
32
                          font = {nr, 48},
32
33
                          align = 'center',
33
34
                          tint = {0,0,0}
34
35
                       })
36
37
              self:add(Text:new{
37
38
                          text = 'Press Q to quit',
38
39
                          x = boxL,
39
 
                          y = boxT + 90,
 
40
                          y = boxT + 100,
40
41
                          width = boxW,
41
 
                          font = 20,
 
42
                          font = {nr, 20},
42
43
                          align = 'center',
43
44
                          tint = {0,0,0}
44
45
                       })
46
47
              self:add(Text:new{
47
48
                          text = 'Any other key to keep exploring',
48
49
                          x = boxL,
49
 
                          y = boxT + 120,
 
50
                          y = boxT + 130,
50
51
                          width = boxW,
51
 
                          font = 20,
 
52
                          font = {nr, 20},
52
53
                          align = 'center',
53
54
                          tint = {0,0,0}
54
55
                       })