Search found 1558 matches

by Roland_Yonaba
Wed Aug 26, 2015 12:43 pm
Forum: General
Topic: Allow me to introduce myself!
Replies: 15
Views: 7293

Re: Allow me to introduce myself!

slime wrote:The free online version of PiL is actually written for Lua 5.0, which has some differences compared to 5.1 – although the 5.0 PiL is still largely relevant.
Oh, my mistake. Good point, Slime.
by Roland_Yonaba
Tue Aug 25, 2015 11:37 pm
Forum: General
Topic: Allow me to introduce myself!
Replies: 15
Views: 7293

Re: Allow me to introduce myself!

Welcome fellow coder! Programming in Lua is the canonical one, and in my opinion an excellent book. I recommend you get the third edition, even though it's about 5.2 and LuaJIT uses 5.1 with some 5.2 features. I'd just mention there is a free online version . It is mostly meant for Lua 5.1, but it ...
by Roland_Yonaba
Fri Aug 21, 2015 12:25 am
Forum: Support and Development
Topic: Talking algorithm
Replies: 2
Views: 1714

Re: Talking algorithm

Though I am unsure, It seems to me you are looking for a Text-To-Speech (TTS) library. Not "algorithm", cause there are no algorithms for that purpose, as far as I know (I might be wrong, but I do not think so). There are no such thing in pure Lua, or anything ready to use straight with LÖ...
by Roland_Yonaba
Wed Aug 19, 2015 10:29 am
Forum: Libraries and Tools
Topic: "profile.lua" a tool for finding bottlenecks
Replies: 27
Views: 34569

Re: "profile.lua" a tool for finding bottlenecks

I like that. Haven't tried it yet, but I like the features. May I suggest one thing ? Let the user implement this: function profiler.update(dt) -- this one would be implemented by the user, and will be called every dt in love.update. love.frame = love.frame + 1 end Have this, or something similar: f...
by Roland_Yonaba
Thu Aug 13, 2015 1:05 pm
Forum: General
Topic: Suggestion for a new URL
Replies: 13
Views: 7941

Re: Suggestion for a new URL

www.♥.org Sounds cute. Sorry if this sounds stupid, but how I am going to type that in my address bar ? I'll go for copy/paste anyway. Too bad, www.love.org is a dating site, apparently. I was afraid that some people woudn't be able to type www.löve.org ... :huh: Other than that, I'd go for löve.or...
by Roland_Yonaba
Tue Aug 11, 2015 12:39 pm
Forum: Support and Development
Topic: tween.lua and love.audio.setVolume
Replies: 5
Views: 2060

Re: tween.lua and love.audio.setVolume

It's a bit awkward, but metatables can do this too! local volume = setmetatable({}, { __index = function() return 0 end, -- the initial value __newindex = function(self, k, v) return love.audio.setVolume(v) end, }) local volumeTweener = tween.new(duration, volume, {volume = 1}, easingFunction) You ...
by Roland_Yonaba
Mon Aug 10, 2015 9:21 pm
Forum: Support and Development
Topic: tween.lua and love.audio.setVolume
Replies: 5
Views: 2060

Re: tween.lua and love.audio.setVolume

Just a random idea. Create a tween object that changes gradually the volume level from a value to another (Here, from 0 to 1). local volume = {level = 0} local volumeTweener = tween.new(duration, volume, {level = 1}, easingFunction) Then, in love.update , use this : function love.update(dt) -- some ...
by Roland_Yonaba
Fri Aug 07, 2015 10:43 am
Forum: Games and Creations
Topic: LABWS
Replies: 5
Views: 3088

Re: LABWS

Ulydev wrote:This is shit.
Literally.
Wow.
I have seen a poop class in the source.
A poop class.
Wow.
by Roland_Yonaba
Mon Aug 03, 2015 10:55 pm
Forum: Support and Development
Topic: Making mobile games with Love?
Replies: 2
Views: 1462

Re: Making mobile games with Love?

petkovix wrote:I am new to Love but is it possible to make iOS and Android games with Love?
Please take a closer look at community ports.
There's this experimental iOS port. As for Android, this port is pretty much feature-complete, IMHO.
by Roland_Yonaba
Fri Apr 24, 2015 9:46 am
Forum: Support and Development
Topic: [Solved]Middleclass: failing to set instance to nil
Replies: 5
Views: 1659

Re: Middleclass: failing to set instance to nil

Given the way the instances of middleclass are constructed, if you set something on the class, it is available for its instances. Well, I am always interested in learning new things. I don't know very much of OOP standards, but shouldn't it be the normal behavior of instances ? Can you please elabo...