mima-engine 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mima-engine might be problematic. Click here for more details.
- {mima_engine-0.2.1 → mima_engine-0.2.2}/PKG-INFO +1 -1
- mima_engine-0.2.2/src/mima/__init__.py +1 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/color_gate.py +13 -12
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/gate.py +15 -11
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/close_dialog.py +2 -1
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima_engine.egg-info/PKG-INFO +1 -1
- mima_engine-0.2.1/src/mima/__init__.py +0 -1
- {mima_engine-0.2.1 → mima_engine-0.2.2}/README.md +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/pyproject.toml +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/setup.cfg +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/pygame_assets.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/pygame_audio.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/pygame_backend.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/pygame_camera.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/backend/pygame_events.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/collision.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/engine.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/template.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tile.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tile_animation.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tile_info.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tile_layer.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_layer.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_map.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_object.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_objectgroup.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_template.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_tile.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tiled/tiled_tileset.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tilemap.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tileset.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/tileset_info.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/maps/transition_map.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/mode_engine.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/animated_sprite.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/attribute_effect.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/attributes.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/creature.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/dynamic.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/colorize_screen.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/debug_box.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/light.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/show_sprite.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/walking_on_grass.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/effects/walking_on_water.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/loader.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/projectile.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/sprite.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/color_switch.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/container.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/floor_switch.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/light_source.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/logic_gate.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/movable.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/oneway.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/pickup.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/switch.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/objects/world/teleport.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scene_engine.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/command.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/add_quest.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/change_map.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/equip_weapon.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/give_item.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/give_resource.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/move_map.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/move_to.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/oneway_move.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/parallel.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/play_sound.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/present_item.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/progress_quest.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/quit_game.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/save_game.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/screen_fade.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/serial.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/set_facing_direction.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/set_spawn_map.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/show_choices.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/show_dialog.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/commands/take_coins.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/scripts/script_processor.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/states/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/states/game_state.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/states/memory.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/states/quest.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/alignment.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/blend.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/damage.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/direction.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/gate_color.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/graphic_state.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/keys.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/mode.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/nature.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/object.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/player.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/position.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/start.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/terrain.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/tile_collision.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/weapon_slot.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/types/window.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/usables/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/usables/item.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/usables/weapon.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/colors.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/constants.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/functions.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/input_defaults.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/logging.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/property.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/runtime_config.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/util/trading_item.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/__init__.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/camera.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/mima_mode.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/mima_scene.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/mima_view.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima/view/mima_window.py +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima_engine.egg-info/SOURCES.txt +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima_engine.egg-info/dependency_links.txt +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima_engine.egg-info/requires.txt +0 -0
- {mima_engine-0.2.1 → mima_engine-0.2.2}/src/mima_engine.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.2"
|
|
@@ -15,28 +15,29 @@ class ColorGate(Gate):
|
|
|
15
15
|
self,
|
|
16
16
|
px: float,
|
|
17
17
|
py: float,
|
|
18
|
+
name: str = "ColorGate",
|
|
19
|
+
*,
|
|
20
|
+
color: GateColor,
|
|
21
|
+
tilemap=None,
|
|
22
|
+
dyn_id: int = -1,
|
|
18
23
|
tileset_name: str,
|
|
19
24
|
image_name: str,
|
|
20
25
|
sprite_name: str,
|
|
21
26
|
graphic_state: GraphicState,
|
|
22
27
|
facing_direction: Direction,
|
|
23
|
-
color: GateColor,
|
|
24
|
-
tilemap=None,
|
|
25
|
-
dyn_id: int = -1,
|
|
26
|
-
name: str = "ColorGate",
|
|
27
28
|
):
|
|
28
29
|
super().__init__(
|
|
29
30
|
px,
|
|
30
31
|
py,
|
|
31
32
|
name,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
tilemap=tilemap,
|
|
34
|
+
dyn_id=dyn_id,
|
|
35
|
+
tileset_name=tileset_name,
|
|
36
|
+
image_name=image_name,
|
|
37
|
+
sprite_name=sprite_name,
|
|
38
|
+
graphic_state=graphic_state,
|
|
39
|
+
facing_direction=facing_direction,
|
|
40
|
+
bombable=False,
|
|
40
41
|
)
|
|
41
42
|
self.color = color
|
|
42
43
|
self.type = ObjectType.COLOR_GATE
|
|
@@ -15,24 +15,28 @@ class Gate(Dynamic):
|
|
|
15
15
|
self,
|
|
16
16
|
px: float,
|
|
17
17
|
py: float,
|
|
18
|
+
name: str = "Gate",
|
|
19
|
+
*,
|
|
20
|
+
tilemap=None,
|
|
21
|
+
dyn_id: int = 0,
|
|
18
22
|
tileset_name: str,
|
|
19
23
|
image_name: str,
|
|
20
24
|
sprite_name: str,
|
|
21
25
|
graphic_state: GraphicState,
|
|
22
26
|
facing_direction: Direction,
|
|
23
27
|
bombable: bool = False,
|
|
24
|
-
tilemap=None,
|
|
25
|
-
dyn_id: int = 0,
|
|
26
|
-
name: str = "Gate",
|
|
27
28
|
):
|
|
28
|
-
|
|
29
|
+
if graphic_state not in (
|
|
29
30
|
GraphicState.OPEN,
|
|
30
31
|
GraphicState.CLOSED,
|
|
31
32
|
GraphicState.LOCKED,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
):
|
|
34
|
+
msg = (
|
|
35
|
+
f"graphic_state of Gate {name}{dyn_id} must be either 'open'"
|
|
36
|
+
f", 'closed', or 'locked', but it {graphic_state}"
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
raise ValueError(msg)
|
|
36
40
|
|
|
37
41
|
super().__init__(px, py, name, tilemap, dyn_id)
|
|
38
42
|
|
|
@@ -126,6 +130,9 @@ class Gate(Dynamic):
|
|
|
126
130
|
Gate(
|
|
127
131
|
px=px,
|
|
128
132
|
py=py,
|
|
133
|
+
name=obj.name,
|
|
134
|
+
tilemap=tilemap,
|
|
135
|
+
dyn_id=obj.object_id,
|
|
129
136
|
tileset_name=obj.get_string("tileset_name"),
|
|
130
137
|
image_name=obj.get_string("tileset_name"),
|
|
131
138
|
sprite_name=obj.get_string("sprite_name"),
|
|
@@ -136,9 +143,6 @@ class Gate(Dynamic):
|
|
|
136
143
|
obj.get_string("facing_direction", "south").upper()
|
|
137
144
|
],
|
|
138
145
|
bombable=obj.get_bool("bombable"),
|
|
139
|
-
tilemap=tilemap,
|
|
140
|
-
dyn_id=obj.object_id,
|
|
141
|
-
name=obj.name,
|
|
142
146
|
)
|
|
143
147
|
]
|
|
144
148
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|