Skip to main content

Partial pygame wrapper and game programming framework.

Project description

coda_kids

coda_kids is a partial wrapper package around pygame. It’s purpose is to make game development more accessible to a younger audiences of students. It provides inline documentation, wrappers for linter unfriendly features, and provides utility functionality/classes such as game objects and constants for common data such as colors and input.

It is currently being designed for and tested with a series of game programming exercises for an educational textbook titled Coda Kids.

The package is being designed and implemented with and for the following toolset:

Python 3.5.2 with latest Pygame and Pylint. Latest Visual Studio Code (1.11+ as of writting) with the Python extension installed.

Simple Example

import coda_kids as coda

WINDOW = coda.Vector2(800, 600)
SCREEN = coda.start(WINDOW, "Hello World!")
TEXT = coda.TextObject(coda.color.BLACK, 48, "Hello World!")
TEXT.location = WINDOW / 2 # center of window
TEXT.centered = True

while True:
    for event in coda.event.listing():
        if coda.event.quit_game(event):
            coda.stop()
    coda.start_draw(SCREEN, coda.color.WHITE)
    TEXT.draw(SCREEN)
    coda.end_draw()

To Do

  1. Add a 2D animation class supportable by objects.

  2. Runtime type checking for coda_kids class constructors and function arguments.

  3. Provide additional example code and documentation.

  4. Clean up object interface methods.

  5. Refactor finite state machine tools.

Change Log

0.2.4

  • Added opinional 2d sprite animation class for use with objects.

  • Added update loop for game objects that applies velocity and updates animations.

0.2.3

  • Added an output console utility for in window output text. It can be found in coda_kids.utilities.

  • Added support functions and documentation for starting and ending a frame.

  • Cleaned up and added documentation to the .rst file.

0.2.2

  • Updated git repo and setup/url information.

  • Added action system to coda for python class members. [Feature in Alpha]

  • Updated object class to properly scale objects with it’s scale member.

  • Moved standard library imports to coda_kids.utilities

0.2.1

  • Reformatted some of the library utilities.

0.2.0

  • Fixed some formatting issues with the setup.py file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coda_kids-0.2.4.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file coda_kids-0.2.4.tar.gz.

File metadata

  • Download URL: coda_kids-0.2.4.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coda_kids-0.2.4.tar.gz
Algorithm Hash digest
SHA256 7657d64b2cd7b5c6153a89f4d89a6ed8e7de9204cd20dcad5fefa3e945b2a599
MD5 37f0141dfa9e99699fa3bd94e12b8350
BLAKE2b-256 ec46eeb97d1277fb3da71cbbcc8863a3a22b0ff877b978457edc16d69ac73baa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page