## Cthulhu Project : Let's Make Unmaintainable Code

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

### Re: Cthulhu Project : Let's Make Unmaintainable Code

*Ranguna uses Balm of Life (search Balm of Life in the link)*

This is a really good idea, but it.. died ?
Who wants to create the organization ? (we'll be using github since teams can have unlimited number of members at the price of 0 Gold) If no one offers then I'll create one, be worned thought, I still know very few about github so I might make some mistakes

BTW Lua introduced goto statements in Lua 5.2 but does LÖVE have that version ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping

veethree
Inner party member
Posts: 820
Joined: Sat Dec 10, 2011 7:18 pm

### Re: Cthulhu Project : Let's Make Unmaintainable Code

Ranguna259 wrote:BTW Lua introduced goto statements in Lua 5.2 but does LÖVE have that version ?
I know 0.8.0 uses 5.1, and as far as i can tell the 0.9.0 changelog has no mention of lua 5.2. So no.

slime
Solid Snayke
Posts: 2888
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Cthulhu Project : Let's Make Unmaintainable Code

viewtopic.php?f=3&t=76646 says: "LuaJIT is now being used by LÖVE by default. "

LuaJIT does have a few features from Lua 5.2 enabled by default, but in general it was built on top of Lua 5.1's API.

Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

### Re: Cthulhu Project : Let's Make Unmaintainable Code

Yep goto is in the list.
• goto is a keyword and not a valid variable name anymore.
Tested it and it worked on 0.9.0, yey

Before anyone creates a team on github we should know who is going to participate (right from the start), because I don't want to see a project like this with 0 members

If anyone participate I'll participate too.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping

slime
Solid Snayke
Posts: 2888
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Cthulhu Project : Let's Make Unmaintainable Code

In regular LuaJIT 2.0 (which LÖVE uses by default in 0.9.0), goto works but it can also be used as a variable name, so as to not break existing Lua 5.1 code.
If you build LuaJIT 2.0 with a special flag enabled (which the versions of LuaJIT distributed by LÖVE don't have), then goto cannot be used as a variable name anymore, which makes it more compatible with Lua 5.2. That's the line you quoted.

Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

### Re: Cthulhu Project : Let's Make Unmaintainable Code

Then we should add another rule, "goto" should not be used to name variables.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping

bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

### []

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:23 am, edited 1 time in total.
love2d.org forum removal spell: http://pastebin.com/iVqJrbKN

Nixola
Inner party member
Posts: 1941
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

### Re: Cthulhu Project : Let's Make Unmaintainable Code

bekey wrote:Why is it so important to have goto anyway? Count me in tho.
This is the Unmantainable Code project, that's why
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
li = love.image
lg = love.graphics

Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

### Re: Cthulhu Project : Let's Make Unmaintainable Code

Enough jibber jabber, lets get loving!

Code: Select all



end

function love.draw()

end

function love.update()

end

Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

### Re: Cthulhu Project : Let's Make Unmaintainable Code

Not just yet , people've said that we won't have a fixed theme but we could have a starter theme just to start up the code, using the basic LÖVE structure would be kind of vague, don't you think ? We'll need something more constructive, something that works like a mini game, a simple really small minigame, what do you guys think ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping

### Who is online

Users browsing this forum: No registered users and 4 guests