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.0.8.tar.gz (81.6 kB view hashes)

Uploaded Source

Built Distributions

pymodd-1.0.8-cp311-none-win_amd64.whl (377.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pymodd-1.0.8-cp311-none-win32.whl (365.1 kB view hashes)

Uploaded CPython 3.11 Windows x86

pymodd-1.0.8-cp311-cp311-macosx_11_0_arm64.whl (506.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pymodd-1.0.8-cp311-cp311-macosx_10_7_x86_64.whl (524.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

pymodd-1.0.8-cp310-none-win_amd64.whl (377.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pymodd-1.0.8-cp310-none-win32.whl (365.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

pymodd-1.0.8-cp310-cp310-macosx_11_0_arm64.whl (506.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pymodd-1.0.8-cp310-cp310-macosx_10_7_x86_64.whl (524.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

pymodd-1.0.8-cp39-none-win_amd64.whl (377.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pymodd-1.0.8-cp39-none-win32.whl (365.1 kB view hashes)

Uploaded CPython 3.9 Windows x86

pymodd-1.0.8-cp38-none-win_amd64.whl (377.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pymodd-1.0.8-cp38-none-win32.whl (365.0 kB view hashes)

Uploaded CPython 3.8 Windows x86

Supported by

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