A problem with drawing a tiled map

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

A problem with drawing a tiled map

Post by Combokarel »

So I am making a puzzle game about a ghost that is afraid of the dark (so I don't have to handle complicated collision with the terrain :) ) and I ran into a serious problem that I don't understand. I made a level with Tiled and I made my own Tiled loader (it's really bad but at least I understand it), but if I try to draw the map every second row of the first layer has black where there should be normal tiles.
Thanks for all the help in advance.

P.S. sorry for the bad English if there is any.
Attachments
PCA.love
This is the code for the game (it's called PCA wich stands for Point and Click Adventure :) )
(7.78 KiB) Downloaded 157 times
User avatar
Rukiri
Citizen
Posts: 68
Joined: Mon Jun 27, 2011 5:52 am

Re: A problem with drawing a tiled map

Post by Rukiri »

Sounds like an issue with your tiled draw function, have you tried STI to see if you could replicate the problem?
I think I know what the issue is, but can't fix it for like 6 hours as I'm at work... :cry:
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: A problem with drawing a tiled map

Post by Combokarel »

Sorry for being a total noob :), but what is STI?
dan369
Prole
Posts: 44
Joined: Tue Apr 15, 2014 10:53 pm

Re: A problem with drawing a tiled map

Post by dan369 »

Combokarel wrote:Sorry for being a total noob :), but what is STI?
http://love2d.org/forums/viewtopic.php?f=5&t=76983 :)
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: A problem with drawing a tiled map

Post by Combokarel »

STI worked perfect, now it's time for the lighting engine :)
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: A problem with drawing a tiled map

Post by bobbyjones »

What kind of lighting? Like actual lighting or like the type of light that either makes things black or visible.
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: A problem with drawing a tiled map

Post by Combokarel »

I think that the first option will be better so that i can use moving objects to emit light too.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests