Search found 139 matches

by Zeliarden
Mon Jan 19, 2015 1:57 pm
Forum: Support and Development
Topic: Love for Business Applications
Replies: 4
Views: 3684

Re: Love for Business Applications

riidom wrote:At the same time, it does not offer a built-in GUI library or network communication library (afaik).
For some reason there are no link to them in the löve wiki doc...
https://www.love2d.org/wiki/socket
https://www.love2d.org/wiki/lua-enet
by Zeliarden
Tue Sep 23, 2014 8:04 pm
Forum: Support and Development
Topic: Windows bubble notifications
Replies: 21
Views: 7864

Re: Windows bubble notifications

Maybe?
http://luajit.org/ext_ffi.html

Code: Select all

local ffi = require("ffi")
ffi.cdef[[
int MessageBoxA(void *w, const char *txt, const char *cap, int type);
]]
ffi.C.MessageBoxA(nil, "Hello world!", "Test", 0)
by Zeliarden
Tue Sep 09, 2014 8:39 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411930

Re: "Questions that don't deserve their own thread" thread

Trying to get collision working in my game, I've been using the PhysicsCallback tutorial. It tells me when any objects collide with each other, but I want a function that checks to see when two specific objects collide, so I coded the two functions "beginPlayerEnemyContact" and "endP...
by Zeliarden
Fri Aug 22, 2014 9:30 pm
Forum: Support and Development
Topic: Find a 12 letter word in a string.
Replies: 1
Views: 1706

Re: Find a 12 letter word in a string.

Code: Select all

if string.find(amazingString, string.rep("%a", 12)) then
	--something
end
by Zeliarden
Sat Jul 19, 2014 6:29 pm
Forum: Support and Development
Topic: Centering Text on the X axis only [SOLVED]
Replies: 5
Views: 4228

Re: Centering Text on the X axis only

try

Code: Select all

love.graphics.print("Example Text", (love.graphics.getWidth( )/2-TitleFont:getWidth("Example Text")/2), 10)
by Zeliarden
Mon Jul 07, 2014 7:16 pm
Forum: Support and Development
Topic: Tilemap doesn't load
Replies: 4
Views: 3257

Re: Tilemap doesn't load

Hi! You need to use love callbacks https://www.love2d.org/wiki/love 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 t...
by Zeliarden
Fri Jun 20, 2014 9:49 pm
Forum: General
Topic: How to start?
Replies: 4
Views: 2005

Re: How to start?

by Zeliarden
Sun Jun 01, 2014 10:35 pm
Forum: Support and Development
Topic: loading tiled maps while using gamestates (SOLVED)
Replies: 5
Views: 2333

Re: loading tiled maps while using gamestates (SOLVED)

yes you used

Code: Select all

love.graphics.scale(4, 4)
that scales everything after that 4 times, makeing the map 4 times larger and there by only showing emty tiles as you have no tiles at the top corner of the map

btw i recommend you use sti viewtopic.php?f=5&t=76983
by Zeliarden
Sun Jun 01, 2014 9:39 pm
Forum: Support and Development
Topic: loading tiled maps while using gamestates (SOLVED)
Replies: 5
Views: 2333

Re: loading tiled maps while using gamestates

You forgot love.draw and love.update
by Zeliarden
Wed Apr 16, 2014 10:53 pm
Forum: Support and Development
Topic: Simple string.match question
Replies: 3
Views: 1101

Re: Simple string.match question

Code: Select all

min,default,max = str:match("(%d+)-(%d+)-(%d+)")