Search found 37 matches

by SirRanjid
Wed Jan 10, 2018 7:53 pm
Forum: Support and Development
Topic: Multicore/Threading help?
Replies: 7
Views: 4731

Re: Multicore/Threading help?

Wow. Thanks for that explanation. I think I kinda get it. But all have essentially the same idea. Data is copied. One way to do this is by creating a queue or stack which points at data. By doing so we first copy the data and then simply push the reference onto the stack. That's what's happening her...
by SirRanjid
Wed Jan 10, 2018 3:01 pm
Forum: Support and Development
Topic: Multicore/Threading help?
Replies: 7
Views: 4731

Multicore/Threading help?

Hello I tried wrapping my mind around outsourcing tasks to other threads for efficiency reasons. But I never made something like it before and I can't get the basic concept to work in my mind. Suppose having stuff drawn that shuld be calculated on another thread. My intuition would be like(semi-pseu...
by SirRanjid
Thu Dec 28, 2017 11:44 am
Forum: Support and Development
Topic: 2d arrays of arbitrary size
Replies: 6
Views: 2807

Re: 2d arrays of arbitrary size

A bit more optimized would be having a table like you mentioned that stores chunks of predefined sized 2d tables which use ivans method. bigtable = { [x64] = { [y64]= {["x64y64"] = {[x+y*64] = {<TILE>}}} } } Just load/generate chunks from that bigtable as you need them for rendering. This makes it m...
by SirRanjid
Tue Dec 26, 2017 12:48 pm
Forum: Support and Development
Topic: Make speed constant no matter the FPS
Replies: 5
Views: 1798

Re: Make speed constant no matter the FPS

My guess would be you're using the dt of the update function inside the draw.
by SirRanjid
Mon Dec 25, 2017 11:34 am
Forum: Support and Development
Topic: Noborder Window Size
Replies: 1
Views: 584

Noborder Window Size

So I have a simple Border/Noborder toggle button which works but I'd rather have the noborder-window the size of the normal window + the border.

Image

Is there a way to get the size of the widow border? Or at least a smarter solution than measuring it for any os?
by SirRanjid
Wed Dec 20, 2017 6:16 pm
Forum: Support and Development
Topic: shader that leaves trails behind objects like like lightworld does
Replies: 7
Views: 2380

Re: shader that leaves trails behind objects like like lightworld does

I've just come to a similar problem here's my try on it: First create some canvases in an array (i just used 10) local tcvs = {} local tcvsp = 1 --moving array index for I = 1 , 10 do tcvs[I] = love.graphics.newCanvas( ) end Then in the draw functionI do something like this (the functions lack love....
by SirRanjid
Fri Dec 15, 2017 4:34 pm
Forum: Support and Development
Topic: Saving a game
Replies: 6
Views: 2120

Re: Saving a game

I've made a more general purpose data save/load script, which relies on serpent (MIT license) as serializer. Here you can find it. Basic usage: (nm is the name of the data table and the savefile like %appdata%/data/<nm>.txt) GAME.EZF:CreateNewData(nm[,tbl]) --creates a new data table for data to sto...
by SirRanjid
Wed Dec 06, 2017 10:05 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1711
Views: 650253

Re: What's everyone working on? (tigsource inspired)

Buttons and stuff have dynamic sizes so I made the window small for a small video size...



GIF: https://imgur.com/a/fnK8H
by SirRanjid
Sun Dec 03, 2017 7:11 pm
Forum: Games and Creations
Topic: Sokoban clone
Replies: 13
Views: 5383

Re: Sokoban clone

@grunk: Yeah since you still have esc to go back. Automatically loading would keep your players longer playing your game without thinking about it^^ Reacting to music can be done with some FFT magic applied to the up and right direction of the audio from love.audio.getOrientation I guess (getting mo...
by SirRanjid
Thu Nov 30, 2017 1:13 pm
Forum: Games and Creations
Topic: Sokoban clone
Replies: 13
Views: 5383

Re: Sokoban clone

How about automatically loading the next level once solved and use the dis-/assemble as transition animation more seamlessly? Also when adding sounds how about making those flying particles react to it and having some in the background like a stream? I could imagine it adding to the atmosphere. But ...