What's everyone working on? (tigsource inspired)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

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

Post by Larsii30 »

:'DD

Well, sounds like this is one of those games I really could enjoy :D
Good luck !
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

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

Post by Roland_Yonaba »

Chèvre wrote:Hi there,
So much impressive stuff from everyone!
Here's a screenshot of my first foray into LÖVE. (It's supposed to be pixel-doubled but I shrunk it so it doesn't take up too much space.)
Wow. Gorgeous style.
Did you make the arts by yourself ?
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

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

Post by BlackBulletIV »

Roland_Yonaba wrote:Great. Keep up the good job.
KingRecycle wrote: I wanted to use string interpolation but all that did was made me confused and I wasn't sure how I would set the position of things and it was overall confusing
Well, try my Allen. Or at least, rip the function you need (see line 263)

Code: Select all

function _.substitute(str,value) return (str:gsub('%${*([%w]+)}*',value)) end

--Example
print(_.subtitute('value = ${value}',100))
You could also put that function in the string table:

Code: Select all

function string:substitute(value) return self:gsub('%${*([%w]+)}*', value) end
And use it as such:

Code: Select all

("foo ${value}"):substitute(3)
str = "x = ${value}"
x:substitute(4)
But, unless I'm missing something, would string.format do the job?

Code: Select all

("value = %s"):format(3)
Edit: 1111 posts!
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

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

Post by Roland_Yonaba »

BlackBulletIV wrote: But, unless I'm missing something, would string.format do the job?

Code: Select all

("value = %s"):format(3)
Oh, yes, it does. This function is just useful to capture specific patterns ($var or ${var}) an replace them with the provided value.
BlackBulletIV wrote: Edit: 1111 posts!
Happy 1111th post to you.
Think i'll reach that by 2111. Yes, I intend to live 'till this year. So far, so good.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post by Robin »

Roland_Yonaba wrote:Happy 1111th post to you.
Think i'll reach that by 2111.
According to Wolfram Alpha, you can expect to reach that post count November next year. So I think you'll live to see that. ;)
Help us help you: attach a .love.
User avatar
Chèvre
Prole
Posts: 16
Joined: Sun Sep 16, 2012 4:53 pm
Location: France

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

Post by Chèvre »

Larsii30 wrote:Good luck !
Thanks! Hopefully you can play it soon ;)
Roland_Yonaba wrote:Wow. Gorgeous style.
Did you make the arts by yourself ?
Thank you!
Yes, I did. Picking the right colors was actually the trickiest part! I used grafx2, which is IMO the finest pixel art tool around.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

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

Post by Roland_Yonaba »

Robin wrote:So I think you'll live to see that. ;)
Well, we never know.
My people may need me in the meantime.
Attachments
551890_10151024687701840_1255533389_n.jpg
551890_10151024687701840_1255533389_n.jpg (46.15 KiB) Viewed 1843 times
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

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

Post by BlackBulletIV »

Roland_Yonaba wrote:Happy 1111th post to you.
Thank you. :)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests