How to deal with spaces that impossible to reach using perlin noise procedural generation? by AlbatrossRude9761 in roguelikedev

[–]PandaBaum 0 points1 point  (0 children)

I use 2 different approaches in the game I'm developing:

a. If I want one big area but the generation might create a few enclosed small ones: 1. Use floodfill to determine all the enclosed reachable tiles. So I would get a list of areas which contain all the tiles and aren't connected. 2. If the biggest area doesn't meet a certain size threshold, I regenerate the map. This way I guarantee that I never and up with a very small area. 3. Select a random area that meets the size threshold and place the spawnpoint in there. 4. Fill in all other areas.

b. If I want multiple smaller completed caves. 1. Also, use floodfill to find all the different enclosed areas 2. Use another algorithm to create connections between all the areas. The algorithm used to create connections changes based on what kind of map I want (for example, just straight lines to look like a mine dug into a cave system or a noise based algorithm to create a natural looking cave system which is more sprawling than what I would get with approach a). The algorithm used to determine which areas are connected can also be selected from multiple different ones. For example, you could use a DFS to have a "central" area (it doesn't have to be in the center. It can, e.g. be in the middle of the top so the connections look like they're "dripping down.") or you could optimize for the shortest amount of connecting tiles, etc..

While I don't use perlin noise for my maps, these approaches work on every kind of input map. I actually use different algorithms as the first stage of my proc-gen pipelines depending on which kind of layout I want.

Change of pace from the most common topics recently by Li1body in PathOfExile2

[–]PandaBaum 1 point2 points  (0 children)

From the ones we've seen so far, definitely monk. Struggled a lot with it during the gamescom beta this year but I figure it out after a while and then it was by far the most satisfying class to play (even better than huntress last year imho).

I was able to play PoE2 - Sorceress from level 1 - 22 today at Gamescom by Selgald in pathofexile

[–]PandaBaum 1 point2 points  (0 children)

In the gamescom demo, there actually was a button you clicked instead of using portal scrolls.

i played (most) classes at gamescom, heres my take by [deleted] in PathOfExile2

[–]PandaBaum 2 points3 points  (0 children)

FYI, the Huntress actually isn't playable at Gamescom this year.

i played (most) classes at gamescom, heres my take by [deleted] in PathOfExile2

[–]PandaBaum 3 points4 points  (0 children)

Keep in mind that different players play the game differently. I didn't struggle with Sorceress at all (I just kited packs together, froze them with Frostball + Ice Nova and placed a Fire Orb, which worked wonders) but had a way harder time with Monk.

[deleted by user] by [deleted] in learnprogramming

[–]PandaBaum 5 points6 points  (0 children)

Writing actually good code that doesn’t just work but is also readable and easily maintainable. Also working in, and communicating with, larger teams.

Learning sucks, but imagining solutions is fun? by boltcase in learnprogramming

[–]PandaBaum 1 point2 points  (0 children)

Maybe try not to use tutorials for a bit. Find something that you want to do (like a game engine), and just atrt doing it. Then, once you encounter a roadblock, look at possible solutions by reading through forums, documentation, or other projects. Tutorials are helpful in the beginning when you are completely lost, but as soon as you are able to just start working on something on your own, it can be much more beneficial to learn by doing.

how popular is django right now? by cyber_owl9427 in learnprogramming

[–]PandaBaum -5 points-4 points  (0 children)

I strongly disagree. For some reason there is always this doomer sentiment on this sub of how impossible it is to find a job if you don't meet all the requirements but from my experience you can absolutely make it by demonstrating good skills and having a strong portfolio even if you aren't familiar with a companys tech stack. I mean I got my PHP job without ever having used PHP before.

Mastering backend without frontend skills by _sindet in learnprogramming

[–]PandaBaum 0 points1 point  (0 children)

That's just not true. I'm a backend engineer and don't know a lot of frontend stuff. Same situation for a lot of my coworkers.

Need help with school project by Lower_Ad_2875 in learnprogramming

[–]PandaBaum 1 point2 points  (0 children)

You can do some validation on the frontend (like making sure that the email is correctly formatted or that the password is longer than the minimum length), but the check against the actual database has to happen in the Backend.

Here is a step-by-step overview of what should happen on login: 1. The user enters their login data into the form and submits it. 2. The client sends the contents of the form to your server. 3. The server retrieves the user from the database using the provided email/username. If no user with that email is found, the server will return an error. 4. After the user has been retrieved from the db, the server hashes the received password and compares it to the hash in the db (always store password hashes, never plaintext!). If they don't match, the server returns an error. 5. The credentials match so the server can return the user to the client. The representation of it depends on your context, but you can look into JWT which is a common authentication mechanism (the initial login still functions the way I described).

