The Huion Inspiroy H430P looks like an alternative for a mouse input; so more like a graphics tablet than a tablet computer. Try https://love2d.org/wiki/love.mouse.isDown and https://love2d.org/wiki/love.mouse.getPosition.
Search found 89 matches
- Fri Mar 05, 2021 6:36 pm
- Forum: Support and Development
- Topic: graphics tablet
- Replies: 14
- Views: 1619
Re: graphics tablet
- Fri Feb 19, 2021 10:54 pm
- Forum: Games and Creations
- Topic: GUI, countdown with progress bar
- Replies: 6
- Views: 1738
Re: GUI, countdown with progress bar
Nice design :) I found it a bit confusing that the "10" timer starts at "9" and stops after "0". This happens because you round down. If you round half away from from zero (commercial rounding) then the timer feels better: line.button.text = math.floor (time+0.5) .. ' s...
- Wed Jan 27, 2021 11:19 pm
- Forum: General
- Topic: attempt to perform arithmetic on field 'y' (a nil value)
- Replies: 5
- Views: 4567
Re: attempt to perform arithmetic on field 'y' (a nil value)
Please upload a .love of your game. Then we can take a look at what is going on here. Without seeing how the different classes interact we can only guess what the problem may be.
- Sun Jan 24, 2021 12:25 am
- Forum: Support and Development
- Topic: question about Love.js security
- Replies: 42
- Views: 19371
Re: question about Love.js security
Just a simple example: The game will be an image moving around with the arrow-keys. client (LÖVE): love.keypressed() for the arrow keys (send these to the server) gamestate x- and y-position (get these from the server) the image love.draw() (draw the image at the x- and y-position) server (pure lua)...
- Sat Jan 23, 2021 11:26 pm
- Forum: Support and Development
- Topic: question about Love.js security
- Replies: 42
- Views: 19371
Re: question about Love.js security
Or is it possible somehow with the networking libraries to do that? This is completely possible with the networking libraries of LÖVE. You just need a way to send input from the players computer to the server and respond with a new gamestate. Why should the networking libraries of LÖVE not work for...
- Sat Jan 23, 2021 11:13 pm
- Forum: Support and Development
- Topic: question about Love.js security
- Replies: 42
- Views: 19371
Re: question about Love.js security
But how does it work exactly? Isn't the game file only accessible by the hosting server during runtime? I will test it out soon, but from what I saw, you basically have a game.js and game.data file. It seems like the content of the code is located in the game.data file, but why would that be availa...
- Sat Jan 23, 2021 8:43 pm
- Forum: Support and Development
- Topic: question about Love.js security
- Replies: 42
- Views: 19371
Re: question about Love.js security
If you are afraid that someone will look at the source-code of your game, then do not give it to them. The concept is called Cloud Gaming. The drawback is the increased complexity and the cost of the server(s).
- Thu Jan 07, 2021 11:58 am
- Forum: Support and Development
- Topic: [Solved] Pointing at an object that's out of sight
- Replies: 14
- Views: 8602
Re: Pointing at an object that's out of sight
Yes, that is the formula to calculate the angle. But that is the easy part. Calculating the point on the border is harder. But I found a simpler in my sleep (simpler than what I thought of yesterday): calculate_intersection.jpg The first step is to find out which screen-border the pointer needs to b...
- Wed Jan 06, 2021 11:50 pm
- Forum: Support and Development
- Topic: [Solved] Pointing at an object that's out of sight
- Replies: 14
- Views: 8602
Re: Pointing at an object that's out of sight
There are many ways to do this. It depends on what you want. I can see two possibilities: A simple approach, where you just point in the approximate direction: simple.jpg Hereby you determine in which part of the playing field the object/enemy (X) is relative to the player (P): the number shown. Her...
- Sat Oct 17, 2020 7:00 pm
- Forum: Support and Development
- Topic: I searched but no answer so I have to come here and asking this coding problem
- Replies: 9
- Views: 4421
Re: I searched but no answer so I have to come here and asking this coding problem
Personally: I do not know. Can you expand on this: What do you want to achieve? I mean, like: somewords=love.graphics.newText(...) somewords=somewords:setf(wraplimit), not include using a new text to replace original text. or just: somewords=love.graphics.newFormatText(...) Okay, that I understand....