The Room Do I dare disturb the universe?

A Roguelike in Perl Part 4 - Field of View

Introduction This post is part of a series of blog posts following the roguelike tutorial to demonstrate the new class feature in Perl 5.38.0. In this post we’re gonna start where we left off in part-3. If you don’t remember what the code looked like go back and refresh yourself. We have a dungeon that we can walk around in but it’s not reall... Read more

A Roguelike in Perl Part 3 - Mastering the Generative Dungeon

Introduction This post is part of a series of blog posts following the roguelike tutorial to demonstrate the new class feature in Perl 5.38.0. In this post we’re gonna start where we left off in part-2. If you don’t remember what the code looked like, go back and refresh yourself. When last we left our intrepid characters, they were in a near... Read more

A Roguelike in Perl Part 2 - Entities and Obstacles

Introduction This post is part of a series of blog posts following the roguelike tutorial to demonstrate the new class feature in Perl 5.38.0. In this post we’re gonna start where we left off in Part 1. If you don’t remember what the code looked like, go back and refresh yourself. From now on the listing is gonna get a little large for us to c... Read more

A Roguelike in Perl Part 1 - Orchestrating Movement in the Dark

Introduction This post is part of a series of blog posts following the roguelike tutorial to demonstrate the new class feature in Perl 5.38.0. In this post we’re gonna start where we left off in Part 0. If you remember, the Engine class looked like this: class Engine { field $height :param; field $width :param; field $app = Games... Read more

A Roguelike in Perl Part 0 - The Setup

Introductions Perl 5.38.0 just dropped, and with it comes (in my opinion) one of the most exciting experiments in Perl, a new built-in object system. If Moose was the postmodern object system for Perl then feature 'class' is post-postmodern, it’s a meta-modern object system. The last couple of years I’ve not been paid to write Perl, so I’ve ha... Read more