12/26/2023 0 Comments Disick path finder algorithm![]() ![]() I was actually going to write an implementation today. The book AI for Game Developers has a very good explanation of A*. Can someone give me a starting point I can work with? Should I try and adapt an already written set of classes, or try to write my own from the scratch? I've seen many implementations of A* and many different types. Once I have this, I will tidy up the code more. My plan is to get to the milestone 1, making the patient go to the desk then the office and then leave. I'm hesitant to paste any code yet, as it's messy as I've learn a lot of new techniques to do with GUI in the past few months. The grid squares can only be full or not, there will be no different terrain. Each of these has a "point of usage" which will be the place the patient has to get to. ![]() So far, the user can place a reception desk, and build a GP's office. I understand how it works I think, but am unsure how to implement it into my game. I have looked into A* path finding, but it seems really complicated to me. They need to go to the reception desk, then GP's office, and then back to their starting position. ![]() I'm at the stage where I need to create a person (patient) to be admitted to the hospital. I have done Java for nearly two years now on and off, but I'm finally devoting my time to a decent project. I'm quite new to Java and am currently studying at the university my first year. I'm currently writing a very basic Java game based on the idea of Theme Hospital. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |