Games

FlipDot-Displays can be used to play funny games on.

Rogueflip

The demo game rogueflip is inspired by text-console based dungeon games named ‘roguelike’. The following video shows the game in action.

_images/simulator_video_thumbnail.png

Level Description

Each Level can be created with the tiled map editor. The map dimensions must be a multiple of the dimension of the flipdot display.

This example game world can be opened with tiled using the following tileset. The tiles labeled P and C represent the player and a collectable coin respectively.

_images/rogueflip_tiles.jpg

An example world looks like the following.

_images/rogueflip_world.png

Module Description

Rogueflip is a roguelike dungeon crawler for the flipdot display. Levels can be created with the tiled map editor (https://www.mapeditor.org/) and a corresponding tileset.

class rogueflip.Game(flipdotdisplay, worldfile='ressources/rogueflip_world.tmx')[source]

A roguelike for a flipdot display.

handle_input()[source]

Handle user input from keyboard or joystick.

handle_px(x, y)[source]
move_window(dx, dy)[source]

Move the visible window by the amount of dx*width and dy*height of the flipdotdisplay.

player_in_window()[source]

Check if the player is inside the windows.

player_try_collect_coin()[source]
run()[source]

Start the game running in an endless loop.

show_win_message()[source]
tick()[source]
class rogueflip.GameObject(x, y, blink_interval=0.5)[source]
draw()[source]

Determine whether the character should be drawn now.

tick()[source]

A method that should be invoked each frame.

class rogueflip.World(worldfile)[source]
BACK = 'back'
COIN = 'coin'
PLAYER = 'player'
WALL = 'wall'
find_coins()[source]
find_player()[source]
get_type(x, y)[source]
is_coin(x, y)[source]
is_onboard(x, y)[source]
is_player(x, y)[source]
is_wall(x, y)[source]
rogueflip.run_remote_display()[source]
rogueflip.run_simulator()[source]
rogueflip.run_width_flipdotdisplay(fdd)[source]