File: firewall.lua

package info (click to toggle)
blobby 1.1.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,944 kB
  • sloc: cpp: 22,442; xml: 779; python: 56; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
__AUTHOR__ = "chameleon"
__TITLE__  = "Crazy Volley - Firewall"
function OnBallHitsPlayer(player)
	if touches(player) > 3 then
		mistake(player, opponent(player), 10)
	end
end
function OnBallHitsWall(player)
	score(opponent(player), 1)
end
function OnBallHitsGround(player)
	mistake(player, opponent(player), 10)
end

SCORE_TO_WIN = 10 * SCORE_TO_WIN