All Projects → cmcmarrow → tamcolors

cmcmarrow / tamcolors

Licence: Apache-2.0 license
tamcolors is a terminal game library which supports multiplayer and audio. tamcolors gives a buffer which lets the user set the character, foreground color and background color which can draw at a stable FPS of 25 on all supported console.

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to tamcolors

Termcolor
Termcolor is a header-only C++ library for printing colored messages to the terminal. Written just for fun with a help of the Force.
Stars: ✭ 533 (+2120.83%)
Mutual labels:  console, colors
console-logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+362.5%)
Mutual labels:  console, colors
Termenv
Advanced ANSI style & color support for your terminal applications
Stars: ✭ 555 (+2212.5%)
Mutual labels:  console, colors
Colorful
Terminal string styling done right, in Python 🐍 🎉
Stars: ✭ 456 (+1800%)
Mutual labels:  console, colors
oof
Convenient, high-performance RGB color and position control for console output
Stars: ✭ 764 (+3083.33%)
Mutual labels:  console, colors
Colorette
Easily set the color and style of text in the terminal.
Stars: ✭ 1,047 (+4262.5%)
Mutual labels:  console, colors
Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+362.5%)
Mutual labels:  console, colors
File-LsColor
Colorize input filenames just like ls(1) does
Stars: ✭ 33 (+37.5%)
Mutual labels:  colors, terminal-colors
sourcerer
read code like a wizard. a 16bit color scheme for hackers
Stars: ✭ 136 (+466.67%)
Mutual labels:  colors, terminal-colors
leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-50%)
Mutual labels:  console, colors
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (+45.83%)
Mutual labels:  console, colors
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (+0%)
Mutual labels:  console, colors
BetterConsoleTables
Faster, colorable, more configurable, and more robust console colors & tables for C# console applications
Stars: ✭ 59 (+145.83%)
Mutual labels:  console, colors
hex-rgba
Convert HEX to RGBA
Stars: ✭ 12 (-50%)
Mutual labels:  colors
console.history
📜 Store all javascript console logs in console.history
Stars: ✭ 30 (+25%)
Mutual labels:  console
xontrib-prompt-bar
The bar prompt for xonsh shell with customizable sections and Starship support.
Stars: ✭ 27 (+12.5%)
Mutual labels:  console
nim-dashing
Terminal dashboards for Nim
Stars: ✭ 105 (+337.5%)
Mutual labels:  console
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (+29.17%)
Mutual labels:  colors
snax86
A snake game written in x86 Assembly language for windows console
Stars: ✭ 21 (-12.5%)
Mutual labels:  console
SuperCTF
A multiplayer capture the flag game made in Godot with love and blood. Running live at www.superctf.com
Stars: ✭ 26 (+8.33%)
Mutual labels:  multiplayer

tamcolors

Icon

TotalDownloads WeekDownloads Python3 License Docs Tests

about

tamcolors is a terminal game library which supports multiplayer and audio. tamcolors gives a buffer which lets the user set the character, foreground color and background color which can draw at a stable FPS of 25 on all supported console.

pip install tamcolors

links

table tennis example

TableTennis

import tamcolors
tamcolors.examples.tabletennis.run()

basic example

BasicExample

import tamcolors
tamcolors.examples.basic_console.run()
from tamcolors.tam_basic import console
from tamcolors.tam_io.tam_colors import *
console.printc("Hello", "World!", ("light blue", "white"), same_color=True)
name = console.inputc("Whats Your Name? >>> ", ("light aqua", "gray"))
console.clear()
console.printc("Hello, ", ("default", "default"), name, (GREEN, WHITE), "!", ("gray", "light aqua"), sep="")

icon example

import tamcolors
tamcolors.examples.icon.run()
from tamcolors import tam, tam_tools, tam_io


class BootLogo(tam.tam_loop.TAMFrame):
    def __init__(self):
        super().__init__(fps=10,
                         char=" ",
                         foreground_color=tam_io.tam_colors.GREEN,
                         background_color=tam_io.tam_colors.BLACK,
                         min_width=57, max_width=57, min_height=20, max_height=20)

        self.icon = tam_tools.tam_fade.tam_fade_in(surface=tam_tools.tam_icon.get_icon(),
                                                   char=" ",
                                                   foreground_color=tam_io.tam_colors.BLACK,
                                                   background_color=tam_io.tam_colors.BLACK)
        self.wait = 10

    def update(self, tam_loop, keys, loop_data, *args):

        if not self.icon.done():
            self.icon.slide()
        else:
            self.wait -= 1

        if self.wait == 0:
            tam_loop.done()

    def draw(self, tam_surface, loop_data, *args):
        tam_surface.clear()

        tam_surface.draw_onto(self.icon.peak(), 0, 0)


tam.tam_loop.TAMLoop(BootLogo()).run()

versions of Python currently supported

  • 3.9
  • 3.8
  • 3.7
  • 3.6

platforms tested on

  • Windows 10
  • Ubuntu 20.04
  • macOS 10.15.5

2.0.0 goals

  • add .wav support - Working on Windows!
  • add .wav tests - In Progress
  • add basic sound - Done
  • add basic sound tests - Done
  • update tamloop - In Progress
  • update tamframe - In Progress
  • add IO event bus - In Progress
  • supports Python 3.9
  • supports Python 3.8
  • supports Python 3.7
  • supports Python 3.6

2.1.0 goals

  • add full keys state support for linux and MacOS
  • add SPA, LAT, GER and FRE keyboard maps
  • make and change fonts at run time
  • add SHIFT KEY and other keys
  • supports Python 3.9
  • supports Python 3.8
  • supports Python 3.7
  • supports Python 3.6

2.2.2 goals

  • update tamtools
  • supports Python 3.9
  • supports Python 3.8
  • supports Python 3.7
  • supports Python 3.6

3.0.0 goals

  • clean up code
  • mass changing of function names
  • add more tests
  • make docs user friendly
  • add docs to wiki
  • drop read the docs
  • find new CI
  • drop travis CI
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].