thunderrabbit / robdot_conswi

A swipe game for Godot
1 stars 1 forks source link

Allow SwipeLibrary to showArray given Swipe coordinates #6

Closed thunderrabbit closed 6 years ago

thunderrabbit commented 6 years ago

Given the coordinates of an upside-down U-shaped swipe like this

XXX X X

func givenSwipe_showArray(swipeCoordinates)

Should return [3, 1,1,1, 1,0,1]

Where 3 is the width of the swipe and the 1s and 0s show where tiles are (not) located in the swipe.

This will be used to easily create a library of swipes which can be used to define which swipes are required to pass a given level.