/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-05-12 17:37:55 UTC
  • Revision ID: josh@9ix.org-20130512173755-cpc9gqzglyurezzb
starry background

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
vector = require 'vector'
7
7
 
8
8
require 'version'
9
 
require 'wrap_tile'
10
9
require 'player'
11
10
require 'enemy'
12
11
require 'cursor'
33
32
              --    end
34
33
              -- end
35
34
 
36
 
              the.bg = Tile:new{
37
 
                 image = 'data/stars3.png',
38
 
                 -- 1366x768 * 3
39
 
                 width = 4098,
40
 
                 height = 2304
 
35
              local bg = Tile:new{
 
36
                 image = 'data/stars2.png',
 
37
                 width = 102400,
 
38
                 height = 76800,
 
39
                 x = -51200,
 
40
                 y = -38400
41
41
              }
42
 
              self:add(the.bg)
 
42
              self:add(bg)
43
43
 
44
44
              --the.player = CrystalPlayer:new{x=400,y=300}
45
 
              the.player = SpacePlayer:new{x=1366,y=768}
 
45
              the.player = SpacePlayer:new{x=400,y=300}
46
46
              self:add(the.player)
47
47
 
48
48
              self:add(Enemy:new{x=400, y=300})
84
84
              if DEBUG then
85
85
                 self.console:watch('VERSION', 'VERSION')
86
86
                 self.console:watch('updateTook', 'the.updateTook')
87
 
                 self.console:watch('the.player.x', 'the.player.x')
88
 
                 self.console:watch('the.player.y', 'the.player.y')
89
 
                 self.console:watch('the.app.width', 'the.app.width')
90
 
                 self.console:watch('the.app.height', 'the.app.height')
91
87
                 --self.console:watch('drawTook', 'the.drawTook')
92
88
              end
93
89
           end,