0% found this document useful (0 votes)
204 views7 pages

Hero and Mouse Movement Functions

The document defines several functions that control the movement of a hero and mouse character across multiple levels. It includes functions for moving in zig zags, stair stepping, caterpillar-like movement, crossing rivers, and using push/restore abilities on enemies. Various parameters are passed to functions to customize the character movements.

Uploaded by

Star in the sky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views7 pages

Hero and Mouse Movement Functions

The document defines several functions that control the movement of a hero and mouse character across multiple levels. It includes functions for moving in zig zags, stair stepping, caterpillar-like movement, crossing rivers, and using push/restore abilities on enemies. Various parameters are passed to functions to customize the character movements.

Uploaded by

Star in the sky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

def crossRiver():

# Add function code here


[Link](2)
crossRiver()
crossRiver()

[Link]()
[Link](2)
[Link]()
[Link](2)
[Link](2)
[Link]()
[Link](2)
[Link]()
[Link]()
[Link](2)
[Link](2)

def zigZag():
[Link]()
zigZag()
[Link]()
[Link]()
[Link]()
[Link]()
[Link](1)
[Link](1)
[Link](1)
[Link](1)
[Link](2)
[Link](1)
[Link](2)
[Link]()
[Link](1)
[Link](1)
[Link](2)
[Link](1)
[Link](2)
[Link](1)
[Link](1)
[Link](1)
[Link]()
[Link](2)

3
def zigZag():
[Link](1)
[Link](1)
[Link](1)
[Link]()
[Link](1)
zigZag()
[Link]()
[Link]()
[Link](1)
[Link]()
[Link](2)
[Link](1)
[Link]()
[Link](1)
[Link]()
[Link]()
[Link]()
[Link](1)
[Link](1)
[Link](1)
[Link](4)
[Link](5)

# Define and write the stairStep function here.


def stairStep():
[Link]()
[Link]()
[Link]()
stairStep()
[Link](1)
[Link](3)
[Link](1)
[Link](1)
[Link]()
[Link](2)
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link](4)
[Link](1)
[Link]()
[Link](1)
[Link]()

def caterpillar(upDownSteps, rightSteps):


[Link](upDownSteps)

caterpillar(1, 2)
caterpillar(2, 1)
caterpillar(3, 2)

[Link](1)
[Link]()
[Link]()
[Link]()

[Link](2)
[Link](1)
[Link](1)
[Link](2)
[Link](1)
[Link](2)
[Link](1)
[Link](3)
[Link](2)
[Link](3)
[Link](1)
[Link](4)
[Link]()
[Link](3)
[Link](2)
6

def crossRiver(heroSteps, mouseSteps):


# Add function code here.
crossRiver(1, 2)
crossRiver(1, 1)

[Link]()
[Link]()
[Link](2)
[Link](2)
[Link]()
[Link](1)
[Link](1)
[Link](2)
[Link]()
[Link](2)
[Link](3)
[Link](2)
[Link](1)
[Link](2)
[Link](1)
[Link]()
[Link](2)
[Link](2)
[Link](2)

def pushAndRestore(steps):
# Add function code here.
pushAndRestore(2)
pushAndRestore(3)
pushAndRestore(4)

[Link](2)
[Link](1)
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](3)
[Link](5)
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link]()
[Link]()
[Link](1)
[Link](5)
[Link](1)
[Link](2)

def pushAndRestore(steps):
pushAndRestore(2, 2)

[Link](2)
[Link](2)
[Link](2)
[Link](2)
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](1)
[Link]()
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](2)
[Link](2)
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](2)
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link](3)
[Link]()

9
def pushAndRestore(steps):
pushAndRestore(2, 2)

[Link](2)
[Link](2)
[Link](2)
[Link](2)
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](1)
[Link]()
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](2)
[Link](2)
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](2)
[Link]()
[Link]()
[Link]()
[Link]()
[Link]()
[Link](3)
[Link]()

10

octans = 'Octans'
def pushAndRestore(steps):
pushAndRestore(2, 2)
[Link](2)
[Link](2)
[Link](2)
[Link](2)
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](3)
[Link](1)
[Link](2)
[Link]()
[Link]()
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](2)
[Link](1)
[Link]()
[Link](2)
[Link]()
enemy = [Link]()
[Link](enemy)
[Link](1)
[Link](1)
[Link](1)
enemy = [Link]()
[Link](enemy)

Ss17Mm#+

You might also like