Examples
Basic examples
Below are summarized some examples that can serve as templates for implementing ThorPy functionalities. You can also find many tutorials that may fit your needs. Finally, the documentation contains more technical informations about the objects provided by the library.
- Elements overview - a presentation of elements commonly used in applications
- Basic styling - a few ways to tune the appearance of your elements - size, colors, fonts, ...
- Menu and submenus - a simple example for setting menu and sub-menus.
- Shadows - very short example for generating realistic shadows.
- Image buttons - how to use image for buttons.
- Radio buttons/exclusions - radio buttons and mutual exclusions (Exclusion Pools).
- Alerts - launch alerts (message box).
- User choices - fast way to let user decides between an arbitrary number of possibilities.
- User choices 2 - generate buttons and interact with user.
- Launching elements - how to launch things in a menu.
- Special effects - how to generate smoke, fire, explosions.
Full application examples
Larger scale applications involving ThorPy.
- The Torus - an exploration/survival game in which you sail and walk a procedurally generated world.
- The Phantom Racer - a racing game using a basic pure Python 3D engine designed for CPU.
- NinArow - a simple application for playing four in a row with parametrizable boards and rules. Also provides a decent AI.
- The Undefined - A physically-based game in which you throw asteroids to complete predefined objectives.