Search found 90 matches

by Xii
Fri May 07, 2021 8:54 pm
Forum: General
Topic: What is your advice for saving game state?
Replies: 6
Views: 199

Re: What is your advice for saving game state?

I use moonblob . Makes it easy to save/load any table from disk. local writer, reader = require("BlobWriter"), require("BlobReader") local filesystem_identity = "68841bcfb1b0c875" state = {} function save_state() love.filesystem.setIdentity(filesystem_identity) local bl...
by Xii
Mon May 03, 2021 8:45 pm
Forum: Support and Development
Topic: Coordinates for lines vs points (and pixel grid alignment for points)
Replies: 20
Views: 1758

Re: Coordinates for lines vs points (and pixel grid alignment for points)

In particular, double-precision floating-point numbers can exactly represent all integers from -9007199254740992 to 9007199254740992 inclusive. The first integer they can't exactly represent is 9007199254740993 = 2^53 + 1. Oh, ok. I've been taught to never assume floating point is exact, ever. :cra...
by Xii
Mon May 03, 2021 8:42 pm
Forum: Support and Development
Topic: How to Generate Gibberish voices
Replies: 14
Views: 561

Re: How to Generate Gibberish voices

Record short voice samples, then play them randomly in rapid succession.

Actual AI generated gibberish is a new technology that hasn't matured yet. A couple years out.
by Xii
Mon May 03, 2021 4:42 pm
Forum: General
Topic: What is your development cycle and how to avoid 'defeat'
Replies: 9
Views: 982

Re: What is your development cycle and how to avoid 'defeat'

4vZEROv wrote: Sun May 02, 2021 5:22 pm What a nice way to burn out !
Can you expand on this? Why would that lead to burnout?
by Xii
Mon May 03, 2021 4:36 pm
Forum: Support and Development
Topic: Coordinates for lines vs points (and pixel grid alignment for points)
Replies: 20
Views: 1758

Re: Coordinates for lines vs points (and pixel grid alignment for points)

if you specify (2,2) for drawing a primitive of any type, be it a point, line or triangle, then pixel [2,2] in the surface should be unconditionally targetted. There is no "pixel [2,2]". At coordinate [2,2] is the upper left corner of the square region covering [[2,2],[3,3]]. The exact ce...
by Xii
Sun May 02, 2021 2:34 pm
Forum: General
Topic: What is your development cycle and how to avoid 'defeat'
Replies: 9
Views: 982

Re: What is your development cycle and how to avoid 'defeat'

Work has to be the first thing you do when you wake up.

The instant you watch a video or play a game you'll do nothing else all day.

Try doing a little work every day. Make it a habit. Then start pushing the length and scope up.
by Xii
Wed Apr 21, 2021 10:33 am
Forum: Support and Development
Topic: Getting a server for a love2d game
Replies: 31
Views: 20380

Re: Getting a server for a love2d game

Check your spelling. receive is a tricky word to get right. re-ce-ive
by Xii
Wed Apr 14, 2021 11:15 am
Forum: Libraries and Tools
Topic: An Easy to Integrate In-Game Console
Replies: 2
Views: 729

Re: An Easy to Integrate In-Game Console

Looks simple, clean, and very useful, indeed. Thanks for sharing, will probably use. :)
by Xii
Mon Apr 12, 2021 9:52 pm
Forum: Support and Development
Topic: Multidimentional arrays/Tables
Replies: 14
Views: 1873

Re: Multidimentional arrays/Tables

milon wrote: Mon Apr 12, 2021 8:07 pm You can also use the # prefix to get the size of a table
Note though that it only counts the elements from index 1 up until the first nil.
by Xii
Sun Apr 11, 2021 8:59 pm
Forum: General
Topic: SDL_GameControllerDB on Ubuntu
Replies: 2
Views: 811

Re: SDL_GameControllerDB on Ubuntu

I'm not going to watch a video to see the code. Post it.