Search found 8 matches

by Griff
Sun May 19, 2024 7:21 am
Forum: Support and Development
Topic: Screen Size behavior
Replies: 1
Views: 1638

Screen Size behavior

So i am attempting to place my char at the center of the screen so I am collecting the screen size like this function love.load() sw,sh = love.window.getMode() end then i am creating a circle at the center of screen like this function love.draw() love.graphics.circle("line", sw/2, sh/2, 25...
by Griff
Sat Mar 23, 2024 9:43 am
Forum: Support and Development
Topic: Can a non-Windows peep test my love file?
Replies: 8
Views: 5168

Re: Can a non-Windows peep test my love file?

Can confirm doesn't work on android apparently you need some file called first name or something

Thought I should clarify the android keyboard is most likely not prompted and programmed.
by Griff
Fri Mar 22, 2024 3:19 pm
Forum: Support and Development
Topic: Weird Mobile Screensize Behavior
Replies: 2
Views: 5024

Re: Weird Mobile Screensize Behavior

Upon further messing around it looks like the size of the screen is 380 * 800 in portrait but the getMode() returns my phones true screen resolution.
by Griff
Fri Mar 22, 2024 2:39 pm
Forum: Support and Development
Topic: Weird Mobile Screensize Behavior
Replies: 2
Views: 5024

Weird Mobile Screensize Behavior

So this can be limited to my phone due to settings I'm unaware of but when I call getMode() it gets what should be my screen resolution, however the size I'm actually seeing is different I linked a video of what I see with my phone and a main.zip for you to look at as well. [youtube]https://youtu.be...
by Griff
Wed Feb 28, 2024 10:27 am
Forum: Support and Development
Topic: Finding which object in the table is closest
Replies: 5
Views: 3448

Finding which object in the table is closest

So I haven’t started to implement attacks yet since I’m not sure how I would figure out which enemy is actually closest to my tower. Basically I want to find the enemy closest to the tower and fire an arrow at them.
by Griff
Sat Feb 10, 2024 9:31 am
Forum: General
Topic: tileGrid function
Replies: 4
Views: 2115

Re: tileGrid function

I think https://love2d.org/wiki/ParticleSystem is not suitable for such simulation. It is a powerful system and can be used for nice effects but (as far as I am aware) there is no way to read or set the position of individual particles. So it is impossible to check for collisions between particles....
by Griff
Sun Feb 04, 2024 12:16 am
Forum: General
Topic: tileGrid function
Replies: 4
Views: 2115

Re: tileGrid function

dusoft wrote: Sat Feb 03, 2024 11:38 pm I think https://love2d.org/wiki/ParticleSystem would be good for falling sand simulation.

Sure, you can do it with tiles as well, but the physics will get difficult.
I figured I was making my life hard, don't really know how to use the particle system so time for the books
by Griff
Sat Feb 03, 2024 10:00 pm
Forum: General
Topic: tileGrid function
Replies: 4
Views: 2115

tileGrid function

I recently came across a video creating a falling sand simulator in p5, I figured löve has the resources that I could do something similar, all I managed to accomplish this far is the tile layout but I split the generation of tiles into 2 functions one to define every tile in a table and the second ...