loading...

Game Off 2018 (2)

bigaston profile image Bigaston ・1 min read

Hello!
Day 2 of my report for the Game Off 2018!

Today I continue to work on the Pixel Art for my game!

I've create some flowers...
Flowers

And some seeds...
Seeds

I don't know wich flower can hybrid with other but for now I've some art!

And I've start to write some function to work with some 2D table!

function array(pRow, pCol, pDefault)
    local tab = {}

    for row=1, pRow do
        local tab_col = {}
        for col=1, pCol do
            table.insert(tab_col, pDefault)
        end
        table.insert(tab, tab_col)
    end

    return tab
end

function access(pRow, pCol, pTab)
    local col = pTab[pRow]
    local val = col[pCol]
    return val
end

function replace(pRow, pCol, pTab, pVal)
    pTab[pRow][pCol] = pVal
end

It's all for today! I think I'm going to share my advancement everyday!
Have a nice day!

Posted on by:

bigaston profile

Bigaston

@bigaston

Student in computer science, and NodeJS lover. I like to experiment new technologies and start (but not often finish) new project!

Discussion

markdown guide