Giter Site home page Giter Site logo

paulmadore / hanksmash Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.96 MB

A bambam clone with significant modifications; a keyboard smashing/button mashing program for infants. No harm can be done to the operating environment when infant is running HankSmash. Hardware is a different story.

License: GNU General Public License v3.0

Python 95.88% Groff 4.12%

hanksmash's Introduction

Demonstration

Hanksmash In Action

About

HankSmash is free software released under the Gnu Public License 3. The entire text of that license is available in COPYING.phm.

Important: Credit is due to the following four individuals who developed bambam:

  • Don Brown
  • Spike Burch
  • Marcin Owsiany
  • Bram Meleman

Running

HankSmash requires PyGame to run. If you do not presently have PyGame and you are on a Debian-based system, run:

sudo apt-get install python python-pygame

Now:

  1. Unpack HankSmash
  2. Make hanksmash.py and hanksmash.6 executable: chmod +x hanksmash.py hanksmash.6
  3. Launch the game: python hanksmash.py or python hanksmash.py --uppercase [for uppercase letters to be displayed instead of lowercase letters]

Important: to quit, type out the word quit

  1. Optionally, you can choose to mute some or all of the sound effects in HankSmash.

    To mute only a specified noise, do python hanksmash.py --sound_blacklist data/sounds/.wav

     	NOTE: FILES.phm lists all sound and image files included in 
     	the data folder, complete with path.
    

    To mute all noise before the game even starts, do python hanksmash.py --sound_blacklist

    If you mute all noises before you begin, you will have to restart the program in order to use ANY noises. So, in many cases you may just want to type out

mute

to make it go silent and then 

unmute

to bring the sound back.
  1. When your child or you are done with the program, type out the word

quit

Notes

Doodle Gum by imagex is used in this game.

hanksmash's People

Watchers

James Cloos avatar Paul "P. H." Madore avatar

hanksmash's Issues

Bug

Traceback (most recent call last):
File "hanksmash.py", line 258, in
quit_pos = input(pygame.event.get(), quit_pos)
File "hanksmash.py", line 137, in input
print_image()
File "hanksmash.py", line 169, in print_image
h = random.randint(0, sheight - img.get_height())
File "/usr/lib/python2.7/random.py", line 242, in randint
return self.randrange(a, b+1)
File "/usr/lib/python2.7/random.py", line 218, in randrange
raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
ValueError: empty range for randrange() (0,-41, -41)

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.