## LudumDare24 LoveGames + WebPlayer Tips

Show off your games, demos and other (playable) creations.
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

### LudumDare24 LoveGames + WebPlayer Tips

Hi all, LudumDare #24 48 hour GameJam started a few hours ago,
and i expect there'll be a number of Love2D users participating,
so lets collect all love2D games in this thread =)

It's not too late to join in yet if you almost missed it : http://www.ludumdare.com/compo/

WebPlayer Tipps :
The experimental Love2D WebPlayer might be of interest to some,
note that porting of games is explicitly allowed after the 48 hours by the rules.
Please note that it is still experimental, so it will most likely not work for all games, but we have used it successfully in the last ludumdare.
I'll try to assist with questions asked in this thread and you can also reach me in love irc : #love@irc.oftc.net most of the time.
Probably i'll also enhance it a bit in the first days after the gamejam.
Some tipps :
* if possible use 0.7 api for web in "if (love.web) then ... end" blocks
** 0.8 api support is incomplete and experimental, i'll prolly enhance that in the few days after the jam, but not sure how far i get
* won't work in webplayer : shaders(love.graphics.newPixelEffect), network, coroutines, threads, physics, spritebatch,framebuf (at least not anytime soon)
* recommended browser is google chrome, firefox works but has a few lag issues with sound and large files (see love.web.showPreCompiledJS for latter)
* audio : music formats .xm and .mod not supported by browsers usually
* lua string patterns aren't fully convertible to javascript regexp, so while most basic string ops should work, more complex ones (like xml parsers) might fail
** if you need this for maploading or similar i'd recommend working around that by serialize the loaded table as .lua file, contact me for help
* ttf fonts don't work, best use pixelfonts, or use default and copy+upload+adjust url (same domain as your game) the one from js/love.font.js top : kDefaultImageFontURL = "http://ghoulsblade.schattenkind.net/lov ... mgfont.png";
Last edited by ghoulsblade on Sat Aug 25, 2012 6:56 pm, edited 4 times in total.
love-android - gamejams
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm
TheP3
Citizen
Posts: 62
Joined: Tue Dec 20, 2011 9:20 pm

### Re: LudumDare24 LoveGames + WebPlayer Tips

Hey, if your going to use the WebPlayer, I'm guessing you are going for the Kong Compo... You need to use their API

Suck, right...

Well! Not really, I worked 6 hours before the LD; and modified the WebPlayer a bit. Then, vwla Kongergate API for lua and Love2D! Really buggy, the only thing that work's love.kongAPI.submit(name, value) that function is required to work if you want to enter the compo! So wooohooo! If you have worked with code and have some free time. Please donate any changes you make. Like I said it is really buggy!

NateAGeek
I write rules for my computer... I'm not the ruler of the world(yet)... Also, I livestream stuff http://NateAGeek.com/Live
Anickyan
Prole
Posts: 27
Joined: Sun Aug 05, 2012 8:42 am

### Re: LudumDare24 LoveGames + WebPlayer Tips

I am using LÖVE too!

This is the Github page where I will update the source every now and then, during the two days: https://github.com/M-Clausen/LudumDare24
zapaman
Prole
Posts: 13
Joined: Sat Aug 25, 2012 5:54 pm
Location: Romania | Bucharest
Contact:

### Re: LudumDare24 LoveGames + WebPlayer Tips

Also started working with Love2D for Ludumdare! I want to make the game as accessible as possible, so getting it to run in the browser is on my list! Got it working actually, except for displaying the text on the screen. Using a ttf font which as been loaded and set in love.draw(). Are there any problems with .ttf fonts? Also, I tried the following with no success:

Code: Select all

	if (love.web) then
-- do nothing
else
font = love.graphics.newFont("media/Sniglet.ttf", 22)
love.graphics.setFont(font)
end

Just to be sure I also added 'media/Sniglet.ttf' in the MainOnLoad part of the index, but still no change. @Ghoulsblade any idea?

P.s. first post on the forum after lurking for a few months. So, Hi and you guys scared the crap out of me with the "Obey's avatar"
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

### Re: LudumDare24 LoveGames + WebPlayer Tips

Anickyan: can you link a post on ludumdare ? or is it this one : http://www.ludumdare.com/compo/author/mad1231999/ ?

zapaman : yeah, ttf doesn't work i'm afraid =(
best use pixelfonts, or use default and copy+upload+adjust url (same domain as your game) the one from js/love.font.js top : kDefaultImageFontURL = "http://ghoulsblade.schattenkind.net/lov ... mgfont.png";
love-android - gamejams
zapaman
Prole
Posts: 13
Joined: Sat Aug 25, 2012 5:54 pm
Location: Romania | Bucharest
Contact:

### Re: LudumDare24 LoveGames + WebPlayer Tips

Hm, for some reasons I thought .ttf would work! Well, Using .ttf on Desktop, and newImageFont for web!
Thanks Robert!
baconhawka7x
Party member
Posts: 484
Joined: Mon Nov 21, 2011 7:05 am
Contact:

### Re: LudumDare24 LoveGames + WebPlayer Tips

Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

### Re: LudumDare24 LoveGames + WebPlayer Tips

i would, but i need a username that can be found on ludumdare, ideally a link to some blogpost there =)
love-android - gamejams
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

### Re: LudumDare24 LoveGames + WebPlayer Tips

ghoulsblade wrote:i would, but i need a username that can be found on ludumdare, ideally a link to some blogpost there =)
He should be too busy playing (again) cards.
Gage Henderson ‏@MunkeeBacon