Loading repository data…
Loading repository data…
Kyuchumimo / repository
A set of functions from TIC-80 tiny computer 0.90.1723 platform ported to Pygame-ce
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.

A set of functions from TIC-80 tiny computer 0.90.1723 platform ported to Pygame 2. Many of them are designed to work with the NumPy library to improve performance, per pixel access and CSV files access.
Some of the highlights of using this library are:
pygame-ce>=2.4.0
numpy
btn: use pygame.key.get_pressed & btnp: use pygame.key.get_just_pressed
clip: use pygame.Surface.set_clip
cls: use pygame.Surface.fill
circ & circb: use pygame.draw.circle
elli & ellib: use pygame.draw.elipse
exit (⚠️: sys built-in module dependant): use sys.exit
font: use pygame.Surface.subsurface and pygame.transform.scale
key: use pygame.key.get_pressed & keyp: use pygame.key.get_just_pressed
line: use pygame.draw.line
map (⚠️: numpy library dependant): use pygame.Surface.subsurface and pygame.transform.scale
mget & mset: VRAM 2D array indexing, read/write
mouse: use pygame.mouse.get_pos, pygame.mouse.get_pressed and MOUSEWHEEL event
music (⚠️: sustain parameter not supported): use pygame.mixer.music.load, pygame.mixer.music.play and pygame.mixer.music.stop
pix: use pygame.Surface.get_at and pygame.Surface.set_at
pmem (⚠️: os, sys, json module dependant): use os.path.splitext, sys.argv, json.load and json.dump
print: use pygame.font.Font
rect & rectb: use pygame.draw.rect
reset (⚠️: os, sys module dependant): use os.execv
sfx (⚠️: wave, io module dependant. speed parameter not supported): use standard-library wave module, io.BytesIO, pygame.mixer.Sound, pygame.mixer.Channel and pygame.mixer.Sound.set_volume
spr: use pygame.Surface, pygame.Surface.subsurface, pygame.transform.flip, pygame.transform.scale and pygame.transform.rotate
sync: use pygame.image.load, pygame.image.save, numpy.loadtxt and numpy.savetxt
textri: use pygame.surfarray.array3d, pygame.Surface.get_size, pygame.surfarray.make_surface
time: use pygame.time.get_ticks
trace (⚠️: builtins built-in module dependant): use builtins.print with ANSI escape sequences for RGB color
tri & trib: use pygame.draw.polygon
tstamp (⚠️: time built-in module dependant): use time.time
TIC, SCN, OVR, BDR: Callbacks
peek & peek4, poke & poke4, memcpy & memset: Memory Mapping
fset & fget: Sprite flags
Blit Segment / Low BPP graphics: Bit depth
poke@0x03FF8: Border color
This library and other projects would not have been possible without the generous help of Pygame Community Discord helpfulie members, either directly or indirectly:
Starbuck
Ghast
blubberquark
Matiiss
Axis
Andrew Coffey
polastyn2030
FinFET