Search found 92 matches

by keharriso
Sat Feb 16, 2019 6:01 pm
Forum: Games and Creations
Topic: snake12
Replies: 6
Views: 11424

Re: snake12

Nice, fun, simple game. Novel idea, good execution, I like it. I could only get 4 points, though. Also, you might want to consider adding a .love download for Linux and Mac users.

EDIT: New top score is 8
by keharriso
Sat Feb 16, 2019 1:12 am
Forum: General
Topic: May love2d planned move to github?
Replies: 20
Views: 19372

Re: May love2d planned move to github?

I'd like to think the LÖVE community can have a proper discussion without resorting to personal attacks.
by keharriso
Fri Feb 15, 2019 10:00 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 27
Views: 26507

Re: Scenes/Views/Activities question

OK, how's this: -- state.lua local state = nil local states = {} local State = { set = function (name) state = states[name] end, get = function () return state end } local function register(name, state) states[name] = state(State) end register("stateA", require "stateA") register...
by keharriso
Fri Feb 15, 2019 9:27 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 27
Views: 26507

Re: Scenes/Views/Activities question

I'm not entirely sure what you mean by being "stuck with main.lua", or exactly what a "scene/view/activity manager" looks like to you. If you're looking for a way to swap out your love.update/love.draw/etc. functions, there's no magic here. Just make a table of the functions you ...
by keharriso
Fri Feb 15, 2019 12:26 am
Forum: Support and Development
Topic: I'm searching for an easy way to create button
Replies: 2
Views: 2326

Re: I'm searching for an easy way to create button

If you just want a button and no other UI, then the simplest solution is to check if the mouse was pressed in the borders of the button. Something like: local buttonBounds = {x = 10, y = 10, width = 200, height = 80} function love.draw() love.graphics.setColor(1, 0, 0) love.graphics.rectangle("...
by keharriso
Thu Feb 14, 2019 10:54 pm
Forum: Support and Development
Topic: I just didn't noticed a thing (SOLVED)
Replies: 9
Views: 3998

Re: I may have found a bug (or I just need a little help)

MightyPancake wrote: Thu Feb 14, 2019 10:51 pm Yup, it's working all fine! Thanks for helping my, I'm new and dumb I know ;P I need to learn, thanks for sharing knowledge and taking time Your time! I really appreciate it, I wouldn't handle it myself. Have a great day/night! ;)
You are completely welcome!
by keharriso
Thu Feb 14, 2019 10:44 pm
Forum: Support and Development
Topic: I just didn't noticed a thing (SOLVED)
Replies: 9
Views: 3998

Re: I may have found a bug (or I just need a little help)

What version of LÖVE are you using? If you're using v0.10.2 or earlier, you need to use

Code: Select all

love.graphics.setColor(255, 255, 255)
instead of

Code: Select all

love.graphics.setColor(1, 1, 1)
by keharriso
Thu Feb 14, 2019 10:34 pm
Forum: Support and Development
Topic: I just didn't noticed a thing (SOLVED)
Replies: 9
Views: 3998

Re: I may have found a bug (or I just need a little help)

Hey, thanks! I knew it was just me messing up everything :P Thanks for noticing the issue By the way, is there something wrong in renaming files from .PNG to .jpg And vice-versa? Besides compression? Well the simple truth is that .JPG and .PNG files are different file formats. You can't make a .PNG...
by keharriso
Thu Feb 14, 2019 9:55 pm
Forum: Support and Development
Topic: I just didn't noticed a thing (SOLVED)
Replies: 9
Views: 3998

Re: I may have found a bug (or I just need a little help)

The problem is you're using setColor(0, 0, 0) for drawing the image. You want setColor(1, 1, 1) for all images unless you're intentionally tinting them. Change your draw function to this: function love.draw() love.graphics.setColor(1, 1, 1) love.graphics.draw(image, imgx, imgy) love.graphics.setColo...
by keharriso
Thu Feb 14, 2019 1:45 am
Forum: General
Topic: May love2d planned move to github?
Replies: 20
Views: 19372

Re: May love2d planned move to github?

Just want to point out that this was 20 years ago. And they repeated 15 years ago, in 2004. After they were found guilty, they kept doing the same nevertheless, and it wasn't until 2009, just 10 years ago, that the issue got settled, see https://en.wikipedia.org/wiki/European_Union_Microsoft_compet...