Skip to content

Refactor Code. #43

Description

@romavini

Improve the structure and organization of the code. Sugestion:

Reflexy/reflexy/
+-- main.py     -> call runner function
+-- runner.py     -> set time and loop
+-- menus/
|    +-- menus.py     -> start, in-game and restart menus
+-- models/
|    +-- player.py     -> player sprite
|    +-- spider.py     -> spider sprite
+-- weapons/
|    +-- ray.py     -> ray sprite
|    +-- sword.py     -> sword sprite
+-- logic/
|    +-- simple/
|    |    +-- spider_logic.py     -> default spider brain
|    +-- ann/
|    |    +-- player_logic.py     -> ann interpreter
|    |    +-- spider_logic.py     -> ann interpreter
+-- helpers/
|    +-- general.py
|    +-- moviments.py     -> spider and player moviments
|    +-- colision.py     -> colision system and checks
|    +-- math.py    

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions