Just like that ^ thread says, this idea is based on this: http://www.gamedev.net/topic/649258-the ... ts-are-in/
We'll be keeping the same rules which are:
- I will post a basic skeleton main.lua file.
- Posts here will act as a kind of revision (un)control system, each post a "commit"
- You must attempt to amend the current version of the code
- The code change for a single "commit" should be relatively small and cohesive - add or change a single feature at most
- Posts should highlight what was changed
- Posts should include the full source of the program so far
- The program will be in a single file only
- Dependencies are limited to the standard library and the multimedia library only. No OS-specific calls
- Assets may be attached to your post, they should be free of copyright restrictions
- You can only add new code, not alter or remove existing code
- You may, however, alter numeric or string constants in existing code
- You may add code into existing lines:
- Add a new clause to a condition
- Add to an existing expression
- Add parameters to existing function declaration/definition/call sites
- Adding -- at the start of a line is allowed by this rule (?) (but keep it limited to 1 or 2 per commit?)
- You may also "insert" a newline after a --, thus uncommenting such code
- The code must not crash, to the best of your ability
- Bad commits are ignorable under the "amend the current version" rule
So, I will start:
Code: Select all
--Collaborative Coding Horror Experiment
--Commit 1
function love.load()
player = Player(100,100)
end
function love.update(dt)
end
function love.draw()
player.draw()
end
function love.keypressed(key)
end
function love.keyreleased(key)
end
function love.mousepressed(x,y,button)
end
function love.mousereleased(x,y,button)
end
function Player(x,y)
local self = {x=x,y=y}
function self.draw()
love.graphics.setColor(30,80,120)
love.graphics.circle("fill",self.x,self.y,50,50)
love.graphics.setColor(255,255,255)
love.graphics.circle("fill",self.x-25,self.y-15,5,50)
love.graphics.circle("fill",self.x+25,self.y-15,5,50)
love.graphics.arc("fill",self.x,self.y+10,20,-0,math.pi)
end
return self
end
Github
Don't be afraid to join this because you're not 'good enough'. Who cares if your code is bad? That's the whole idea of your project anyway. As long as your code works, it's never a bad for this experiment.
Let's make something horrible and fun!