Skip to content

Instantly share code, notes, and snippets.

@emersonmx
emersonmx / Dockerfile
Last active May 17, 2025 14:43
Setup a game with Pygame CE for Android
FROM python:3.11-slim
ENV USER="user"
ENV HOME_DIR="/home/${USER}"
ENV WORK_DIR="${HOME_DIR}/hostcwd" \
SRC_DIR="${HOME_DIR}/src" \
PATH="${HOME_DIR}/.local/bin:${PATH}"
ENV LANG="en_US.UTF-8" \
LANGUAGE="en_US.UTF-8" \
LC_ALL="en_US.UTF-8"
@Matiiss
Matiiss / scheduler.py
Last active September 8, 2023 18:08
A thingy for scheduling other thingies
from typing import Any, NamedTuple, TypeAlias
from collections.abc import Callable
import queue
import pygame
Callback: TypeAlias = Callable[[], Any]
class SchedulerEvent(NamedTuple):
@davidpendergast
davidpendergast / differences.txt
Last active August 22, 2023 13:53
Pygame vs. Pygame-CE API Differences
Pygame vs. Pygame-CE API Differences
------------------------------------
This document is meant to serve as a reference for pygame developers that use
both pygame and pygame-ce. It is not an endorsement of one over the other.
Last updated: April 26, 2023
Info was compiled from the repos' release pages and their respective docs: