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:
- TIC-80 friendly
- Highly customizable (any screen resolution, different screen modes, any number of audio channels, custom FPS)
- Python as the main programming language
- Practically no memory restrictions regarding the number of assets that can be used (code size, tilesets, spritesheets, music, sfx, color palette)
- Expandable with the use of modules and libraries
- Support of multiple audio and image formats
pygame-ce or pygame>=2.1.3.dev6
numpy
btn: use pygame.key.get_pressed & btnp: use pygame.event.get(pygame.KEYDOWN)
clip: use pygame.Surface.set_clip
cls: use pygame.Surface.fill
circ & circb: use pygame.draw.circle
elli & ellib: use pygame.draw.elipse
exit (
font: use pygame.Surface.subsurface and pygame.transform.scale
key: use pygame.key.get_pressed & keyp: use pygame.event.get(pygame.KEYDOWN)
line: use pygame.draw.line
map (
mget & mset: VRAM 2D array indexing, read/write
mouse: use pygame.mouse.get_pos, pygame.mouse.get_pressed and MOUSEWHEEL event
music (
pix: use pygame.Surface.get_at and pygame.Surface.set_at
pmem (
print: use pygame.font.Font
rect & rectb: use pygame.draw.rect
reset (
sfx (
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 (
tri & trib: use pygame.draw.polygon
tstamp (
TIC, SCN, OVR, BDR: Callbacks
peek & peek4, poke & poke4, memcpy & memset: Memory Mapping
fset & fget: Sprite flags
Blit Segment / Low BPP graphics: Bit depth
- btn & btnp returning GAMEPADS data (unsigned char) for id parameter omision
- resizable window
- visible border color for non-integer scale window sizes
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