Search found 112 matches

by Xugro
Sun Apr 10, 2022 2:00 pm
Forum: Support and Development
Topic: my code dose not work HELP!!!
Replies: 4
Views: 2465

Re: my code dose not work HELP!!!

Just add one "end" at the end of your source code and it works. I can use wasd to move around and every so often an enemy spawns and falls down. One simple tip: Format your source-code so that you can read it easier. After formatting it was obvious that an "end" was missing. I at...
by Xugro
Fri Jul 02, 2021 11:00 pm
Forum: General
Topic: Optimization issues -- How do I keep my game from lagging?
Replies: 4
Views: 7423

Re: Optimization issues -- How do I keep my game from lagging?

I used ProFi to profile your game. The report is attached. It is not much, because I only ever get three frames before your fixed timestamp accumulator updates itself to death. Here are some timings around player:update(dt) : accumulator: 0.00076811399776489 [ProFi] Report written to MyProfilingRepo...
by Xugro
Tue Apr 20, 2021 8:19 pm
Forum: General
Topic: Curius experimental project: block chains
Replies: 1
Views: 3805

Re: Curius experimental project: block chains

All you need is a network (e.g. lua-enet ) and some hash-function (e.g. love.data.hash ). Choose the difficulty for mining low enough and you should not have any problems. You can even start multiple peers on a single machine if you use different ports. For a proof-of-concept just use löve/lua. If y...
by Xugro
Fri Mar 05, 2021 6:36 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9833

Re: graphics tablet

GVovkiv wrote: Fri Mar 05, 2021 5:14 pm Well, for huion h430p it returns nothing
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.
by Xugro
Fri Feb 19, 2021 10:54 pm
Forum: Games and Creations
Topic: GUI, countdown with progress bar
Replies: 6
Views: 5950

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...
by Xugro
Wed Jan 27, 2021 11:19 pm
Forum: General
Topic: attempt to perform arithmetic on field 'y' (a nil value)
Replies: 5
Views: 9128

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.
by Xugro
Sun Jan 24, 2021 12:25 am
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 31971

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)...
by Xugro
Sat Jan 23, 2021 11:26 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 31971

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...
by Xugro
Sat Jan 23, 2021 11:13 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 31971

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...
by Xugro
Sat Jan 23, 2021 8:43 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 31971

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).