Custom texture (force) system
This commit is contained in:
parent
f59191719d
commit
6b089e4e43
4
draw.lua
4
draw.lua
|
@ -22,7 +22,9 @@ function love.draw()
|
|||
end
|
||||
--draw preview
|
||||
love.graphics.setColor(1, 1, 1, 0.5)
|
||||
love.graphics.draw(tiles[selected_tile], clip_mouse_x, clip_mouse_y)
|
||||
if tiles[selected_tile] then
|
||||
love.graphics.draw(tiles[selected_tile], clip_mouse_x, clip_mouse_y)
|
||||
end
|
||||
--gui
|
||||
love.graphics.pop()
|
||||
love.graphics.setColor(0.8, 0.8, 0.8, 1)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 133 B |
Binary file not shown.
After Width: | Height: | Size: 172 B |
|
@ -4,7 +4,11 @@ tiles = {
|
|||
love.graphics.newImage(img_path.."ground.png"),
|
||||
love.graphics.newImage(img_path.."spike.png"),
|
||||
love.graphics.newImage(img_path.."elevator1.png"),
|
||||
love.graphics.newImage(img_path.."glue.png"),
|
||||
love.graphics.newImage(img_path.."ice.png"),
|
||||
love.graphics.newImage(img_path.."coin.png"),
|
||||
love.graphics.newImage(img_path.."jitem.png"),
|
||||
}
|
||||
tiles_char = { '0', 'v', '^' }
|
||||
tiles_char = { '0', 'v', '^', '~', '#', 'c', 'j' }
|
||||
|
||||
selected_tile = 1
|
||||
|
|
Loading…
Reference in New Issue