Skip to main content

GitHub Workflow Status PyPI PyPI - License

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)

Metadata

Release files for pymodd 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymodd 1.1.0
File Size Uploaded
pymodd-1.1.0.tar.gz 85.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymodd 1.1.0
File Interpreter ABI Platform
pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details

Total release size: 530.9 kB

Release files / pymodd-1.1.0.tar.gz

Download URL pymodd-1.1.0.tar.gz
Size 85.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1807bb2ea7ae0957313fc5cd449d105c79a52f01bb00397fafa169e5dca422d0
BLAKE2b-256 checksum
How to use checksums
a4bcd8685f1c9e8823562d510f4ad199ca5e44a3966b163bc9bfd48c52084808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.2

Release files / pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
Size 445.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cc46cfa5e15ff582740f8ffd3ca3de758aee6b05a7d382139df4c637c10ed34e
BLAKE2b-256 checksum
How to use checksums
0155242ab0676cf3a4e47f4b08ece6032ed53b46dbe10b0ac6872ae472700d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.2

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.6

13 release files

1.0.5

13 release files

1.0.4

13 release files

1.0.3

13 release files

1.0.2

13 release files

1.0.1

13 release files

1.0.0

13 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page