I make my tilemaps with...
Code: Select all
for rowIndex=1, #town do
local row = town[rowIndex]
for columnIndex=1, #row do
local number = row[columnIndex]
love.graphics.draw(tile[number], (columnIndex-1)*TileW, (rowIndex-1)*TileH)
end
end
Also I was wondering how to stop the player from infinitely jumping?
This is how i make the player jump
Code: Select all
if love.keyboard.isDown("w") then
steve.y = steve.y - steve.jump * dt
timer = timer + dt
end
if timer > 1.5 then
steve.y = steve.y + steve.jump * dt
end
Should i just make a bunch of seperate pictures of the same guy wearing different armor?
or would i make seperate pictures of armor and somehow paste them onto the character? If so, how would I do that.
and the same goes for custom weapons.
One last question. How do i control the camera? i dont even have a clue where to start, so any basic information would be nice:)
all and any help is appreciated greatly:)