Metadata-Version: 2.3
Name: kikan
Version: 0.0.3
Summary: TUI-based game engine
Project-URL: Bug Tracker, https://github.com/idkarn/kikan/issues
Project-URL: Homepage, https://github.com/idkarn/kikan
Author-email: Kir Ivanov <asagiri@duck.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: blessed
Description-Content-Type: text/markdown

# kikan

TUI-based game engine in Python. Use this little thing to make awesome games right into your terminal.

## Installation

All you need to do is install this module as you usual do.

```sh
$ pip install kikan
```

## Usage

Let's cover all essential things you will use for your game.

### Engine

TODO

### Entities

This is main component a game is built from. Any interactable object in your game is `Entity`. Entities use several default methods to use engine's capabilities.

```py
from kikan import engine
from kikan.entity import Entity
from kikan.math import Vector

class Player(Entity):
  def on_pre_update(self, dt: float):
    ...
  def on_update(self, dt: float):
    ...
  def on_collision(self, other: Entity):
    ...
  def on_input(self, key: str):
    ...

p = Player(Vector(0, 0), "P") # position and texture

engine.start() # at the very end of the file
```

Sometimes you want to manage some variables or display something but you don't need a whole entity with the physics and all that stuff. Then use `MetaEntity`. Such classes don't have to be initialized.

### World

TODO

### Screen

TODO

### Logger

TODO

## Development

So you want to contibute to this package... Let's prepare environment:

1. Make a fork and clone the repo.
2. Install package as editable.
3. Use `tox` to test and run other useful scenarios.
4. (VS Code) Install recommended extensions to follow the code style. Make sure you have installed `mypy` in your system if you want to check static typing on save .

What about tools?

- Use `ruff` to lint your code
- Use `black` to format your code
- Use `mypy` to check static typing in your code

All this you can do with tox.
