Search found 5 matches

by Thief3
Tue Oct 11, 2011 7:13 pm
Forum: Support and Development
Topic: Black Screen.[Solved]
Replies: 17
Views: 5975

Re: Black Screen.[Solved]

Yeah Vector::size() does work and I knew about the 'if not foo then' and its reverse ( seems like the only thing I know in Lua ) I just prefer if foo==false then.Also for games does OOP in Love give any advantages over functional or procedural programming other than reusability.
by Thief3
Tue Oct 11, 2011 6:47 pm
Forum: Support and Development
Topic: Black Screen.[Solved]
Replies: 17
Views: 5975

Re: Black Screen.[Solved]

Yeah I guess i should start arrays with 1 but c++ is still in my head. Also I've made it zig-zagy(for lack of a better phrase.)I going to try and make a SRPG style level editor now(a simple one). For any body who wants to view my new code(I just realised i never mentioned I am using 32x32 squares to...
by Thief3
Tue Oct 11, 2011 5:43 pm
Forum: Support and Development
Topic: Black Screen.[Solved]
Replies: 17
Views: 5975

Re: Black Screen.[Solved]

function love.load() love.graphics.setMode(860,640, false, true, 0) love.graphics.setCaption("Black Screen") image = love.graphics.newImage("BlockTemplate(32x32).png") block={} for i=0,10 do block[i]={} block[i].y= 32*i block[i].x= 32*i end end function love.draw() for i=0,9 do ...
by Thief3
Tue Oct 11, 2011 3:56 pm
Forum: Support and Development
Topic: Black Screen.[Solved]
Replies: 17
Views: 5975

Re: Black Screen.

1)Yeah I get that often. Really should have neatened it up. :oops: 2)Yeah I am trying to make a small set of blocks in a diagonal setup. 3)I think I understood that, and if I did I was not trying to make 11 blocks but I was trying to do is make a table called block and then have a block.1 table with...
by Thief3
Tue Oct 11, 2011 3:01 pm
Forum: Support and Development
Topic: Black Screen.[Solved]
Replies: 17
Views: 5975

Black Screen.[Solved]

When ever I attempt to run this code (as a test): function love.load() love.graphics.setMode(860,640, false, true, 0) love.graphics.setCaption("Black Screen") image = love.graphics.newImage("BlockTemplate(32x32).png") block={} end function love.update() for i=0,10 do block.i={} b...