Hypatia-engine

Latest version: v0.3.6

Safety actively analyzes 630052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.3.0

Halloween release! "Oops, I waited too long to release" edition!

Please forgive me if I missed anything or err, there's just *so many* changes.

Lily Lemmer

Added

* Python 3.5 support
* Platform-specific pre-requisite instructions in `README.md`
* Anchor maths, type-checking
* Base class for all TMX-related exceptions
* Windows test script
* animatedsprite module: AnimatedSprite class replaces pyganim
* New demo sprites, tilemap, settings
* Add `all()` method to Action enum, which returns all available actions
* Add `cardinals_and_ordinals()` static method to Direction
* Add Scene.render()
* Allow loading of resources from an unpacked directory.
* Create new Direction method, disposition
* tests
* more comments!
* better docstrings

Changed

* `README.md`
* Revamped `CONTRIBUTING.md`
* Replace AnimatedSprite.current_frame() with a property of the same function; AnimatedSprite.current_frame is updated with the current frame every time AnimatedSprite.update() is called.
* Update `AUTHORS.md`
* tests
* Change debug walkabout
* Change game/demo's viewport dimensions
* Change debug TMX scene
* Rename LabeledSurfaceAnchors to FrameAnchors
* FrameAnchors.__init__() now only takes a dictionary. To load with config see new method FrameAnchors.from_config(). Reflecting changes where required.
* Rename AnimatedSpriteFrame to Frame
* Changed dialogbox font size
* Modify Walkabout to inherit pygame.sprite.Sprite. Add image attribute; set by the update method. Blit method split into and uses update method.

Fixed

* `test.sh` uses the `$PAGER` environmental variable instead of `more`
* `test.sh` allows for different python versions
* `README.md` repo install instructions
* Anchor math
* Docstrings
* `.gitignore` PKG-INFO
* Bug 80: python 3 unicode issues when reading files in resources.py. Resource files read as binary/rb
* Fix/implement support for Walkabouts which use ONE sprite for ALL action/direction combinations (only)
* Fix Walkabout `update()` method so Walkabout's `image` attribute is set to the active animation image, thereafter updating said active animation
* tests
* Resolved bug in Direction.from_velocity(): it previously only worked for generating ordinal products whereas there are nonzero values for both axis. This allows for NO direction as well as cardinal directions. Now when a velocity is (0, 0) the returned direction is None.

Removed

* pyganim as dependency
* Anchor.add_ints()
* Remove "encoding" as an argument from AnimatedSprite.pil_image_to_pygame_surface()
* Remove `hat` walkabout

0.2.29

Changed

* README.md syntax error for PyPI

0.2.28

Changed

* I put the directory and file notes from `README.md` to `CONTRIBUTING.md`. I did this because the directory and file notes don't pertain to the PyPi page.

0.2.27

You can now use tiled editor to edit/create scenes. Things are still kinda a mess from just implementing this feature. There may be some bugs I'm not aware of. I rushed this out-the-door. The next update will probably be a cleanup.

Added

* Support for assembling a `Scene` from a Tiled map editor TMX file. See: `Scene.from_tmx_resource()`.
* `objectproperties.xml` for tiled map editor
* a lot more comments for clarity!
* A new contributor: William D. Jones
* Exceptions related to TMX data
* Example TMX/Tiled editor map for showing off the new TMX support
* `Scene.create_human_player()` static method
* "AbsolutePosition" scaffolding in physics
* More scaffolding to sound
* various script notes
* `Scene.from_resource()` class method
* `Scene.from_tmx_resource()` class method
* `TMX` object to represent supported data from a TMX file.
* `install-netbsd-python2.sh` for installing on NetBSD. Thanks William D. Jones!
* Instructions for the files and directories of the Hypatia project in `README.md`
* `README.md` for scene resource directory
* Example debugging tileset `tilesheet-for-tmx-example.png` especially for editing the TMX/Tiled map (Tiled will crash without it)
* Static method for scenes to create a human player.

Changed

* Walkabouts should hopefully be optional for npcs, actors now
* Code cleanup
* `AUTHORS.md`, just changing the "a big thanks" section and my bit, plus
adding William D. Jones as a contributor.
* `CONTRIBUTING.md` is more thorough
* Demo loads scene from TMX, a newly constructed scene
* Default scene constructor only takes its attributes as arguments.
* Game constructor takes a scene object, not a scene name.
* `demo/game.py` reflects new construction argument for scene
* Docstrings are be better
* Actor.say() will return True if it has something to say, False if not.

0.2.26

Added

* `controllers.py` module-level docstring which elaborates on the module. General docstring updates in this module.
* `controllers.MenuController` scaffolding

Fixed

* decreased cyclomatic complexity in `controllers.WorldController.handle_input()`.

Changed

* `AUTHORS.md` file updated to include more info, including emails, and includes our new community managers!
* Icon xfc and png files in `media/icons`

0.2.25

Added

* coverage/tests for actor, constants, and physics modules
* `controllers` module, related to human input control for controlling stuff in the game
* `constants.Direction.cardinal()` class method returns the cardinal directions: north, east, south, and west.
* `constants.Direction.x_plus()` class method associated with the moving x+
* `constants.Direction.x_minus()` class method associated with the moving x-
* `constants.Direction.y_plus()` class method associated with the moving y+
* `constants.Direction.y_minus()` class method associated with the moving y-
* `constants.Direction.from_velocity()` class method which returns the direction infered from velocity

Changed

* `game` module changed a lot--moved move player to humanplayer and handle input to the controllers module
* reordered walk, stand enums in `constants.Action`
* Improved `AUTHORS.md` file.
* `distrib.sh` now checks validity of rst generated by pandoc.
* `actor.Actor` uses `physics.Velocity` as a keyword argument and attribute
* `actor.Actor` now has the `say()` and `talk()` methods (moved from players)
* moved `game` module's collide check to `Scene` class

Fixed

* Removed duplicate `palette_cycle()` function in the animations module.
* made actor use velocity, made the instance of human player start with a default velocity of 20

Removed

* The following attributes were removed from `constants.Direction`: x, y, cardinal. See: the addition of new Direction class methods in this update.
* The doctest code (for testing the module) at the bottom of some hypatia modules

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.