Search found 2 matches

by ricande
Wed May 13, 2020 1:42 pm
Forum: General
Topic: Tiles, arrays and quads
Replies: 3
Views: 3980

Re: Tiles, arrays and quads

Here's a re-implementation of your code. Take note of my usage of tile[x][y] compared to your tile[x,y] in your first Loop... and the tile[x] = {} before that. I also don't know the context of your tile(x,y) in love.draw(), so I also converted it to tile[x][y]. You understood me perfectly! <3 Thank...
by ricande
Wed May 13, 2020 12:41 pm
Forum: General
Topic: Tiles, arrays and quads
Replies: 3
Views: 3980

Tiles, arrays and quads

I'm trying to read an image as an array. The image is 600*200px I need an array in two dimensions. x and y All tiles are 100px both x and y. - - - - - - - - | | | | | | | - - - - - - - - | | | | | | | - - - - - - - - As a test i would like to write it to the screen. Here is what i got. img = love.gr...