GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Bitfighter: Parameterize Lua Constructor for TestItem and ResourceItem

completed by: Martin Bede

mentors: watusimoto, raptor

Remember to join our IRC channel when working on this task! We are on #bitfighter at We are friendly!

Your task

Parameterize Lua constructor for TestItem so one can, from a Lua script, do this:

t =,200)


t = point(100,200))

instead of this:

t =


Also... parameterize Lua constructor for ResourceItem so one can, from a Lua script, do this:

r =,200)


r = point(100,200))

instead of this:

r =


Task is complete when a levelgen script and editor plugin can create TestItem and ResourceItem with code above, and new constructors are documented. This should be a fairly easy task.