Giter Club home page Giter Club logo

hac-game-lib's Introduction

Tested OS: Linux Untested OS: Windows, Mac OS GPLv3 license PRs Welcome Documentation Status Known Vulnerabilities CII Best Practices

hac-game-lib

Hyrule Astronomy Club - Kids coding class - base library for a game development

Introduction

This library is used as a base to teach coding to kids from 6 to 12. It aims at giving an environment to kids that let them focus on the algorithm instead of the lousy display or precise management.

This is obviously extremely simple and does not aim at being anythting serious for game developpers.

If this library is useful for other teachers, I'll make tutorials.

base_game.py screenshot

Here is a quick view of what can currently be achieved with that library:

base_game.py animation

The base game makes use of:

  • The main "game engine" (gamelib.Game.Game)
  • Many different types of structures (from gamelib.Structures): Wall (well the walls...), Treasure (gems and money bag), GenericStructure (trees) and GenericActionnableStructure (hearts and portals)
  • Game()'s menu capabilities.
  • Player and NPC (from gamelib.Characters)
  • Inventory (from gamelib.Inventory)
  • Player and Inventory stats
  • RandomActuator (NPCs in level 2) and PathActuator (NPCs in level 1) (from gamelib.Actuators.SimpleActuators)

Requirements

Python

The hac-game-lib only supports Python 3+. It will not run with Python 2.

Run PIP to install the requirements (only colorama):

pip3 install -r requirements.txt

Terminal color and emojis

It is not really a hard requirement but colored emojis are really bringing the games created to life.
We then recommend to have a color emojis font installed like Noto Color Emojis (on most Linux distributions you can install it from the package manager, search for "noto-color-emoji").

If your terminal application is not displaying color emojis, please have a look at this file and follow the instructions.

Limitations

There is tons of limitations but for the most important ones:

  • Only one player is supported.
  • There is little protections against messing up with the internal. This is on purpose, I want the kids to learn to use the API not mess up with the internals of every single class.

hac-game-lib's People

Contributors

arnauddupuis avatar dansyuqri avatar arekenaten avatar grimmjow8 avatar achoudh5 avatar gunjanraval avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.