Skip to content

merlinlikethewizard/Cosmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmo.py

This is a text based python game engine I started writing with my friend a while back. It's just a proof of concept, not intended for actual use. My goal was to make it fully modular, with each level file containing descriptions of the terrain, items, etc. I also implemented movable blocks, NPC chats, an inventory and... that's about it. Most of the code is in cosmo.py and cosmoObjects.py.

Examples:

=========
| Field |
===========================================
|         "[[[==]]"                     ⍋⍋|
|             ..             ⍋⍋⍋⍋  ⫝ ""⍋⍋⍋|
|            ..        ⍋⍋   ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|"           ..         ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|             ..      ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|   "         ..          ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|             ..        ⍋⍋⍋   ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|             ..       ⍋⍋       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|⍋           ..                   ⍋⍋⍋⍋⍋⍋⍋⍋|
|           ..                     ⍋ ⍋⍋⍋⍋⍋|
|          ..        º"              ⍋⍋⍋⍋⍋|
|⍋⍋        ..                 "       ⍋⍋⍋⍋|
|⍋          ..                        ℺⍋⍋⍋|
|            ..   ⚇           ""   ⍋⍋⍋⍋⍋⍋⍋|
|             _            ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|            |O|         ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|                          "  ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|                                  ⍋⍋⍋⍋⍋⍋⍋|
|⍋                              ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋|
|⍋⍋⍋        "           "          ⍋⍋⍋⍋⍋⍋⍋|
|                               "⍋⍋⍋⍋⍋⍋⍋⍋⍋|
===========================================
| -FERN- You look at the fern and feel    |
| happy.                                  |
|                                         |
|                                         |
===========================================
| ♡♡♡♡♡ |                         | ⟡⟡⟡⟡⟡ |
=========                         =========
================
| Field Alcove |
===========================================
|                                         |
|                                         |
|                                         |
|                                         |
|                                         |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋      "  ⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋               ⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋ " º         ""  ⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋         ¬       ⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋   "           "⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋         "   ⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋  ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋       |
|       ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋ ⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋       |
|                                         |
|                                         |
|                                         |
|                                         |
|                                         |
===========================================
|                                         |
|                                         |
|                                         |
|                                         |
===========================================
| ♡♡♡♡♡ |                         | ⟡⟡⟡⟡⟡ |
=========                         =========
=======
| MOM |
===========================================
|        ###########                      |
|      ##################                 |
|     #####################               |
|    ###########  ___ _  ###              |
|    ########    ___ _   /                |
|    #######     __    __\                |
|     #| \#-----/  \--/  \                |
|     #\, #     \__/  \__/                |
|      #\             \  \                |
|        \            `  /                |
|          \        ___ /                 |
|           \ \        /                  |
|           |   ------                    |
|           /       \                     |
|      #######      ######                |
|     ######################              |
| --------------------------------------- |
| [ Good morning Cosy.                  ] |
| [                                     ] |
| [                                     ] |
| --------------------------------------- |
===========================================
| >Morning, Mom.                          |
| -Bacon.                                 |
| -Don't call me Cosy.                    |
|                                         |
===========================================
| ♡♡♡♡♡ |                         | ⟡⟡⟡⟡⟡ |
=========                         =========

About

A little text based game engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published