-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.lua
41 lines (36 loc) · 992 Bytes
/
graphics.lua
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
30
31
32
33
34
35
36
37
38
39
40
41
local p = love.graphics.newImage -- Shorten
local f = love.graphics.newFont
local s = love.audio.newSource
Sprites =
{
Player1 = p( "sprites/Player1.png" ),
Dot = p( "sprites/dotty.png" ),
Heart = p( "sprites/Heart.png" ),
LamePistol = p( "sprites/lamepistol.png" ),
Grenade = p( "sprites/grenade.png" ),
PistolBullet = p( "sprites/pistolbasic.png" ),
PistolIcon = p( "sprites/PistolIcon.png" ),
GrenadeIcon = p( "sprites/GrenadeIcon.png" )
}
Fonts =
{
WhiteChocolateMint = f( "fonts/white-chocolate-mint.ttf", 20 )
}
Sound =
{
PistolBasic =
{
Fire = "sound/PistolBasic/Fire.wav",
Reload1 = "sound/PistolBasic/Reload1.wav",
Click = "sound/PistolBasic/Click.wav"
}
}
function Camera()
love.graphics.push()
love.graphics.rotate( 0 )
love.graphics.scale( 1.35, 1.35 )
love.graphics.translate( ( ( width / 2.65 ) - player.Position.x ), ( ( height / 2.65 ) - player.Position.y ) )
end
function EndCamera()
love.graphics.pop()
end