/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-26 00:45:08 UTC
  • Revision ID: josh@9ix.org-20130626004508-6in13i6vjpu77els
give planets names

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'
23
24
 
24
25
util = {
25
26
   signOf = function(value)
71
72
                                    x = planet.x,
72
73
                                    y = planet.y,
73
74
                                    rotation = planet.rotation,
74
 
                                    goods = planet.goods
 
75
                                    goods = planet.goods,
 
76
                                    name = planet.name
75
77
                                 })
76
78
                 end
77
79
 
123
125
              the.cursor = Cursor:new()
124
126
              self:add(the.cursor)
125
127
 
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
 
 
147
128
              love.mouse.setGrab(true)
148
129
              love.mouse.setVisible(false)
149
130
              love.mouse.setPosition(the.app.width / 2, the.app.height / 2)