You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
951 B
28 lines
951 B
|
|
|
|
TEXTURES = {
|
|
BUTTON1 = am.texture2d("res/button1.png"),
|
|
WIDER_BUTTON1 = am.texture2d("res/wider_button1.png"),
|
|
TAB_ICON = am.texture2d("res/tab_icon.png"),
|
|
SATELLITE = am.texture2d("res/satelite.png"),
|
|
|
|
TOWER_REDEYE = am.texture2d("res/tower_redeye.png"),
|
|
TOWER_LIGHTHOUSE = am.texture2d("res/tower_lighthouse.png"),
|
|
TOWER_WALL = am.texture2d("res/tower_wall.png"),
|
|
TOWER_MOAT = am.texture2d("res/tower_moat.png"),
|
|
|
|
MOUNTAIN1 = am.texture2d("res/mountain1.png"),
|
|
MOUNTAIN2 = am.texture2d("res/mountain2.png"),
|
|
|
|
MOB_BEEPER = am.texture2d("res/mob_beeper.png"),
|
|
}
|
|
|
|
function pack_texture_into_sprite(texture, width, height)
|
|
return am.sprite{
|
|
texture = texture,
|
|
s1 = 0, s2 = 1, t1 = 0, t2 = 1,
|
|
x1 = 0, x2 = width, width = width,
|
|
y1 = 0, y2 = height, height = height
|
|
}
|
|
end
|
|
|