Demo entry 1487251

PyLink

   

Submitted by anonymous on Apr 21, 2015 at 00:13
Language: Python. Code size: 303 Bytes.

class Hero(pylink.game.Character):
	res = 'hero'
	physics = 'rectangle'
	width = 20
	height = 40
	speed = 1
	mass = 40

	@pylink.game.animation
	@pylink.game.control(pyglet.window.key.SPACE)
	def link(self):
		terminal = self.find(pylink.game.Terminal)
		if terminal:
			terminal.activate()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).