:'DD
Well, sounds like this is one of those games I really could enjoy
Good luck !
What's everyone working on? (tigsource inspired)
- 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)
Wow. Gorgeous style.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.)
Did you make the arts by yourself ?
- 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)
You could also put that function in the string table:Roland_Yonaba wrote:Great. Keep up the good job.
Well, try my Allen. Or at least, rip the function you need (see line 263)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 confusingCode: Select all
function _.substitute(str,value) return (str:gsub('%${*([%w]+)}*',value)) end --Example print(_.subtitute('value = ${value}',100))
Code: Select all
function string:substitute(value) return self:gsub('%${*([%w]+)}*', value) end
Code: Select all
("foo ${value}"):substitute(3)
str = "x = ${value}"
x:substitute(4)
Code: Select all
("value = %s"):format(3)
- 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)
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: But, unless I'm missing something, would string.format do the job?Code: Select all
("value = %s"):format(3)
Happy 1111th post to you.BlackBulletIV wrote: Edit: 1111 posts!
Think i'll reach that by 2111. Yes, I intend to live 'till this year. So far, so good.
- 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)
According to Wolfram Alpha, you can expect to reach that post count November next year. So I think you'll live to see that.Roland_Yonaba wrote:Happy 1111th post to you.
Think i'll reach that by 2111.
Help us help you: attach a .love.
Re: What's everyone working on? (tigsource inspired)
Thanks! Hopefully you can play it soonLarsii30 wrote:Good luck !
Thank you!Roland_Yonaba wrote:Wow. Gorgeous style.
Did you make the arts by yourself ?
Yes, I did. Picking the right colors was actually the trickiest part! I used grafx2, which is IMO the finest pixel art tool around.
- 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)
Well, we never know.Robin wrote:So I think you'll live to see that.
My people may need me in the meantime.
- AntonioModer
- Party member
- Posts: 202
- Joined: Fri Jun 15, 2012 5:31 pm
- Location: Belarus
- Contact:
- 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)
Thank you.Roland_Yonaba wrote:Happy 1111th post to you.
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 0 guests