Search found 148 matches

by Pangit
Sun Jul 10, 2016 7:20 am
Forum: Support and Development
Topic: Any way to query if a mouse or keyboard is attached to a system
Replies: 4
Views: 2377

Re: Any way to query if a mouse or keyboard is attached to a system

Excellent. Thanks for that zorg. :ultrahappy: That library is great, even had the next thing I was thinking to implement (power consumption and battery..) love.system.getPowerInfo For the curious... Here is the general idea of how I did this, if you want to see the full working example check out my ...
by Pangit
Sun Jul 10, 2016 4:28 am
Forum: Support and Development
Topic: Any way to query if a mouse or keyboard is attached to a system
Replies: 4
Views: 2377

Re: Any way to query if a mouse or keyboard is attached to a system

Fair enough like your idea, I can do it through the system on linux but I am not sure how its done in windows or android or osx.. I like the simpler approach of probing the players system, assuming there was a straight forward way to figure out if love was running on a particular OS then you could j...
by Pangit
Sun Jul 10, 2016 4:06 am
Forum: Games and Creations
Topic: My projects and demos
Replies: 95
Views: 50030

Re: My projects and demos

Another day - another crack at the problem. I figured time to take a slightly different aproach. In love.load() I added the following magamestate = { splash = true, splash2 = false, splash3 = false, mainMenu = false, subMenuCharacterStats = false, gamescreen = false, quitscreen = false, subMenuHelp ...
by Pangit
Sun Jul 10, 2016 2:53 am
Forum: Support and Development
Topic: Any way to query if a mouse or keyboard is attached to a system
Replies: 4
Views: 2377

Any way to query if a mouse or keyboard is attached to a system

So I can check if a joystick or gamepad is connected to the system with love. But I was thinking, is there some way of doing this for the keyboard and mouse? I guess its possible to use system commands to query this but that is platform dependant. Like for example android. Odds are there is going to...
by Pangit
Sun Jul 10, 2016 1:01 am
Forum: Support and Development
Topic: Comperession of dds
Replies: 12
Views: 5607

Re: Comperession of dds

So DXT5 is no longer supported in love 0.10.1?
by Pangit
Sat Jul 09, 2016 11:49 pm
Forum: General
Topic: Using coroutines to create an RPG dialogue system
Replies: 18
Views: 14591

Re: Using coroutines to create an RPG dialogue system

It's strange seeing that error message in this situation, I'd expect "attempt to yield from outside a coroutine" instead. That's what you'd normally get from executing coroutine.yield outside of a coroutine (try it in the REPL). Does Love wrap everything in a coroutine for some reason? En...
by Pangit
Sat Jul 09, 2016 11:39 pm
Forum: General
Topic: Using coroutines to create an RPG dialogue system
Replies: 18
Views: 14591

Re: Using coroutines to create an RPG dialogue system

The error message could certainly be more friendly, though. Truth. There's a problem with the tutorial. loadfile should be replaced with love.filesystem.load in order to get it to work with files inside the .love file. Attached is an example with that change. Thank you for taking the time to do thi...
by Pangit
Sat Jul 09, 2016 11:46 am
Forum: Games and Creations
Topic: My projects and demos
Replies: 95
Views: 50030

Re: My projects and demos

gamestate_exa.love If its not explained in the documentation how am I supposed to know that the example is incomplete? I included Gamestate but it still did not work... Thank you for explaining it was all my fault, but could you perhaps show me a working example? If it is so obvious I am confused w...
by Pangit
Sat Jul 09, 2016 10:14 am
Forum: General
Topic: Using coroutines to create an RPG dialogue system
Replies: 18
Views: 14591

Re: Using coroutines to create an RPG dialogue system

Can someone explain why the tutorial second and third part does not work? text = nil routine = nil function say(str) text = str coroutine.yield() text = nil end function run(script) -- load the script and wrap it in a coroutine local f = loadfile(script) routine = coroutine.create(f) -- begin execut...
by Pangit
Sat Jul 09, 2016 2:12 am
Forum: Games and Creations
Topic: My projects and demos
Replies: 95
Views: 50030

Re: My projects and demos

Here is the alphademo2_01 code. I commented it for clarity (or obscurity depending on how badly I wrote it..) -- alphademo2_01.love. ---main.lua -- This little demo shows the character stats extra info screens that would be part of my main game. -- It implements some additional features that would b...