Looking for 2D java games?

I am writing a very basic java game based on the idea of theme hospital

I'm new to Java. I'm studying in college I have finished switching Java for nearly two years, but I finally spent my time on a decent project

I am in the stage where I need to create a person (patient) to enter the hospital They need to go to the reception desk, then to the GP's office, and then back to their starting position

I have studied the a * path discovery, but it seems really complicated to me I understand how it works, I think, but I'm not sure how to implement it into my game

So far, users can place a reception desk and set up a GP office These all have a "point of use", which will be where the patient gets The grid can only be full, and there will be no different terrain

I hesitate to paste any code because it is messy because I have learned a lot of new technologies and GUI in the past few months My plan is to reach milestone 1, get the patient to his desk and leave Once I have this, I will organize the code better

I see many a * and many different types of implementations Someone can give me a starting point. Can I cooperate? Should I try and revise a set of courses I have written, or try to write my own from scratch?

Solution

You need a *, which is the best implementation of grid based routing

This may help you:

Path Finding

Edit: the previous link is good for being an implementable class and is a guide for customizing finding methods to meet your satisfaction

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>