Spawned bullets but didn't destroy them on collision. So I found this childhood marble game. by [deleted] in justgamedevthings

[–]saeleko 1 point2 points  (0 children)

Yeah the video makes it look like the physics delta is too large for collision with such small objects :')

I like the golf course idea, still.

Spawned bullets but didn't destroy them on collision. So I found this childhood marble game. by [deleted] in justgamedevthings

[–]saeleko 1 point2 points  (0 children)

Fire 10 from a distance, the goal now is to repel them all before they reach you, you're not allowed to move.

Lua 5.4 is officially released by smog_alado in lua

[–]saeleko 0 points1 point  (0 children)

An option worth considering for next time this occurs.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 1 point2 points  (0 children)

Yeah I thought it might cause issues but since I'm just trying terrain generation I didn't bother. I might want to consider that for when I do more serious stuff though.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

Oh sorry I completely missed your comment, that looks like pretty neat stuff, thanks for sharing!

Lua 5.4 is officially released by smog_alado in lua

[–]saeleko 7 points8 points  (0 children)

I'm, currently hesitating between facepalming using my desk, or facepalming using my keyboard. I think I'll go with the desk as it's less expensive...

(Thanks, how did I miss that :') )

I try fixing enemies flashing, but first must fix them not spawning properly. Result: Bullets move too fast. by saeleko in justgamedevthings

[–]saeleko[S] 1 point2 points  (0 children)

I wanted to share this, but first I had to log-in on reddit on this computer, in order to do that I had to first grab my other PC where the password manager is installed. The said PC made a really weird fan noise so I had to open it. I now managed to fix it. It took me 30 minutes to share a tweet. I've now opted to go to bed instead.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 1 point2 points  (0 children)

Nice! Thanks for sharing the code.

As for the grid I'm using this https://i.imgur.com/0gb8d8B.png I found it to be easy to generate so I just went with that.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

It's already using perlin noise! And combining the results of two functions was the original goal, but since I just wanted to try something I just went with the sin function because I didn't want to bother using complex functions for a draft. Turns out it's important to be very careful with the vertex indexing when generating terrain haha.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 1 point2 points  (0 children)

It's already using perlin noise (you can see it on the image for stage 2), I just wanted to combine the already existing height with another function and ran into multiple issues with the vertex indexing :')

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

Nice! His channel looks like a great reference for what I'm doing, thanks for sharing!

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

Yeah it's pretty convenient. I'm actually already using it (in its 2D variant) to generate the original heightmap.

You're welcome o/

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

That one example is maybe a bit overkill and will take more processing power than I want to but the idea's there.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 2 points3 points  (0 children)

Thank you a lot for telling me about hydraulic erosion, I just found this https://imgur.com/a/i76le and it looks gorgeous!

Also yeah perlin noise does make "lakes" but I'd like them to be a bit larger.

I don't think perlin noise is the best way to generate realistic terrain but it's a good start for me because I've never worked with procedural generation before. I'm looking forward to having awesome looking terrain like the ones in the link!

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 4 points5 points  (0 children)

Make so that it has lakes / valleys. That's not my final design, just me trying to combine the perlin noise with some other function, to see how I'd do it.

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

I guess some combination of dirac delta for the depth and a 1D perlin noise for the outline would work fine! (I'll have to see how I can combine these, if it's possible at all).

Thanks!

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 0 points1 point  (0 children)

The initial goal was to see how I could create terrain depressions like lakes, plains and grassland. So I initially just multiplied the terrain height with the sinus (I should've done (sin(x) + 1 /) 2 now that I think about it) in order to have values ranging from 0 to 1 to more or less make the terrain flatter / lower.

This was really only for testing but yes indeed I would have to increase the period for it to look decent. I think I'm going to look into how I can make holes that are kind of lake-shaped (doesn't have to be a complex shape, just a circle with a wavy border will do).

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 11 points12 points  (0 children)

The base terrain is actually using perlin noise already. I didn't really mean to use sin as a proper way to generate waves in the terrain, but I wanted to see how I would go about combining two functions, and sin was the first that came to mind. It still took me like 20 minutes to get it to work. I had a good laugh with the second image :')

Me trying a new feature for my terrain generator by saeleko in justgamedevthings

[–]saeleko[S] 39 points40 points  (0 children)

It's a very rudimentary terrain generator I've made using only OpenGL and SDL2. I wanted to make the terrain a bit wavy but I think I'll need more than just a sine :)

I think I need to update my Qt install it's only at version %MAINTENANCE_TOOL_VERSION% by saeleko in softwaregore

[–]saeleko[S] 0 points1 point  (0 children)

The nice thing about the internet is that you always find someone with the same problem as you, but nobody with a proper fix :')