/traderous

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-06-25 19:56:26 UTC
  • Revision ID: josh@9ix.org-20130625195626-00x63mxdyk1k6ud7
last fix for saving

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
require 'trade_view'
21
21
require 'shield'
22
22
require 'pause_view'
23
 
require 'game_over'
24
23
 
25
24
util = {
26
25
   signOf = function(value)
72
71
                                    x = planet.x,
73
72
                                    y = planet.y,
74
73
                                    rotation = planet.rotation,
75
 
                                    goods = planet.goods,
76
 
                                    name = planet.name
 
74
                                    goods = planet.goods
77
75
                                 })
78
76
                 end
79
77
 
125
123
              the.cursor = Cursor:new()
126
124
              self:add(the.cursor)
127
125
 
 
126
              the.over = Text:new{
 
127
                 y = the.app.height / 2,
 
128
                 width = the.app.width,
 
129
                 align = 'center',
 
130
                 font = 25,
 
131
                 text = "Game Over",
 
132
                 visible = false
 
133
              }
 
134
              the.interface:add(the.over)
 
135
 
 
136
 
 
137
              the.instructions = Text:new{
 
138
                 y = the.app.height / 2 + 32,
 
139
                 width = the.app.width,
 
140
                 align = 'center',
 
141
                 font = 12,
 
142
                 text = "Press Enter to start a new game\nPress Q to quit",
 
143
                 visible = false
 
144
              }
 
145
              the.interface:add(the.instructions)
 
146
 
128
147
              love.mouse.setGrab(true)
129
148
              love.mouse.setVisible(false)
130
149
              love.mouse.setPosition(the.app.width / 2, the.app.height / 2)