Skip to content

perigrin/perl-games-rot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Games::ROT

A Perl library inspired by ROT.js the ROuglelike Toolkit for JavaScript/TypeScript.

Synopsis

#!/usr/bin/env perl
use strict;
use lib qw(lib);
use Feature::Compat::Class;

use Games::ROT;

class Engine {
    my $WIDTH = 800;
    my $HEIGHT = 500;

    field $display = Games::ROT->new(
        width  => $WIDTH,
        height => $HEIGHT,
    );

    method render() {
        my $x = $WIDTH / 2;
        my $y = $HEIGHT / 2;

        $display->draw($x, $y, 'Hello World', '#fff', '#000');
    }
}

my $engine = Engine->new();
$engine->render();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages