File: icream.txt

package info (click to toggle)
nikwi 0.0.20120213-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 8,628 kB
  • ctags: 1,246
  • sloc: cpp: 7,111; ansic: 880; objc: 247; makefile: 142; sh: 48
file content (23 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Collision event handler for "ice cream"
#

Object	obj = getThisObject();
Object	other = getOtherObject();

if (other == getHero())
{
	float	a = 0.0;
	int	x = getObjectXPosition(obj) + 16;
	int	y = getObjectYPosition(obj) + 16;
	while (a < 360.0)
	{
		createParticleObject(makeCode("par2"), x, y, a, 3.0, 40);
		a = a + 20.0;
	}

	destroyObject(obj);
	
	nextLevel();
}