Exercise 2 (javascript code)
a. Make a function that candraw a tree at a specific x, y location
i. (It doesn’t have to be fancy, say64X64 pixels).
b. Make a function that can draw asquare brick wall (64X64). (again doesn’t have to be fancy)
c. Using a 2D array create a mock-up level of mountains, treesand a background.
i. Before careful of draw order here.
ii. Use numbers 1 = wall, 2 equals tree, break the level up intoa 64X64 pixel grid.
iii. Background can be a single color, however the trees andwalls must stand out on it. (Background cannot be white)
Expert Answer
An
PayPal Gateway not configured
PayPal Gateway not configured