Thursday, July 13, 2017
There was some thing missing through out my data . When we were using the big bang formal I need to add wrapping in the text.
There was some thing missing through out my data . When we were using the big bang formal I need to add wrapping in the text.
W.big-bang(0,[list:
| |||||||||||||||||||||||||||
W.on-tick(move-airplane-wrapping-x-on-tick),
| |||||||||||||||||||||||||||
W.to-draw(place-airplane-x)])
But I need to add this formula in the before I would but the big bang wrapping.
We will be using that function that is
Let’s write some test cases for the new function. Here’s one:
Another way to write the test would be:
Now we need to define the move-airplane-xy-on-tick. You should end up with something like this:
Note that we have reused the existing function for the x-axis and, correspondingly, created a helper for the y-axix:
Then we draw the background using this coding fun place-airplane-xy(w): I.place-image(AIRPLANE, w.x, w.y, BACKGROUND) end
|
Comments
Post a Comment