Skip to main content

create and edit modd.io games in python

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymodd-1.1.0.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl (445.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Hashes for pymodd-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1807bb2ea7ae0957313fc5cd449d105c79a52f01bb00397fafa169e5dca422d0
MD5 f1ccab909975f489680711155c9a176d
BLAKE2b-256 a4bcd8685f1c9e8823562d510f4ad199ca5e44a3966b163bc9bfd48c52084808

See more details on using hashes here.

File details

Details for the file pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymodd-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc46cfa5e15ff582740f8ffd3ca3de758aee6b05a7d382139df4c637c10ed34e
MD5 f2370d8769b5cef040d4cb3e0c8c092b
BLAKE2b-256 0155242ab0676cf3a4e47f4b08ece6032ed53b46dbe10b0ac6872ae472700d87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page