Tilemap doesn't load

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
LieutenantPie
Prole
Posts: 3
Joined: Sun Jun 29, 2014 8:03 pm

Tilemap doesn't load

Post by LieutenantPie »

I'm still very new to LOVE 2D so I apologize if these are really stupid questions

I've made a test image show up in game and move around, but that's pretty much all I've done so far. I decided I would just test everything out once to see how it works before I dive headfirst into programming a game with tools I don't understand, so I made a little test map in Tiled. The only problem is that whenever I load the game, it only shows a black screen.

Does anyone know what the problem might be? I've only been a member of these forums for a few days so I can add any information I may have forgotten. Any help would be greatly appreciated!
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Tilemap doesn't load

Post by Jasoco »

.love file please!
LieutenantPie
Prole
Posts: 3
Joined: Sun Jun 29, 2014 8:03 pm

Re: Tilemap doesn't load

Post by LieutenantPie »

Oh, right, sorry, here it is!
Attachments
TEST.love
(73 KiB) Downloaded 118 times
Zeliarden
Party member
Posts: 139
Joined: Tue Feb 28, 2012 4:40 pm

Re: Tilemap doesn't load

Post by Zeliarden »

Hi!
You need to use love callbacks

https://www.love2d.org/wiki/love

Code: Select all

function love.load() --This function is called exactly once at the beginning of the game.

end

--**************************************************************************
function love.update(dt)  --Callback function used to update the state of the game every frame.

end
--****************************************************************************

function love.draw()  --Callback function used to draw on the screen every frame.

end 
Maybe you should check out some löve tutorials? like https://www.youtube.com/playlist?list=P ... re=mh_lolz

I also recommend STI instead of ATL
http://love2d.org/forums/viewtopic.php?f=5&t=76983
LieutenantPie
Prole
Posts: 3
Joined: Sun Jun 29, 2014 8:03 pm

Re: Tilemap doesn't load

Post by LieutenantPie »

I tried using STI instead, however I am also dumb and both the tutorial and the documentation for STI weren't very helpful for me as I have no idea what I'm doing and I'm pretty sure most people expect me to have some idea of how this works, anyways I'm pretty sure the main problem I'm having is with syntax and the way I'm typing things, but in the getting started page for STI the example had "map" in front of pretty much everything but it isn't really recognized as an actual thing when I try it
doesn't work.PNG
doesn't work.PNG (6.24 KiB) Viewed 3285 times
I'm pretty sure this means I didn't successfully get STI to actually work or get loaded into LOVE or something like that but I honestly have no idea what I'm doing so I can't really figure it out, sorry

Oh also here's the .love file
Attachments
TEST.love
(1.1 MiB) Downloaded 118 times
Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 7 guests