Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Let's make a Java roguelike!

1,005 views
Skip to first unread message

Trystan Spangler

unread,
Aug 13, 2011, 8:50:25 PM8/13/11
to
Let's make a roguelike!

I've made a few roguelikes — mostly for myself — and I think they're a
fun mix of computer science algorithms, code design decisions, and
game design decisions. They are also fun to make and a great way to
try new programing ideas and new game ideas.

I've created a 20 part series that I'm going to post on my blog where
I stumble my way through creating a roguelike that has most of the
features any mainstream roguelike has. I consider myself a decent
programmer but I'll try some things that may or may not work out and,
for the sake of explanation via blog posts, cut some corners and leave
out a few details. Because of that, don't take this as an example of
the ideal rogulike or ideal code but if you stumble through it with me
and add your own ideas, you'll have a roguelike too and, more
importantly, may be better armed to make your own roguelike or
contribute to someone else's roguelike.

Here's the rundown of what's to come:

Part 01: Java, Eclipse, AsciiPanel, application, applet
Part 02: input, output, modes and screens
Part 03: scrolling through random caves
Part 04: the player
Part 05: stationary monsters
Part 06: hitpoints, combat, and messages
Part 07: z levels and deeper caves
Part 08: vision, line of sight, and field of view
Part 09: wandering monsters
Part 10: items, inventory, inventory screens
Part 11: hunger and food
Part 12: weapons and armor
Part 13: aggressive monsters
Part 14: experience and leveling up
Part 15: help, examine, and look screens
Part 16: throwing and ranged weapons
Part 17: smarter monsters
Part 18: potions and effects
Part 19: mana, spells, and magic books
Part 20: item appearance and identification

Some experience with Java and object oriented programming is expected
but I can answer any questions that you may have. Not only am I
including the code for each part, but I've got a final version, with a
few additional tweaks, running as an applet on my blog.

Roguelike applet:
http://trystans.blogspot.com/2011/08/nameless-roguelike-for-tutorial.html

First part of roguelike tutorial:
http://trystans.blogspot.com/2011/08/roguelike-tutorial-what-and-why.html

Krice

unread,
Aug 14, 2011, 1:59:59 AM8/14/11
to
On 14 elo, 03:50, Trystan Spangler <trysta...@comcast.net> wrote:
> but I've got a final version, with a
> few additional tweaks, running as an applet on my blog.

Screen redrawing is ridiculously slow. You can see the screen
clear white, then redraw from left to right in each move.

getter77

unread,
Aug 14, 2011, 7:38:48 AM8/14/11
to
On Aug 13, 8:50 pm, Trystan Spangler <trysta...@comcast.net> wrote:
> Let's make a roguelike!
>
>    http://trystans.blogspot.com/2011/08/nameless-roguelike-for-tutorial....

>
> First part of roguelike tutorial:
>    http://trystans.blogspot.com/2011/08/roguelike-tutorial-what-and-why....

This is definitely the sort of thing that is a good idea for somebody
knowledgeable to whip up as a resource.

If you are essentially not planning on it already, I'd imagine it to
be a VERY good idea to follow in the lead of RDC's Free Basic one.

http://users.freebasic-portal.de/rdc/tutorials.html

Also, is this going to ultimately get hammered out to make good use of
JAVA 7? Probably a good thing to do if you can navigate it whatnot.

Trystan Spangler

unread,
Aug 14, 2011, 1:04:34 PM8/14/11
to

It looks fine on my machine. Do you have the latest Java and video
drivers? It isn't optimized for speed but it shouldn't be that
problematic.

Ido Yehieli

unread,
Aug 14, 2011, 1:54:45 PM8/14/11
to


Definitely bugged on my machine as well.

Mac OS X 10.6, latest everything.

Trystan Spangler

unread,
Aug 15, 2011, 12:46:51 AM8/15/11
to

I'm using an open source library, AsciiPanel, for the output. I'll try
to fix it over the next couple days.

Trystan Spangler

unread,
Aug 15, 2011, 1:12:21 AM8/15/11
to
On Aug 13, 10:59 pm, Krice <pau...@mbnet.fi> wrote:

I've updated the graphics library it's using. If you still have
problems after clearing your cache and restarting your browser, let me
know.

SidD

unread,
Aug 19, 2011, 1:42:53 AM8/19/11
to
I humbly offer you my open source project: RLForJ (RogueLike For Java)
https://sourceforge.net/projects/rlforj/

It has Line of Sight, Field of viw, Pathfinding algorithms and a ASCII
display widget (use any font u want).

I was inactive for a while, but I have started working on my game
again and will be updating the project regularly.
In the future I plan to add Dungeon generation algorithm too.

0 new messages