Giter Site home page Giter Site logo

wattahay / cli-game-scripts Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.3 MB

Minimal Python game script. Works foremost in xfce4-terminal and Gnome terminal

Python 100.00%
beast game python scripts blackjack linux-console cli xfce4-terminal colorama curses curses-ui

cli-game-scripts's Introduction

Python(3) script based on the 1984 DOS game, BEAST

Setup

a. Install and run xfce4-terminal in Ubuntu/Mint

  1. On the git page, click the green Clone/Download button to get the .zip file
  2. Extract the zipped files, maintaining the same directory structure
  3. Give the beast.py file executable permissions: chmod +x beast.py
  4. In the terminal, change directory to that of the executable (or else audio will not work)
  5. Run the game: ./beast.py

Controls

  • 'esc'...........quit game / exit the options menu
  • 'tab'...........enter options menu / switch tabs in options menu
  • 'p'.............pause
  • 'b'.............debug stats
  • arrows..........move
  • ctrl............pull blocks
  • 'r'.............restore screen / resized terminal

For Best Results

  • Terminal Emulator Ranking
    • xfce4-terminal - Liberation Mono - Tango Color Scheme
    • guake - Liberation Mono - Tango Color Scheme
    • gnome-terminal - Liberation Mono - Tango Color Scheme
    • konsole
    • xterm
    • "uxterm" (lxterm)
    • "Terminator" (x-terminal-emulator)

Most terminals have profiles you can create for individual applications.

  • Font Ranking
    • Liberation Mono (closest to original)
    • Noto Mono
    • WenQuanYi Micro Hei Mono
    • Free Mono (this is good in Gnome-terminal)
    • Ubuntu Mono
    • DeJaVu Sans Mono
    • Tlwg Mono looks . . . interesting
  • Alter font sizes for varied results
  • Run in a termainal that can:
    • change font size (changes board size)
    • change font
    • change color schemes
    • make user profiles

File Tweaks

Edit these settings in the beast.py file to change the game. (These settings might be added to an options menu in the future.

  • lcd_time
    • change this if there are issues with flickering or player speed
    • lower (faster) than .02 is usually counter-productive
    • higher (slower) than .07 makes for clunkly gameplay

Advanced Tweaks

  • use xset to change keyboard delay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.