Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LUA or PyGame

Name: Anonymous 2011-11-24 13:26

I was wondering, me and my buds wanna start making a game and we wondering which language (LUA or Pygame) we should use for that. Any recommendations or information about these 2?

Name: Anonymous 2011-11-24 14:49

>>20

wups thanks you:


public static FactoringFactoryFactoryable createFactoringFactoryFactory(FactoringFactory factory)


That's true, porting back and forth between zero indecies and 1 indices is annoying and error prone, and could be completely avoided with a different design decision for the language. You could always introduce your own indexing functions:


function zset(table, index, value)
  table[index + 1] = value
end

function zget(table, index)
  return table[index + 1]
end

function zipairs(table)
  return coroutine.wrap(function()
    for i,v in ipairs(table) do
      coroutine.yield(i-1, v)
    end
  end)
end


Although that zipairs could be more efficient. I always use closures for my iterators so I can pass them around as arguments to functions.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List