Search found 6 matches

by Styper
Wed Aug 22, 2018 12:52 am
Forum: Support and Development
Topic: Leaving Fullscreen doesn't restore original window size
Replies: 4
Views: 3380

Re: Leaving Fullscreen doesn't restore original window size

This feels like a bug, I'm getting the same results on Linux with Love 11.1. I'm using a Lenovo ThinkPad T430.

Using love.window.setMode instead of setFullscreen I get mixed results, sometimes it works sometimes it doesn't.
by Styper
Sun Aug 12, 2018 3:46 pm
Forum: Support and Development
Topic: Canvas VS Directly drawing to the screen
Replies: 0
Views: 1557

Canvas VS Directly drawing to the screen

I have a project where I'm drawing 25 lines on the screen, I thought a canvas would increase the performance of this task but I'm actually getting poorer results How come this? function love.draw() line5() --This has 25 draw lines inside end Performs better than this? function love.load() canvas = l...
by Styper
Sun Jul 29, 2018 7:01 pm
Forum: Support and Development
Topic: [SOLVED] setColor usage
Replies: 4
Views: 6053

Re: setColor usage

pgimeno wrote: Sun Jul 29, 2018 3:32 pm If you mean that love.graphics.scale doesn't work when you use it in the love.resize event, that's because right before calling love.graphics.draw, the transform is reset.
Thank you, that settles it!
by Styper
Sun Jul 29, 2018 1:45 pm
Forum: Support and Development
Topic: [SOLVED] setColor usage
Replies: 4
Views: 6053

Re: setColor usage

It wasn't applied to the whole screen. It just became the CURRENT colour in the end. So, on the next iteration it is applied to love.graphics.draw(background, 0, 0) Be sure to set WHITE colour before drawing your BG picture. read manual ^__^ Thank you very much, it worked. On a side question, how c...
by Styper
Sun Jul 29, 2018 12:17 pm
Forum: Support and Development
Topic: [SOLVED] setColor usage
Replies: 4
Views: 6053

[SOLVED] setColor usage

Hello, I'm new to LUA and Love2D and I'm getting this problem, I've tried searching for an answer already but no luck. When I use graphics.setColor it's coloring my "background" image too. Here's my code: function love.draw() love.graphics.scale(love.graphics.getWidth()/800, love.graphics....