-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextures.lua
More file actions
29 lines (22 loc) · 819 Bytes
/
Copy pathtextures.lua
File metadata and controls
29 lines (22 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
textures = {}
local texs = textures
texs.tank = {}
texs.map = {}
textures.load = function()
texs.tank['default'] = {
['gun'] = love.graphics.newImage('textures/gun.png'),
['head'] = love.graphics.newImage('textures/head.png'),
['body'] = love.graphics.newImage('textures/body.png')
}
texs.tank['deadly'] = {
['gun'] = love.graphics.newImage('textures/dgun.png'),
['head'] = love.graphics.newImage('textures/dhead.png'),
['body'] = love.graphics.newImage('textures/dbody.png')
}
texs.bullet = love.graphics.newImage('textures/bullet.png')
texs.grave = love.graphics.newImage('textures/grave.png')
texs.ammo = love.graphics.newImage('textures/ammo.png')
texs.map[5] = love.graphics.newImage('textures/grass.png')
texs.map[3] = love.graphics.newImage('textures/sand.png')
end
return textures