Jump to content
  • Advertisement
Sign in to follow this  
projectjava126

[java] Please, help me find resources

This topic is 4846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all, this is my first post in this forum - I hope you are all well. Firstly, i have been reading these forums on and off for around a year now, and i have finally registered! There are alot of posts regarding people making new games eg rpgs, and i am one of those people! However, i am starting at the very basics. Basically i want to create a map consisting of a 4x4 grid (tiles), with a character that can move 1 space every time a jbutton is pressed (ie 1 movement point/end turn button) - Please note, i do not intend to develop a side scrolling tile based game, but a strategy game (think civ but 100xsimplier). The purpose of this post is for someone with knowledge, not to give me the exact code (although it would be nice), but to link a url/pdf to a complete tutorial/walkthrough IN JAVA. Now, i would like to make clear, that i have been doing extensive searching on google (web pages and pdfs) for weeks now. Most of the topics i find are for vb, c++ or flash. Secondly, there are a lot of tutorials that explain things such as pathfinding, ai, influence mapping etc - these i have on favorites. I also have alot of source code from many java sights on similar game engines (such as laser squad remakes,chaos remakes,civ remakes) - but as a relative beginner to "game programming", its hard to make sense of it all (which is why my first goal is so simple). The best tutorial/walkthrough i have found, is unfortunately for flash , and is for a side scroller (although concepts could be used). It is found at http://www.tonypa.pri.ee/tbw/start.html. So far i have worked out this. 1) a java file for the map - creating using an array with 1 and 0. 2) a java file for identying 1 and 0 as a wall or grass. the closest thing i can find to what i want to create can be found at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3352&lngWId=2 Unfortunately i cannot get it to run, but there is a screenshot there. I have used many keywords while searching eg tile-based, turn-based, java, tutorial, article, source-code, walkthrough, development etc.but cant find exactly what i require. If no such site exists what would my best course of action be? what beginner game should i make? Chess? tic tac toe? thankyou for reading, and i SINCERELY apoligize for the length of this post - I wanted to show i have set my target to the very simplest of concepts, i had some knowledge of what to do, and that i had been searching! p.s. i realise there is a section on 2d tile-based/isometric maps - i have checked through tutorials and forums. i beileved that a "java" forum would be the best to post! :-)

Share this post


Link to post
Share on other sites
Advertisement
First of all, Welcome!!!

You wanna make a tilebased strategy game in java, and you are looking for a tutorial that is describing that sort of thing!?
If thats the fact then you are not really making a game on your own, someone else has...
Please, do not get offended but if you really wanna make such a game, all the pieces of tuts you said you found should be enough. basically java tutorials should be what you read first... then graphics... then... and so on, and so on...
If you have a tutorial that describes exactly what you want, you will make it like that tutorial. there will be only a basic of own programming and that is not a good attempt.
you should rather surf the net, post in this forum with what you currently wanna do. Wanna do graphics, but dont know how? post it! search for it! wanna do ai? post it! search for it! in my opinion that is a far better way to learn and do. everything else would narrow your horizon.


ps: developing games in java by brackeen (often discussed in this forum) is a great book for beginners. it uses tiles for a sidescroller... but maybe because of that basics you can figure out a way to do it like you want.

[Edited by - INsanityDesign on August 5, 2005 7:01:58 AM]

Share this post


Link to post
Share on other sites
This kind of game relies on many techniques that are independent from language; For example, A* for path-finding. You'll find A* implementations for many languages, most of them for C++ and Java.

So, you'll have to search for the involved techniques. For AI, you'll surely need a good algorithm for path-finding (A*, for example), and possibly FSM to control enemies behavior. For the graphics, there are several tile-based games written in Java whose source is open, a bit of googling will give you many insights. The game logic is tied to your design, so searching for a known implementation will kill the originality of your game ;)

Is this your first game? If so, I think you should reconsider your choice. I'm also a fan of turn-based strategy games, and I know it's irresistible to follow up our tastes when choosing a new game to develop. However, set your goals a bit lower before going into these "complex" genres - there are a lot of small games you could try out that could teach you the necessary techniques to build your TBS game, someday.

Son Of Cain

[Edit: Oh yes, Welcome to the forums ;) ]

Share this post


Link to post
Share on other sites
Hello projectjava126, welcome.

I know you are specifically looking for Java, but I would recommend the following for a start for the AI/Pathfinding/Techtree etc:

AI Junky

I personally skip the code but read the comments, as long as I can understand the idea behind the algorithm -- and Graphs well they aren't exactly easy to get working the way you'd like them to.

The guy's book on practical AI is great!! Unfortunately a little expensive, and a little watered down -- that is until you get to A* and Graphs in general. FSM and Steering behaviors delt with first, and Pathfinding/GoalSeeking later.
All C++ however.

Greatbook -- pretty darn good site as well.

Keep posting though -- I'm sure if you get some code going and have questions there are a lot of knowledgable people to help. Son of Cain, CaptainMidnight, just to name a two.

L-

Share this post


Link to post
Share on other sites
There's a great book called "Killer Game Programming in Java", and in the first many chapters it deals with 2D programming and seems well suited for you. You can either buy the book, or read the draft chapters on-line: Killer Game Programming.

Share this post


Link to post
Share on other sites
hello and thankyou everyone for your replies.

I apoligize, as i have had to make a new account as i accidently deleted the password sent to my email address.
Alot of the links look good - a few i have seen before, such as amits site(i was actually in contact via email to him last october for a short while i was working on an artificial intelligence map generator). I will definitely bookmark these urls for future reference.
As stated before, i realise that implementing ai and the such is a long way off - currently i am aiming only to make a 4x4 grid made of white boxes and black boxes, and a red box that has movement points and can move 1 square a turn - i learnt from my previous project to simplify each program function as much as possible, in order to understand it.
The demo that was linked - although it is a real time rpg engine, im sure once i print out the code and analyse it, i would be able to figure out how to write my own version, with "movement points" added in. Wish me luck on this lonf journey and good luck to you on yours!

Share this post


Link to post
Share on other sites
Wikipedia and google are always good to know. (together, they know everything)



Please unban me on #Gamedev. I won't use my client there ever again.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!