Search found 345 matches

by Zilarrezko
Wed Jan 28, 2015 8:39 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 408859

Re: "Questions that don't deserve their own thread" thread

Bindie wrote:Thanks ok. So anytime I want code executed from pressing a key a single time, I have to write it inside the love.keypressed function. That works.
assuming you don't have love.keyboard.setKeyRepeat set to true, than yes.
by Zilarrezko
Wed Jan 28, 2015 6:29 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 408859

Re: "Questions that don't deserve their own thread" thread

Let's say if I need to use it to more than one thing, if Machine.on == true and love.keypressed(key) then Machine.on = not Machine.on end It seems I have missed something. How do I use it like a return true when I hit a certain key? would if Machine.on == true and love.keypressed(key) then Machine....
by Zilarrezko
Tue Jan 27, 2015 2:22 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 408859

Re: "Questions that don't deserve their own thread" thread

'snip' He could also replace if signature = true then print(signaturetext) else print("Error: Signature Not Found") end with if signature == true then print(signaturetext) else print("Error: Signature Not Found") end To not get an error. though um... If he wanted to control whet...
by Zilarrezko
Thu Jan 22, 2015 4:26 pm
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

Yeah I would imagine that just modulusing os.time would easily solve that.

I think my problem there was that I wasn't using an inverse for scale. Such as 1000 or 3000 appose to 1/1000 or 1/3000
by Zilarrezko
Thu Jan 22, 2015 10:26 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

The rules you use aren't the same as in the tutorial: if Tile.Alive and NeighborsAlive <= 3 then                World[X][Y].Alive = false             end             if not Tile.Alive and NeighborsAlive >= 5 then                World[X][Y].Alive = true             end Yeah I played with it until it...
by Zilarrezko
Thu Jan 22, 2015 9:22 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

Played with some of the possibilities: noise3.png Right as I was writing this, you responded. I wasn't treating the edges as alive. Something weird I think, I had the 45% thing switched. But it might have been more than that.... If someone wants the source code. Here it is. (Copied directly, sorry i...
by Zilarrezko
Thu Jan 22, 2015 8:29 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

to simplify the 2 link: 1) create an implementations of life like cellular automata algorithm (Conway's game of life) 2) Apply a s345678b5678 rule (cells survive if they have 3 or more neighbors and are born with 5 or more) 3) Run the algorithm for about 5 steps on a noise in winch about 45% of the...
by Zilarrezko
Thu Jan 22, 2015 7:26 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

Actually that second link is exactly what I was imagining my end product of what the terrain generation would look like for cliff faces and ground. I'm not sure how I can implement it into seamless procedural generation, but it's definitely a good start. Can't wait to translate the code. Although, I...
by Zilarrezko
Thu Jan 22, 2015 6:54 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Re: Help On Procedural Generation

I see, using the 3 dimensional noise and a seed as a Z is pretty clever. Looks like a good base, though a little too random for my taste. I could probably think of some things to make a clump of mountain tiles be together, and surround and all water tiles with sand, and keep mountain tiles away from...
by Zilarrezko
Thu Jan 22, 2015 3:04 am
Forum: General
Topic: Help On Procedural Generation
Replies: 12
Views: 12857

Help On Procedural Generation

So, for the past few days. I've been frantically looking for methods on procedural generation and random generation. To be honest, I've found so much stuff on island generation, Dungeon and cave generation, and generation for platformer games. (Some of it is pretty interesting) So I tried to sit dow...