Search found 3444 matches

by zorg
Thu Jan 14, 2016 9:01 am
Forum: Support and Development
Topic: Audio based gameplay?
Replies: 4
Views: 2350

Re: Audio based gameplay?

Sadly the image is blocked for me ATM (work network blocks "personal pages") Audio may be encoded in a variety of ways, but getSample returns samplepoints with (double precision) floating point values between -1 and 1. It's normalized (restricted) in that sense to that range from whatever ...
by zorg
Thu Jan 14, 2016 8:44 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1501060

Re: What's everyone working on? (tigsource inspired)

Entity-Component-Systems... which can mean a dozen things really.
by zorg
Wed Jan 13, 2016 2:33 pm
Forum: Support and Development
Topic: Help me understand callbacks
Replies: 5
Views: 3337

Re: Help me understand callbacks

I'm sorry to say that i'm a bit lost in your question, but if you do expand on how you think functions (and callbacks) work, with simple examples, i might be able to correct your insight on anything that might be wrong! :3
by zorg
Wed Jan 13, 2016 1:07 pm
Forum: General
Topic: LÖVE 0.10.0 released
Replies: 86
Views: 79872

Re: LÖVE 0.10.0 released

One could write a lib to emulate a virtual gamepad, but, apart from using it with touchscreen devices, it would be virtually useless elsewhere, though feel free to code it yourself, or wait until someone does.
by zorg
Wed Jan 13, 2016 12:44 pm
Forum: General
Topic: LÖVE 0.10.0 released
Replies: 86
Views: 79872

Re: LÖVE 0.10.0 released

Watchmaker wrote:Can I suggest adding a native virtual gamepad to LÖVE 0.10.0+?
You mean like the current gamepad api?
Yay 400th post... so anticlimactic : )
by zorg
Wed Jan 13, 2016 9:38 am
Forum: Support and Development
Topic: Need a bit of help with love.touch
Replies: 2
Views: 1709

Re: Need a bit of help with love.touch

It works similarly to the keyboard and mouse stuff actually; you can either use the touchpressed/released/moved callbacks, or [wiki]love.touch.getPosition[/wiki] with [wiki]love.touch.getTouches[/wiki] in love.update. As for regions, just test whether the touch's coordinates are, in case of left/rig...
by zorg
Wed Jan 13, 2016 7:20 am
Forum: Support and Development
Topic: Help me understand callbacks
Replies: 5
Views: 3337

Re: Help me understand callbacks

in the function Equipment : init(inventory), the colon syntax makes the implicit parameter self be the first argument passed to itself; in button.OnClick(object, x, y), since you're using the dot syntax, self is nothing there. Sadly i don't know what you need to call in button.OnClick instead, since...
by zorg
Tue Jan 12, 2016 6:34 pm
Forum: General
Topic: I LÖVE callbacks
Replies: 29
Views: 10836

Re: I LÖVE callbacks

Take a look at the example here . I would much rather have the love.keypressed,love.mousepressed, etc callbacks. Oh ok, i get it now, you're saying that you like how löve does it, with a game loop ([wiki]love.run[/wiki]) polling SDL events and calling callbacks ([wiki]love.event[/wiki]) inside that...
by zorg
Tue Jan 12, 2016 5:46 pm
Forum: Support and Development
Topic: How do i take screengrabs?
Replies: 9
Views: 3704

Re: How do i take screengrabs?

I promised, so i tested it on my system with a benchmark app i made for testing micro-stutter, and after i made sure i was using Aero, here are my results: On my 64bit Win7 desktop, the printscreen key could capture the 0.10.0 löve projects' window's contents in all modes, that is, windowed, desktop...
by zorg
Tue Jan 12, 2016 10:59 am
Forum: Support and Development
Topic: How do i take screengrabs?
Replies: 9
Views: 3704

Re: How do i take screengrabs?

I can't say, because on my system (Win7x64), it... well, when i last tested it, it worked.
I'll test it on 0.10.0 later today.