1. A simple cairo draw queue using closures

    Wed 12 May 2010
    By stu

    Often it's useful to be able to store up drawing commands so you can use them later somewhere else (or even just pass them to another thread).

    This is a simple drawing model, implemented in cairo, hopefully somebody will find it useful.


    ``` {: .brush:python} class DrawQueue: ''' A list of …

    Tagged as : creative coding python
  2. Playing a sound in pygame

    Sun 24 February 2008
    By stu

    It can be useful to test sounds in your current engine (esp for testing MOD support), so I've made a tiny sound player for pygame. The code is just this:

    import sys, pygame
    from pygame.locals import *
    import pygame.mixer
    if __name__=="__main__":
        pygame.display.set_mode((120, 120), DOUBLEBUF | HWSURFACE …
    Tagged as : creative coding python
  3. Ball breaker update

    Mon 19 November 2007
    By stu

    Reached a small milestone in my bat and ball game (BallBreaker), the fonts are implemented as bitmap fonts, meaning that everything on the rendered on the game screen is original material.

    The current font system is based on tiles, so it should be easy to implement animation and cool stuff …

    Tagged as : creative coding python
  4. Retro font

    Mon 08 October 2007
    By stu

    I've just finished the initial version of the font that'll go into my game ball breaker ("Ball Breaker Caps")... Some of the characters need more work, but it has the retro-future look I'm going for.

    This means that I can feel happy about putting in the high score table and …

    Tagged as : creative coding

Page 2 / 3