What engine could i use to make a game like?
http://www.keepbusy.net/play.php?id=zombie-trailer-park
What engine could i use to make a game like? http://www.keepbusy.net/play.php?id=zombie-trailer-park
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re familiar with code, I recommend coding such a game from scratch. The mechanics seem very simple and there’s no functionality that an engine would provide that you can’t code yourself. It will be more flexible, and you’ll learn more by solving some of the problems directly. Just make sure you have a clean design and keep it manageable.
You seem to want some pointers on how to get started, so I’ll suggest a basic framework for your game. Create a class that encapsulates a game object. It should have coordinates, width, height, etc; any field or method that is common to all objects in your game. Use derived classes to implement all the specific behaviours. Make sure you understand OOP and how it is implemented in Java.
You’ll need to store the game objects in lists or arrays. Depending on your implementation, it may make sense to have one list/array for all objects, or perhaps two lists/arrays, one friendly, one enemy, or some other setup. You’ll need to decide which makes most sense. To answer your specific question about distances, in the example you can just take the absolute difference between the x coordinates a zombie and an opposing zombie and see if it’s within the attack range.