Search found 35 matches

by Buddy4point0
Mon Jan 17, 2011 5:37 pm
Forum: General
Topic: Your Favorite Programming Language
Replies: 29
Views: 3016

Re: Your Favorite Programming Language

My favorite programming language is LUA! Without a doubt... I love it!
by Buddy4point0
Mon Jan 17, 2011 1:58 am
Forum: General
Topic: Hi I'm new and I want to make a game :P
Replies: 7
Views: 1877

Re: Hi I'm new and I want to make a game :P

Hi there! I'm fairly new here too. I already knew how to program in lua when I started using love though.

Good luck and I can't wait to see what you make.
If you need any help, post it here, or if you think that I specifically can help you send me a PM!
by Buddy4point0
Sun Jan 16, 2011 8:38 pm
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

Re: What does ImageData:getPixel return exactly? (new questi

Robin wrote:
Boolsheet wrote:

Code: Select all

for w = 1, width, -1 do
Are you sure this is what you want?
I think it was

Code: Select all

for w = 1, width do
before.

Buddy4point0: I think you should change it to this:

Code: Select all

for w = 0, width-1 do
So when reading images, say a 64x64 image, I would have to read pixels 0-63 across and 0-63 down?
by Buddy4point0
Sun Jan 16, 2011 10:19 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

Re: What does ImageData:getPixel return exactly?

Ok, I looked on the Lua 5.1 Reference Manual and I don't see anything about lists. What are they and how would I use the information in it? If you don't feel like answering though, it's fine because I got it figured out thanks to Thelinx. Lists are very weak in Lua, they disappear in a puff of smok...
by Buddy4point0
Sun Jan 16, 2011 9:17 am
Forum: Games and Creations
Topic: Noah's Ark 0.7.0
Replies: 22
Views: 8383

Re: Noah's Ark 0.7.0

Even though I don't know you very well yet, congratulations!
by Buddy4point0
Sun Jan 16, 2011 9:10 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

Re: What does ImageData:getPixel return exactly?

Your function is trying to get a pixel outside of the image. This throws an exception and love quits. ImageData in love goes from 0, 0 to width-1, height-1 . To stay inside the image you could change imageData:getPixel(w,h) to imageData:getPixel(w-1,h-1) Thank you very much! I had no idea that imag...
by Buddy4point0
Sun Jan 16, 2011 6:25 am
Forum: Support and Development
Topic: How exactly does the love functions work? [more questions]
Replies: 14
Views: 1788

Re: How exactly does the love functions work? [more question

Can someone move this to the proper forum? When I wrote it I didn't know about the support forum.
by Buddy4point0
Sun Jan 16, 2011 6:23 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

Re: What does ImageData:getPixel return exactly?

So I've just written the function: function readImg(varName,fileName) local imageData = love.image.newImageData(fileName) local varName = {img = love.graphics.newImage(imageData),map = {}} local width = varName.img:getWidth() local height = varName.img:getHeight() local temp = {} for w = 1,width do ...
by Buddy4point0
Sun Jan 16, 2011 5:49 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

Re: What does ImageData:getPixel return exactly?

I like to make engines and resources for myself to use when I start using new interpreters and languages. I'll just leave this here . I totally agree with what it says. I have experienced it . I read it, and I don't agree with you or the creator of the article at all. To be more specific, I have to...
by Buddy4point0
Fri Jan 14, 2011 9:44 pm
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 4758

What does ImageData:getPixel return exactly? (new questions)

I'm making a pixel perfect collision system to use in all my future games. I like to make engines and resources for myself to use when I start using new interpreters and languages. So what I need to know is, what exactly does ImageData:getPixel return? I need to know so I can check the alpha values ...