hexyz is tower defense game, and a lua library for dealing with hexagonal grids
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.

30 lines
1.1 KiB

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"),
TOWER_REDEYE_ICON = am.texture2d("res/tower_redeye_icon.png"),
TOWER_LIGHTHOUSE_ICON = am.texture2d("res/tower_lighthouse_icon.png"),
TOWER_WALL_ICON = am.texture2d("res/tower_wall_icon.png"),
TOWER_MOAT_ICON = am.texture2d("res/tower_moat_icon.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