- REPL.
- Primitive numerical types: int, float, boolean.
- Cast and convert operations for primitive numerical types.
- Type checking for basic assignment operations.
- Type checking for math.
- Support for basic logic and keywords:
- def
- do
- if / then / else
- when / then / else
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple example of a game with multiple modes. | |
# THe only dependency is pygame-ce. | |
# This code is in the public domain. | |
# Use it as you see fit. | |
import random | |
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((720, 720)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted for Python 3.6 + 64-bit Windows | |
from ctypes import * | |
from ctypes.wintypes import * | |
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM) | |
WS_EX_APPWINDOW = 0x40000 | |
WS_OVERLAPPEDWINDOW = 0xcf0000 | |
WS_CAPTION = 0xc00000 |