create and edit modd.io games in python
Project description
pymodd is a python package for creating and editing modd.io games in python
Features
edit global and entity scripts
organize folders and scripts with a mapping file
edit environment variables
a command to generate and compile a pymodd project
Documentation
The pymodd wiki is located at github.com/jeff5343/pymodd/wiki
A brief outline:
Quick Script Example
view the examples/froge directory in the github repository to view the entire pymodd project
@script(triggers=[Trigger.EVERY_SECOND])
def every_second():
if NumberOfUnitsOfUnitType(UnitType.FROG) < 5:
create_unit_for_player_at_position_with_rotation(UnitType.FROG, Variable.AI, RandomPositionInRegion(EntireMapRegion()), 0)
else:
if NumberOfUnitsOfUnitType(UnitType.FROG_BOSS) == 0:
if Variable.BOSS_TIMER <= 0:
create_unit_for_player_at_position_with_rotation(UnitType.FROG_BOSS, Variable.AI, RandomPositionInRegion(EntireMapRegion()), 0)
update_ui_target_for_player_for_miliseconds(UiTarget.CENTER, 'BOSS SPAWNED', Undefined(), 5000)
decrease_variable_by_number(Variable.BOSS_TIMER, 1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymodd-1.1.0.tar.gz.
File metadata
- Download URL: pymodd-1.1.0.tar.gz
- Upload date:
- Size: 85.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1807bb2ea7ae0957313fc5cd449d105c79a52f01bb00397fafa169e5dca422d0
|
|
| MD5 |
f1ccab909975f489680711155c9a176d
|
|
| BLAKE2b-256 |
a4bcd8685f1c9e8823562d510f4ad199ca5e44a3966b163bc9bfd48c52084808
|
File details
Details for the file pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 445.9 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc46cfa5e15ff582740f8ffd3ca3de758aee6b05a7d382139df4c637c10ed34e
|
|
| MD5 |
f2370d8769b5cef040d4cb3e0c8c092b
|
|
| BLAKE2b-256 |
0155242ab0676cf3a4e47f4b08ece6032ed53b46dbe10b0ac6872ae472700d87
|