Search found 58 matches

by Lua Hal
Thu Jul 14, 2011 7:47 pm
Forum: Support and Development
Topic: Map reading?
Replies: 5
Views: 1254

Re: Map reading?

vrld wrote:Did you read it?
Oops, I found some relevant information in
ImageData:getPixel
by Lua Hal
Thu Jul 14, 2011 7:27 pm
Forum: Support and Development
Topic: Map reading?
Replies: 5
Views: 1254

Re: Map reading?

TechnoCat wrote:Have you looked at love.image.newImageData and ImageData:getPixel yet? I think you should. :awesome:
Second link is broken, and I don't see the relevance of the first one, could you put it into context?
by Lua Hal
Thu Jul 14, 2011 6:31 pm
Forum: Support and Development
Topic: Map reading?
Replies: 5
Views: 1254

Map reading?

In my games so far, I've always read the map from a text file, but I've found as the maps get bigger it is more difficult to understand what the map will look like, so alternatively I'd like to read from an image file, where different colored pixels stand for a tile. Unfortunately, I have no idea to...
by Lua Hal
Thu Jul 14, 2011 5:47 pm
Forum: Support and Development
Topic: What is wrong with this formula?
Replies: 6
Views: 1848

Re: What is wrong with this formula?

No, I want it to use the normal positioning, not off of the origin. You need to offset by the size of the image, not the size of the screen. There were some other bad things in your code tentus didn't fix as well. function dwr(object,X,Y,rotation,flipx,flipy) --ENUM, number, number, number, bool, b...
by Lua Hal
Thu Jul 14, 2011 4:26 pm
Forum: Support and Development
Topic: What is wrong with this formula?
Replies: 6
Views: 1848

Re: What is wrong with this formula?

No, I want it to use the normal positioning, not off of the origin.
by Lua Hal
Thu Jul 14, 2011 4:10 pm
Forum: Support and Development
Topic: What is wrong with this formula?
Replies: 6
Views: 1848

What is wrong with this formula?

function dtr(degrees) return math.pi*degrees/180 end function dwr(object,X,Y,rotation,flipx,flipy) --ENUM, number, number, number, bool, bool if flipx == true then numx=-1 else numx=1 end if flipy == true then numy=-1 else numy=1 end height=love.graphics.getHeight() width=love.graphics.getHeight() ...
by Lua Hal
Thu Jul 14, 2011 1:01 am
Forum: Support and Development
Topic: I'm new to Lua, and do not understand what I'm doing wrong.
Replies: 16
Views: 8009

Re: I'm new to Lua, and do not understand what I'm doing wro

I don't understand, how would I make newNPC{ a function? I see how the "parsing" works, but how will I make it work for me? Appended code: function npcparse() love.filesystem.load("config.txt")() end function love.draw() npcparse() h=data[1] love.graphics.print(h["name"...
by Lua Hal
Wed Jul 13, 2011 8:06 pm
Forum: General
Topic: GUI libraries...
Replies: 43
Views: 12528

Re: GUI libraries...

Yes, I would like a GUI library, I tried writing a menu for an RPG I was going to make, and it was insanely long.
by Lua Hal
Wed Jul 13, 2011 8:01 pm
Forum: General
Topic: has anyone made an API for rotation?
Replies: 12
Views: 4798

Re: has anyone made an API for rotation?

Yes, but it rotates around the center of the screen, I want to rotate around the center of the object.
by Lua Hal
Wed Jul 13, 2011 7:59 pm
Forum: Support and Development
Topic: Quads and artifacts from sprite sheets
Replies: 8
Views: 5736

Re: Quads and artifacts from sprite sheets

Your game is awesome dude.

I'd recommend a non-white background and some way to heal.

Also, my highscore is 250. :)