Skip to content
프로젝트

소개

Roguelike Toolkit in Love. A Love2D/lua port of rot.js

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

RogueLike Toolkit in Love

Bringing rot.js functionality to Love2D. The only modules that require Love2D are the display modules.

See this page for a quick and dirty run down of all the functionality provided.

Included:

  • Display - via rlLove, only supports cp437 emulation rather than full font support.
  • TextDisplay - Text based display, accepts supplied fonts
  • RNG - via RandomLua. Multiply With Carry, Linear congruential generator, and Mersenne Twister. Extended with set/getState methods.
  • StringGenerator - Direct Port from rot.js
  • Map - Arena, Divided/Icey/Eller Maze, Digger/Uniform/Rogue* Dungeons. Ported from rot.js.
  • Noise Generator - Simplex Noise
  • FOV - Bresenham Line based Ray Casting, Precise Shadow Casting
  • Color - 147 Predefined colors; generate valid colors from string; add, multiply, or interpolate colors; generate a random color from a reference and set of standard deviations. (straight port from rot.js)
  • Path Finding - Dijkstra and AStar pathfinding ported from rot.js.
  • Lighting - compute light emission and blending, ported from rot.js.
  • Dice - Roguelike based dice module ported from RL-Dice.

Getting started

git clone git://github.com/paulofmandown/rotLove.git

Add the contents of the src directory to lib/rotLove in your project and require the rot file.

ROT=require 'lib/rotLove/rot'
function love.load()
    f=ROT.Display()
    f:writeCenter('You did it!', math.floor(f:getHeight()/2))
end
function love.draw() f:draw() end

Examples

rotLove has a number of demo projects in examples/ that you can use to get a feel for each API. To see a demo in action, run

    love . my-demo

from your shell.

관련 프로젝트 살펴보기

불러오는 중…