Search found 71 matches

by Sasha264
Sat Aug 24, 2019 11:50 am
Forum: Support and Development
Topic: Any way to get LOVE to behave with Windows' XBOX Game Bar?
Replies: 6
Views: 2062

Re: Any way to get LOVE to behave with Windows' XBOX Game Bar?

Do you have the same issue with other windowed or fullscreen games?
Like those you play in steam?
If yes so how you can live with this XBOX Game Bar at all? :huh:
by Sasha264
Sat Aug 24, 2019 11:41 am
Forum: Support and Development
Topic: Setting player scale -1 when going left?
Replies: 5
Views: 1424

Re: Setting player scale -1 when going left?

About drawing sprites: For me in 95% cases is more conveniently to calculate and store the center of the object like bullet in bullet.x and bullet.y But simple draw call like this love.graphics.draw(bullet.img, bullet.x, bullet.y) will draw the bullet with top-left corner at bullet.x, bullet.y So yo...
by Sasha264
Sat Aug 24, 2019 11:32 am
Forum: Support and Development
Topic: Setting player scale -1 when going left?
Replies: 5
Views: 1424

Re: Setting player scale -1 when going left?

About Love2d tutorials:
Here is some youtube records like this https://www.youtube.com/watch?v=FUiz1kL0QtI
Maybe you will enjoy watching it :monocle:
by Sasha264
Sat Aug 24, 2019 11:28 am
Forum: Support and Development
Topic: Setting player scale -1 when going left?
Replies: 5
Views: 1424

Re: Setting player scale -1 when going left?

About several conditions: if bullet.x&bullet.y < 0 then If you want to check several conditions in one if statement in lua you can "join" they with and or or operators, like this: if bullet.x < 0 or bullet.y < 0 then ... end if bullet.x < 0 and bullet.y < 0 then ... end For your case maybe here will...
by Sasha264
Sat Aug 24, 2019 11:16 am
Forum: Support and Development
Topic: Setting player scale -1 when going left?
Replies: 5
Views: 1424

Re: Setting player scale -1 when going left?

Welcome! :3 About flipping player: I made some changes in your code: -- Player & enviroment platform = {} player = {} --Bullets bullets = {} canShoot = true canShootTimerMax = 0.2 canShootTimer = canShootTimerMax bulletImg = nil function love.load() --Platform platform.width = love.graphics.getWidth...
by Sasha264
Sat Aug 24, 2019 10:49 am
Forum: Support and Development
Topic: What is Text object?
Replies: 4
Views: 2451

What is Text object?

Hello folks! :awesome: Here is an opportunity to create Text objects https://love2d.org/wiki/love.graphics.newText instead of drawing text every frame with https://love2d.org/wiki/love.graphics.printf Used it a dozen times and it really improves performance. But I don't understand what exactly a Tex...
by Sasha264
Sat Aug 10, 2019 1:34 pm
Forum: Support and Development
Topic: Get available video memory value
Replies: 6
Views: 3396

Re: Get available video memory value

Hello! :nyu: What sort of thing are these large cached Canvases used for, specifically? Maybe there's a different way to accomplish your goal which uses less VRAM. I have a (potentially) unlimited grid that contains objects which are affecting each other with shadows and lights and some other static...
by Sasha264
Sat Aug 10, 2019 11:51 am
Forum: Support and Development
Topic: Get available video memory value
Replies: 6
Views: 3396

Re: Get available video memory value

There are compressed texture formats btw.
Can I apply compressed texture formats to canvases somehow?
by Sasha264
Wed Jul 31, 2019 10:39 pm
Forum: Support and Development
Topic: Get available video memory value
Replies: 6
Views: 3396

Re: Get available video memory value

Thank you! For the reply.. and for the link :3 Ok, handle it by user efforts is a way :megagrin: Maybe I can suggest default limit by the table, contains video card names and available vram values... :ehem: Did not checked the texture creation fail, but canvas creation works "fine" when the limit is...
by Sasha264
Wed Jul 31, 2019 12:37 pm
Forum: Support and Development
Topic: Get available video memory value
Replies: 6
Views: 3396

Get available video memory value

Good day! :ultrahappy: https://love2d.org/wiki/love.graphics.getStats love.graphics.getStats( ) Returnes size of currently used video memory in texturememory field. Is here a way to somehow get total video memory value? Or maybe available | free value? I have some data in canvases that can be stored...