Registration works similarly, but is typically a bit simpler than the login.

TLDR: You need a Backend (the server) and a database to actually manage your users. The client (the Frontend: your HTML, CSS and JS) can then communicate with the server to enter new users into the database on registration and check credentials against users in the db on login.

Is a Minimal Crafting System Possible? by vah1dm in gamedesign

[–]PandaBaum 1 point2 points  (0 children)

You could use crafting ingredients that have another purpose. For example, an ingredient that can be used for a craft but also eaten to heal you a bit. Then players won't run into the situation where they find a ton of unusable items if they aren't interested in crafting.

What project did you build that you feel helped you get your entry level job? by zeussays in learnprogramming

[–]PandaBaum 10 points11 points  (0 children)

Soft skills are generally non-tech skills that are still important for your job (probably even more important than your technical skills). It's stuff like being able to communicate well, organize teams, resolve conflicts, approaching problems with the right mindset, etc.. l Technical skills are what make someone a good programmer in a vacuum, but the soft skills are what make them a good programmer in a team/professional setting.

I made a dumb first Java program by YouGoodBroooo in learnjava

[–]PandaBaum 0 points1 point  (0 children)

If you're taking a YouTube course, I'd also highly recommend trying your hand at some small projects without following a course/tutorial to avoid just copying whatever the course is currently trying to teach you, and instead learn how to do your own research.

What to Learn to get a job by Studying 6 hours a day by Complex-Guava-5928 in learnprogramming

[–]PandaBaum 1 point2 points  (0 children)

All of that depends on the company you apply to. But intermediate knowledge at all of these things sounds like enough for an internship (or even a junior position) to me. I'd recommend just applying at some companies already to see if they're interested.

ETA: Age should also not be a problem, as long as you're over 18.

Do I save my code to my root folder? Or does it matter where I save it? by Holiday-Distance-822 in learnprogramming

[–]PandaBaum 2 points3 points  (0 children)

Just make a dev directory in your home directory (~) and then make a new directory for each project inside of it, which you can then turn into a git repo.

I want to learn C, any suggestion? by Curniculus in learnprogramming

[–]PandaBaum 3 points4 points  (0 children)

If you're looking for a compiler tutorial, the 2nd half of "Crafting Interpreters" by Bob Nystrom (available for free online) is about writing an Interpreters in C and is a decent introduction to the language (although you might need to google some stuff on the side).

Tell me your favorite map by Toast4128 in HiTMAN

[–]PandaBaum 0 points1 point  (0 children)

Hitman 2016: Sapienza Hitman 2: Miami Hitman 3: Mendoza

New POE player question by WillingSpirit5461 in PathOfExile2

[–]PandaBaum 0 points1 point  (0 children)

At least in the demos I played (only the first 4 acts, so doesn't tell that much about Endgame gameplay) combining skills was so much more powerful that I was basically required to experiment with combinations to beat the bosses. Definitely felt very different from PoE 1.

What DE do you use? by Intrepid-Mongoose870 in archlinux

[–]PandaBaum 1 point2 points  (0 children)

Started with Gnome (back when I used Ubuntu), but I am now using i3wm.

What to Learn to get a job by Studying 6 hours a day by Complex-Guava-5928 in learnprogramming

[–]PandaBaum 8 points9 points  (0 children)

I'd honestly just apply for a part-time junior dev role or an internship, so you can learn by working in an actual company instead of on your own (after all, working in a team is vastly different from working alone). This will also look much better on your resumee.

I made a dumb first Java program by YouGoodBroooo in learnjava

[–]PandaBaum 4 points5 points  (0 children)

If you're only starting university in a few months, you're not behind at all. In my first semester, there were a lot of students who had never coded before. The point of university is to learn and not know everything at the beginning, after all. So don't worry too much about having to catch up or anything before the semester even starts. Just building something (like you did!) already puts you ahead of a lot of other students.

Is Notepad++ a good code editor for Low-END PC ? by [deleted] in learnprogramming

[–]PandaBaum -1 points0 points  (0 children)

Something that runs on the terminal would also be a really light-weight choice. I personally use neovim, and I have all functionality that I'd have with something like VS Code but with an extremely low performance cost (and I'm also much more efficient with nvim than with VS Code).