
Set_volume(volume) Set the volume with a string consists of '01234567'. Case-insensitive and whitespace is ignored e.g. Set_tone(tone) Set the tone with a string consists of 'TSPN'. Set_note(note) Set the note with a string consists of 'CDEFGAB'+'#-'+'0123' or 'R'. If the tone, volume, and effect length are shorter than the note, it is repeated from the beginning Set(note, tone, volume, effect, speed) Set a note, tone, volume, and efffect with a string. Speed The length of one note(120 = 1 second per tone) Tone List of tone(0:Triagnle / 1:Square / 2:Pulse / 3:Noise)Įffect List of effects(0:None / 1:Slide / 2:Vibrato / 3:FadeOut) Load(x, y, filename) Read png image at ( x, y)Ĭopy(x, y, img, sx, sy, width, height) Copy the region of size ( width, height) from ( sx, sy) of the image bank img(0-3) to ( x, y) Set(x, y, data) Set the image as a list of strings at ( x, y) e.g. Width, height The width and height of the Image Stop(ch) Stop playback of channel ch(0-3) Play(ch, snd, loop=False) Play the sound bank snd(0-63) on channel ch(0-3). Sound(snd) Operate the sound bank snd(0-63) (see the Sound class) e.g. Text(x, y, s, col) Draw a string s of color col at ( x, y) If colkey is speficied, treated as transparent color If negative value is set for w and/or h, it will reverse horizontally and/or vertically. Rectb(x1, y1, x2, y2, col) Draw the outline of a rectangle of color col from ( x1, y1) to ( x2, y2)Ĭirc(x, y, r, col) Draw a circle of radius r and color col at ( x, y)Ĭircb(x, y, r, col) Draw the outline of a circle of radius r and color col at ( x, y)īlt(x, y, img, sx, sy, w, h, ) Copy the region of size ( w, h) from ( sx, sy) of the image bank img(0-3) to ( x, y). Rect(x1, y1, x2, y2, col) Draw a rectanble of color col from ( x1, y1) to ( x2, y2) Line(x1, y1, x2, y2, col) Draw a line of color col from ( x1, y1) to ( x2, y2) Pix(x, y, col) Draw a pixel of color col at ( x, y) Pal(col1, col2) Replace color col1 with col2 at drawing. pyxel.image(0).load(0, 0, 'title.png')Ĭlip(x1, y1, x2, y2) Set the drawing area of the screen to ( x1, y1)-( x2, y2). Image(img) Operate the image bank img(0-3) (see the Image class) e.g. When hold and period are specified, True will be returned at the period frame interval when the key is held down for more than hold framesītnr(key) Return True if key is released at that frame, otherwise return False Mouse_x, mouse_y The current position of the mouse cursorītn(key) Return True if key is pressed, otherwise return False ( key definition list)ītnp(key,, ) Return True if key is pressed at that frame, otherwise return False. Quit() End the Pyxel application at the end of the current frame
#Pyxel edit license key update#
Run(update, draw) Start the Pyxel application and call update function for frame update and draw function for drawing Init(width, height,, ,, ,, ) Initialize the Pyxel application with screen size ( width, height) It is also possible to specify the window title with caption, the display magnification with scale, the palette color with palette, the frame rate with fps, and the margin width and color outside the screen with border_width and border_color Width, height The width and height of the screenįrame_count The number of the elapsed frames Please refer to the API reference for usage of t and Image.load.īecause Pyxel uses the same palette as PICO-8, when creating png images for Pyxel, it is recommended to use Aseprite in PICO-8 palette mode.
#Pyxel edit license key install#
Keyboard, mouse, and joystick(WIP) inputsĪfter installing Python3, the following pip command installs Pyxel: MacĪfter installing Python3 and glfw, install Pyxel with pip command.4 channels with 64 definable sound banks.Let's start making a retro game with Pyxel! Specifications The specifications of the gaming console, APIs, and paletts of Pyxel are reffering to awesome PICO-8 and TIC-80.
#Pyxel edit license key free#
Thanks to its simple specifications inspired by retro gaming consoles, such as only 16 colors can be displayed and only 4 sounds can be played back at the same time, you can feel free to enjoy making pixel art style games. Pyxel is a retro game development environment in Python.
