• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

wikidsmot

[java] Some help getting started

4 posts in this topic

I''m trying to develop a top view 2D tile based RPG game and I''m a little lost at where to begin. I know java, some C/C++ and I recently purchased "Black Art of Java Game Programming", read through it an thoroughly understand it. I currently have a game written in java-script up on my site: http://ultimate-end.net(requires IE 4.0+) and I''m trying to figure out a way to translate it to java while using solid object oriented design principles. I had a good idea about how to do it using the book I purchased and it''s Sprite hierarchy when I ran into a snag. The book doesn''t do anything that deals with drawing out an managing a 2D map. I was thinking of creating a GridSprite class that would contain small areas of the world, and be responsible for drawing all other sprites within it. All the GridSprites would, in turn, be contained in a WorldSprite class of somesort. And all of this would be managed by WorldManager class, which would be managed by the actual applet called GameManager. Does this seem like a good approach? Any tips, algos, source code for drawing out a map? Also I plan to handle collisions with an Intersect interface. All objects that could possibly get in the way of your character while moving around the screen would implement this. I have found, however, that this would be unfeasable or rather just not good, when dealing with coastlines, trees or other non unique terrain features. I''ve read through lots of online material but I haven''t found a place yet with a good starting point. Any help would be greatly appreciated.
0

Share this post


Link to post
Share on other sites
I hate to answer you by pointing you to another book, but it answers all of your questions (I think its only like $20) - Also includes some decent source code to work with.

Java Game Programming for Dummies: Wayne Holder Dummies Technical Press Staff Format: Paperback, 1st ed., 359pp.; ISBN: 0764501682; Publisher: IDG Books Worldwide; Pub. Date: January 1998

I am also working on a section for the FAQ about 2-D tile engines, but its going to be some time before I have anything to post. I wish my real job wouldn't keep getting in the way of doing important stuff = )

http://games.cpbinc.com/faq/

Edited by - Jerry Lynn on 5/4/00 12:18:32 PM
0

Share this post


Link to post
Share on other sites

quote:
Original post by Jerry Lynn

I hate to answer you by pointing you to another book, but it answers all of your questions (I think its only like $20) - Also includes some decent source code to work with.

Java Game Programming for Dummies: Wayne Holder Dummies Technical Press Staff Format: Paperback, 1st ed., 359pp.; ISBN: 0764501682; Publisher: IDG Books Worldwide; Pub. Date: January 1998

I am also working on a section for the FAQ about 2-D tile engines, but its going to be some time before I have anything to post. I wish my real job wouldn''t keep getting in the way of doing important stuff = )

http://games.cpbinc.com/faq/

Edited by - Jerry Lynn on 5/4/00 12:18:32 PM


What does it actually tell about making scrolling 2D enviroment? Like you can see from my last posts I''m lookin for decent tiledrawing algorithm and I became really interested about this book. Also, is there anyway to get it''s scurce instead of buying it?


Time comes, time goes and I only am.
0

Share this post


Link to post
Share on other sites
This is the web site for the book:

http://www.dummies.com/cgi/fill_out_template.pl?book:0-7645-0168-2:book-Dummies+Press::u444

It might give you a better idea of what''s in the book (there is a chapter list and some sample chapters). The source code is not available from the web site : (

They have an entire 2-D engine in the source code in addition to chapters on collision detection (with source).

There are some draw backs. Most of their code is fairly simple (Actually the code from the section on event handeling is fairly good). Most of it might serve as a good base but would require a lot of extension work (they do offer some suggestions on how to extend, but leave it as an exercise for the reader).

Another problem is that all of the code is written as an applet using standard AWT graphics (the more advanced graphics API weren''t really available when it was written). You would probably have to spend a lot of time porting the graphics routines to Java 2D or some other API.
0

Share this post


Link to post
Share on other sites
Very good book that is, but no code what-so-ever about 2d scrolling maps. Don't buy it if you already have black art of java game programming. To make a large 2D map, you can have SpriteTile objects that have information about what picture to display and what not. Put all these objects into a linked list. Then have another class, or just a function of your game engine go through that list and pull out the tiles that need to be displayed right now. You can call the class Viewport and have it's only purpose be to keep track of the offset of the visible area to one corner of the map.

Edited by - Jim_Ross on 5/5/00 9:09:28 AM
0

Share this post


Link to post
Share on other sites