NiallB98 / q-tetris

A text-based Tetris game written in Kx System's (https://kx.com/) programming language Q

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qTetris

Table of Contents

Requirements

  • bash (Tested with Git Bash for Windows' MinTTY terminal)
  • q/kdb+ (Tested in version 4.0)
  • The Linux command tput (If wanting to have the game's interface centered in the window)

Note: Some terminals may be too slow at refreshing their visuals to show the game at 60 FPS properly, it is recommended to run through a faster terminal than the default, like running through a MinTTY terminal

Introduction

A text-based Tetris game written in Kx System's (https://kx.com/) programming language Q

How to Play

To start the game execute the run.sh script. The game's controls are all displayed in-game except for special commands listed in the Commands section

Commands

Global

  • menu - Go to main menu
  • quit/exit - Quit game
  • fps X - Set the game FPS to amount X (60 by default)

In-Game

  • p - Pause game

Extra Tips

  • The game's default FPS can be configured in config.env
  • To register input the Enter key must be pressed after the key is pressed

Screenshots

Menu

Screenshot

Pre-Game Config

Screenshot

Gameplay

Screenshot

About

A text-based Tetris game written in Kx System's (https://kx.com/) programming language Q

License:MIT License


Languages

Language:q 96.6%Language:Shell 3.4%