Search found 28 matches
- Mon Apr 22, 2019 7:32 pm
- Forum: Support and Development
- Topic: My simple game [SOLVED]
- Replies: 3
- Views: 4116
Re: My simple game
thank you for your time xugro. can you give an example for your second advice? I mean how to store player1 and player2 in one array. I am new at programming. By the way, p1.b and p1.c is just a mistake. I could just do my job with one variable.
- Mon Apr 22, 2019 3:56 pm
- Forum: Support and Development
- Topic: My simple game [SOLVED]
- Replies: 3
- Views: 4116
My simple game [SOLVED]
I wanted to share. It works with touch. You may test it in android. The screen is weird on desktop because default window size is 800x600px on pc. If you see bad pratices in the code, tell me please.
- Sun Apr 21, 2019 10:20 am
- Forum: Support and Development
- Topic: How to check if touch press is in a triangle [SOLVED]
- Replies: 2
- Views: 3787
How to check if touch press is in a triangle [SOLVED]
I use love.graphics.polygon to draw triangles. But how can I check if touch press is in a triangle?
- Sat Apr 20, 2019 2:03 pm
- Forum: Support and Development
- Topic: How to create dashed (dotted) line? [SOLVED]
- Replies: 1
- Views: 6439
How to create dashed (dotted) line? [SOLVED]
What is the simplest way to do it?
- Wed Apr 17, 2019 5:08 pm
- Forum: Support and Development
- Topic: My code does not work [SOLVED]
- Replies: 1
- Views: 6687
My code does not work [SOLVED]
Why doesn't my code work? And any suggestions? I am new to Lua. local p1 = {} local p2 = {} local p1.touch = {} local p2.touch = {} function love.load() p1.img = love.graphics.newImage('player.png') p1.x = p1.img:getWidth() / 2 p1.y = love.graphics.getHeight() / 2 p1.touch.x = p1.x p1.touch.y = p1.y...
- Tue Apr 16, 2019 7:22 pm
- Forum: Support and Development
- Topic: Multi Touch Question [SOLVED]
- Replies: 1
- Views: 6663
Multi Touch Question [SOLVED]
Does LÖVE support multi touch? If so, how can I use? Example please. Thanks in advance.
- Mon Apr 15, 2019 3:51 pm
- Forum: Support and Development
- Topic: Click to Move Question [SOLVED]
- Replies: 5
- Views: 8745
Re: Click to Move Question
tobiasvl, I tried your code it works but I want the circle to go to the target position by the minimum distance. (hypotenus distance or cross path). In this code, the circle moves on x-axis and then moves on y-axis or vice versa. How can I solve this problem? Thanks.
- Sun Apr 14, 2019 2:41 pm
- Forum: Support and Development
- Topic: Click to Move Question [SOLVED]
- Replies: 5
- Views: 8745
Click to Move Question [SOLVED]
Hello I want to do this: Player moves towards there and stops when I click somewhere. How can i achieve this? Please note that i am a bit newbie. Thanks in advance!