Search found 98 matches

by keharriso
Sun Apr 21, 2024 5:55 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 235

Re: Mapping

Todespreis wrote: Sun Apr 21, 2024 5:52 pm It's working fine now, thank you!
Glad to help :nyu:
by keharriso
Sun Apr 21, 2024 5:39 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 235

Re: Mapping

This code here, in love.load: num_tiles = 60 tiles = {} for i = 1, num_tiles do tiles[i] = love.graphics.newImage("/DungeonTiles01/" .. string.format("%02d", i) .. ".png") end should be replaced with this code (which you currently have in love.draw): tiles = {} for _, r...
by keharriso
Sun Apr 21, 2024 4:39 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 235

Re: Mapping

If you share your code as a .love file I can hopefully find exactly where your problem is.
by keharriso
Sun Apr 21, 2024 4:32 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 235

Re: Mapping

Todespreis wrote: Sun Apr 21, 2024 4:25 pm Exactly! But your code is'nt working. I get the same error ^^
Hello, would you mind sharing the error you get?
by keharriso
Sun Apr 21, 2024 4:08 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 235

Re: Mapping

If I understand correctly, you're trying to load images for tiles that don't exist, like 01.png To solve this, you can iterate over your tilemap to pick out the tiles that are actually used: tiles = {} for _, row in ipairs(tilemap) do for _, tile in ipairs(row) do if tiles[tile] == nil then tiles[ti...
by keharriso
Sun Apr 07, 2024 12:18 am
Forum: General
Topic: Lua
Replies: 2
Views: 1088

Re: Lua

You need to pass the scale twice, one for X and one for Y:

Code: Select all

love.graphics.draw(PlaImg, posX, posY, rot, tam, tam, ori, ori)
by keharriso
Sun Mar 03, 2024 2:18 pm
Forum: Support and Development
Topic: Can a non-Windows peep test my love file?
Replies: 8
Views: 1607

Re: Can a non-Windows peep test my love file?

For Linux, you can very easily set up a VM to do your testing. Look into installing and hosting Linux on Virtual Box.
by keharriso
Thu Jan 04, 2024 11:08 pm
Forum: Games and Creations
Topic: Just launched Typing Bullets on Steam
Replies: 16
Views: 196249

Re: Just launched Typing Bullets on Steam

If I ever get my game on steam, I'll probably use luasteam - side note, is it possible to test this stuff out without having to pay the submission fee? Probbaly not something I should be wasting my time on yet buuuuuuuut it would be fun to learn how to do achievements and stuff. No, I think you nee...
by keharriso
Thu Jan 04, 2024 12:47 am
Forum: Games and Creations
Topic: Just launched Typing Bullets on Steam
Replies: 16
Views: 196249

Re: Just launched Typing Bullets on Steam

I've had some success in testing with luasteam:
https://github.com/keharriso/luasteam

It's been fairly easy to implement new/missing functions, and I've been adding more as I need them.