Here is a new thread, where we must post the bits of code everyone is embarrassed about! I'll start
This is an excert from my TofuJumper game, which was made mainly to annoy mort.
it seems late nights cause you to forget about the existence of classes.
Code:
###RSW's code for finding the colour of a ranking
def colour(colour):
return {0:'f',
1:'e',
2:'a',
3:'5',
4:'0'}[colour]
### Silly RSW
###He could just have used
def colour(colour):
return 'fea50'[colour]
###<3
This is an excert from my TofuJumper game, which was made mainly to annoy mort.
Code:
global loc, vel, clox, plat, l, r, jumpwait, highest, m, plats, cv, cloc, mplats, mplat, powerups, ability, abilityc, jumppower, sinit, gent, score, gravity, size, Xrange, Poslist, squish, squishv, cubes
loc, vel, cloc, plat, mplat, l, r, jumpwait, highest, m, cv, abilityc, sinit, gent, score, Xrange, squish, squishv, cubes = ([10,10], [0,0], 0, 1, '<3Red', 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, (0,300), 0, 0, 30)