Difference between revisions of "Roguelike Library For Java"

From RogueBasin
Jump to navigation Jump to search
(Maybe this should be in a category for 'beta' that isn't 'game'.)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{game-beta| name = Roguelike Library for Java
|developer = datta_sid
|influences = Roguelikes
|theme = SciFi/Fantasy/Anything you can imagine
|released = 2007 Dec 15
|updated =
|language = [[Java]]
|platforms = All
|licensing = [[Open Source]]
|features = Roguelike Library
|interface = [[ASCII]], [[Tiles]], [[Keyboard]], [[Mouse]]
|site = http://rlforj.sourceforge.net
|length =
}}
This is a modular easy to use Java library for developing Roguelike Games.
This is a modular easy to use Java library for developing Roguelike Games.


== Introduction ==
The purpose of this library will be to provide functions like Line of Sight, Field of View, Pathfinding, Dungeon generation, etc that you will need for writing your Roguelike, but the code that is either hard to find or hard to separate out from existing projects.
The purpose of this library will be to provide functions like Line of Sight, Field of View, Pathfinding, Dungeon generation, etc that you will need for writing your Roguelike, but the code that is either hard to find or hard to separate out from existing projects.


== Features ==
Currently this library provides the following :
Currently this library provides the following :


* Field of View
* Field of View
** Precise Permissive  
** [[Precise Permissive Field of View]]
** Shadowcasting.
** [[Shadow casting]].
* Cone Field of Vision
* Cone Field of Vision
** Precise Permissive  
** Precise Permissive Field of View
** Shadowcasting.
** Shadow casting.
* Line of Sight
* Line of Sight
** Bresenham
** [[Breshenham's Line Algorithm | Bresenham]]
** Symmetric Bresenham
** Symmetric Bresenham
** Opportunistic Bresenham
** Opportunistic Bresenham
** Precise Permissive  
** Precise Permissive Field of View
** Shadowcasting.
** Shadow casting.
* Projection
* Projection
** Bresenham
** Bresenham
** Symmetric Bresenham
** Symmetric Bresenham
** Opportunistic Bresenham
** Opportunistic Bresenham
** Precise Permissive  
** Precise Permissive Field of View
** Shadowcasting.
** Shadow casting
 
 
== Examples ==


Some examples of this library in action :
Some examples of this library in action :
{|
{|
|+ !!Field of Vision
|+  
'''''Field of Vision'''''
 
|-
|-
! Precise Permissive
! Precise Permissive Field of View
! ShadowCasting
! Shadow Casting
 
|-
|-
|
|
Line 80: Line 104:
           .         
           .         
</pre>
</pre>
|+
|
'''''Field of Vision in a cone'''''
|-
|
<pre>
                   
          @       
          ....     
          ....   
          ...... 
          ...#....
            ... ...
            .... . 
            ..... 
            ...   
            ..   
                   
</pre>
|+
|
'''''Line of Sight/Projectile path'''''
|-
! Shadow Casting
! Precise Permissive Field of View
! Bresenham
|-
|
<pre>
.#..............#...#
..........#..........
..........@.#....#...
........./.....#.....
.........|...........
#.....#.#|...........
..#...../......#.....
.##..............#..#
............#........
.......#......##.....
.....*...............
.....................
</pre>
|
<pre>
.#..............#...#
..........#..........
..........@.#....#...
........./.....#.....
.........|...........
#.....#.#|...........
..#...../......#.....
.##..../.........#..#
.......|....#........
....../#......##.....
.....*...............
.....................
</pre>
|
<pre>
......
.@....
.#\...
..|...
..*...
......
</pre>
|}
|}
[[category:FOV]][[category:Library]]

Latest revision as of 20:54, 23 March 2009

Roguelike Library for Java
Beta Project
Developer datta_sid
Theme SciFi/Fantasy/Anything you can imagine
Influences Roguelikes
Released 2007 Dec 15
Updated
Licensing Open Source
P. Language Java
Platforms All
Interface ASCII, Tiles, Keyboard, Mouse
Game Length
Official site of Roguelike Library for Java



This is a modular easy to use Java library for developing Roguelike Games.

Introduction

The purpose of this library will be to provide functions like Line of Sight, Field of View, Pathfinding, Dungeon generation, etc that you will need for writing your Roguelike, but the code that is either hard to find or hard to separate out from existing projects.

Features

Currently this library provides the following :

  • Field of View
  • Cone Field of Vision
    • Precise Permissive Field of View
    • Shadow casting.
  • Line of Sight
    • Bresenham
    • Symmetric Bresenham
    • Opportunistic Bresenham
    • Precise Permissive Field of View
    • Shadow casting.
  • Projection
    • Bresenham
    • Symmetric Bresenham
    • Opportunistic Bresenham
    • Precise Permissive Field of View
    • Shadow casting


Examples

Some examples of this library in action :


Field of Vision
Precise Permissive Field of View Shadow Casting
                   
         ......     
     ..  .......    
     ..  .........  
      .. .........  
  ..   . .........  
  ...  .......... ..
 ..#... .#.....#....
 .......#.......... 
 ..............#....
 #........@.........
 ...........#       
 .....#.......      
 ..# #.........     
    ...........#    
   ..............   
   ...............  
   ......#..#.....  
     .#.........    
      ......... 
                      
          .         
      . .......     
    .............   
    ..............  
  .  ... .......... 
  ..# ............# 
  .... .............
 ..#... .#.....#....
 .......#...........
 ..............#....
 #........@..........
 ...........#.......
 .....#....... .....
 ..# #.......... ...
    ...........#.# .
  ...............   
  ................  
   ......#..#.....  
    ..#.........#   
      .........     
          .         

Field of Vision in a cone

                    
          @         
          ....      
           ....     
           ......   
           ...#.... 
            ... ... 
            .... .  
            .....   
             ...    
             ..     
                    

Line of Sight/Projectile path

Shadow Casting Precise Permissive Field of View Bresenham
.#..............#...#
..........#..........
..........@.#....#...
........./.....#.....
.........|...........
#.....#.#|...........
..#...../......#.....
.##..............#..#
............#........
.......#......##.....
.....*...............
.....................
.#..............#...#
..........#..........
..........@.#....#...
........./.....#.....
.........|...........
#.....#.#|...........
..#...../......#.....
.##..../.........#..#
.......|....#........
....../#......##.....
.....*...............
.....................
 
 
 
......
.@....
.#\...
..|...
..*...
......