floating-hippo


Namefloating-hippo JSON
Version 0.0.10 PyPI version JSON
download
home_page
SummaryFloating Hippo is a simple, abstracted, and easy to use library for 2D simulations using Pymunk and Pygames.
upload_time2024-01-11 12:40:14
maintainer
docs_urlNone
authorBijoy Kar
requires_python
licenseMIT
keywords physics simulation pymunk pygame
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
    <img src="https://github.com/iamBijoyKar/floating_hippo/assets/85790967/ba8de7a3-e766-404a-9a24-ff413036a411" width="300" alt="logo" />
    <h1> Floating Hippo </h1>
    <p> Floating Hippo is a simple, abstracted, and easy to use library for 2D simulations using Pymunk and Pygames. 
    </p>
</div>

> **Note:** This library is still in development and is not ready for use. We are looking for contributors to help us finish this project 🙂

## Installation 🪄
```bash
pip install floating-hippo
```

## Usage 📖

Simple example of a simulation dropping balls on a |_| shaped platform on mouse click using Floating Hippo.

### Code 👇

```python
from floating_hippo import Simulation

# Width and Height of the window
WIDTH,HEIGHT = 800,600

# Create a simulation
simulation = Simulation(WIDTH,HEIGHT,caption="Test",gravity=(0,1000))

# Create a segment shape like |_|
simulation.create_segment((100,100),(100,500))
simulation.create_segment((100,500),(600,500))
simulation.create_segment((600,500),(600,100))

@simulation.events.add_event("mousebuttondown")
def on_click(event,*args,**kwargs):
    simulation.create_ball(event.pos)

if __name__ == "__main__":
    simulation.run()
```
![falling_balls_floating_hippo - Made with Clipchamp](https://github.com/iamBijoyKar/floating_hippo/assets/85790967/17dcbfbb-4874-4124-8be4-cf22722edea3)


## Contributing 🤝

Contributions, issues and feature requests are welcome! 


## Show your support ⭐️

Give a ⭐️ if this project helped you!

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "floating-hippo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "physics,simulation,pymunk,pygame",
    "author": "Bijoy Kar",
    "author_email": "bjoykar54321@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "<div align=\"center\">\n    <img src=\"https://github.com/iamBijoyKar/floating_hippo/assets/85790967/ba8de7a3-e766-404a-9a24-ff413036a411\" width=\"300\" alt=\"logo\" />\n    <h1> Floating Hippo </h1>\n    <p> Floating Hippo is a simple, abstracted, and easy to use library for 2D simulations using Pymunk and Pygames. \n    </p>\n</div>\n\n> **Note:** This library is still in development and is not ready for use. We are looking for contributors to help us finish this project \ud83d\ude42\n\n## Installation \ud83e\ude84\n```bash\npip install floating-hippo\n```\n\n## Usage \ud83d\udcd6\n\nSimple example of a simulation dropping balls on a |_| shaped platform on mouse click using Floating Hippo.\n\n### Code \ud83d\udc47\n\n```python\nfrom floating_hippo import Simulation\n\n# Width and Height of the window\nWIDTH,HEIGHT = 800,600\n\n# Create a simulation\nsimulation = Simulation(WIDTH,HEIGHT,caption=\"Test\",gravity=(0,1000))\n\n# Create a segment shape like |_|\nsimulation.create_segment((100,100),(100,500))\nsimulation.create_segment((100,500),(600,500))\nsimulation.create_segment((600,500),(600,100))\n\n@simulation.events.add_event(\"mousebuttondown\")\ndef on_click(event,*args,**kwargs):\n    simulation.create_ball(event.pos)\n\nif __name__ == \"__main__\":\n    simulation.run()\n```\n![falling_balls_floating_hippo - Made with Clipchamp](https://github.com/iamBijoyKar/floating_hippo/assets/85790967/17dcbfbb-4874-4124-8be4-cf22722edea3)\n\n\n## Contributing \ud83e\udd1d\n\nContributions, issues and feature requests are welcome! \n\n\n## Show your support \u2b50\ufe0f\n\nGive a \u2b50\ufe0f if this project helped you!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Floating Hippo is a simple, abstracted, and easy to use library for 2D simulations using Pymunk and Pygames.",
    "version": "0.0.10",
    "project_urls": null,
    "split_keywords": [
        "physics",
        "simulation",
        "pymunk",
        "pygame"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "948671c7b84c0fbbd0cd5d77ebfd4e1d9261791acae8403c2c6fcac2ef285002",
                "md5": "5555b90af3468fa497cdec26c31c9fd4",
                "sha256": "3db4d965900ffccaff4a7b555330979aa20c32b5b35737c36a08c7edeaf09a39"
            },
            "downloads": -1,
            "filename": "floating_hippo-0.0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5555b90af3468fa497cdec26c31c9fd4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5194,
            "upload_time": "2024-01-11T12:40:14",
            "upload_time_iso_8601": "2024-01-11T12:40:14.691623Z",
            "url": "https://files.pythonhosted.org/packages/94/86/71c7b84c0fbbd0cd5d77ebfd4e1d9261791acae8403c2c6fcac2ef285002/floating_hippo-0.0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-11 12:40:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "floating-hippo"
}
        
Elapsed time: 0.17303s