Search found 85 matches
- Sun Dec 16, 2018 11:06 am
- Forum: General
- Topic: Lua Randomness Library
- Replies: 12
- Views: 8949
Re: Lua Randomness Library
Yeah, I don't need cryptography. I just figured it would be safe to go with a CSPRNG, because it sounds more random than a regular RNG. Now, I have booted up LOVE2D a couple of times, I think it was with a thing that I coded as a test project for changing the background color to random colors (it wo...
- Sat Dec 15, 2018 5:16 am
- Forum: General
- Topic: Sending Data/World to/from users
- Replies: 1
- Views: 2051
Sending Data/World to/from users
Hello, So I am working on a game that heavily uses love.physics, and have been programming for the client. However, I plan to start programming for the server, and am not sure what to do for this, since I have to fit either the World object into a string, then into Lua-enet, then taking the string a...
- Sat Dec 15, 2018 1:30 am
- Forum: Support and Development
- Topic: How to Stop a Thread
- Replies: 5
- Views: 3845
Re: How to Stop a Thread
So all of the solutions mentioned on the forums here no longer work, as you cannot use Thread:set(), nor Thread:kill() anymore. I would love to code safety measures, but I can't seem to think of any way that I can make sure a thread is safe. Let's say that on one particular line of code that is exec...
- Sat Dec 15, 2018 12:24 am
- Forum: General
- Topic: Lua Randomness Library
- Replies: 12
- Views: 8949
Lua Randomness Library
Hello, In my game, it would be super useful if I could get a really good randomness library. Now, I know Lua has math.random and LOVE2D has love.math.random, but I haven't really been impressed by either pseudo random number generator/algorithm. It is too predictable. I've done a little bit of resea...
- Wed Dec 12, 2018 5:09 pm
- Forum: General
- Topic: Using io.read() without halting the game
- Replies: 3
- Views: 4950
Using io.read() without halting the game
Hello, So I would like to use io.read() in my game, as it allows the user to input commands using the terminal approach. This is a great feature for my server edition of my game. However, I do not want to bring the entire game to a halt. I tried slapping io.read() on its own thread, and was planning...
- Mon Dec 03, 2018 3:16 am
- Forum: General
- Topic: server/client with/without graphics/window
- Replies: 1
- Views: 2158
server/client with/without graphics/window
Hello, So I am interested in running my game's servers on LOVE2D. I plan to be able to slap it on something like a Ubuntu Server. With that, I would like to make my game all run on practically the same code. So the server package would be the same package as the client package, no need to download s...
- Fri Nov 09, 2018 7:50 pm
- Forum: General
- Topic: Getting LOVE2D to run faster and AI stuff
- Replies: 6
- Views: 5708
Re: Getting LOVE2D to run faster and AI stuff
You can use body:setBullet to mitigate the tunneling. A constant timestep is highly recommended if you expect stable behavior for joints. Love2D itself is already fast, but you can use profiling to optimize your Lua scripts. Good luck! You can use body:setBullet to mitigate the tunneling. Yes, I kn...
- Fri Nov 09, 2018 7:28 pm
- Forum: General
- Topic: Getting LOVE2D to run faster and AI stuff
- Replies: 6
- Views: 5708
Re: Getting LOVE2D to run faster and AI stuff
I don't recommend Python for performance-critical purposes. I actually don't intend to use Python to run the game. The server will serve the client using LOVE2D/Lua with standard/universal protocols, Python (possibly) will be running the AI that connects to the server. I am choosing to write this g...
- Fri Nov 09, 2018 6:36 am
- Forum: General
- Topic: Getting LOVE2D to run faster and AI stuff
- Replies: 1
- Views: 2210
Getting LOVE2D to run faster and AI stuff
Hello, I am currently working on a game and I'm interested in getting into artificial intelligence at some point, and making "fake" players in my game so when it starts off, players don't instantly quit because there aren't any players on the server. Anyway, I am using LOVE's default physi...
- Fri Nov 09, 2018 6:35 am
- Forum: General
- Topic: Getting LOVE2D to run faster and AI stuff
- Replies: 6
- Views: 5708
Getting LOVE2D to run faster and AI stuff
Hello, I am currently working on a game and I'm interested in getting into artificial intelligence at some point, and making "fake" players in my game so when it starts off, players don't instantly quit because there aren't any players on the server. Anyway, I am using LOVE's default physi...