This project requires altering code (xcode 9.2/swift 4) to make the moving ball bounce within new borders:
Details:
Change the project to add three new functions: drawBorder, moveBall, and drawBall. After you add these functions, the contents of the update function will only be the following:
background(gray: 0.5)
drawBorder(width: 100)
moveBall()
drawBall()
Following is a description of the requirements for each of these functions.
drawBall. This function is for the code that renders the ball. In the original Bounce1 project, this is just one line of code (ellipse...). You should add some additional code here, to set the stroke and fill color for the ball. This function will not have any parameters.
moveBall. This function will contain all the code that causes the ball movement. (Cut and paste this code from the update function.) This function will not have any parameters. You will need to change this code, so that the ball will bounce inside the new border, instead of bouncing at the edge of the view.
drawBorder. This function is for a new border 100 pixels wide, that you will add to the program. The function will have one parameter, with the name width. The function will have the drawing instructions to create the border. See the image below of the ball bouncing inside the 100 pixel wide border.
The original file that needs to be edited is included as well as a mock up still image of what the final should look like. ( The red ball should only move within the lighter gray center square)
Due to the simplicity of this project, the budget will not exceed $20
Hi! This should be doable within a day :)
Just one important question: Is it okay to use Apple's SpriteKit in your project to achieve the graphics?
If you don't want that, or don't understand/don't care, then I'll use the CoreAnimation API, which is more compatible with regular non-game-type applications.
I am an iOS developer who is enthusiastic, dedicated and intelligent. I've completed multiple projects on iOS platform. I have a strong portfolio on iTunes.
Mission ABC game on Unity
Jumping Alpha game on Unity
Sprowt Messenger - Chatting application
SpikeIT - Inspiration from Instagram app
Driver App - Cata Black Car
Wixstar Provider - Vendor and consumer app for saloon
Velvaere, Online furniture selling service
Shippe - online shopping e-commerce app
I have worked remotely with various clients since 2015. I can design & develop auto layout for iPhoneX using Xcode 9.1 supporting swift 4.0
Thanks