2.2.4
Designing a ‘Basketball’ Game
Designing a ‘Basketball’ Game
Designing a ‘Basketball’ Game
When making your basketball game, you need to think about how the game will look, what the inputs are, what the outputs are and what different parts the game has.
![Illustrative background for What will it look like?](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
![Illustrative background for What will it look like?
?? "content](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
What will it look like?
What will it look like?
- You will want to make your game attractive to the player.
- You might want to make it look like a birdseye view of a basketball court.
- The game should have a simple design.
![Illustrative background for What is the input?](https://image-v2.cdn.app.senecalearning.com/2019-04/90514d8f-af55-4c82-9308-90f57f84da87/mouse-computer-,h_400,q_80,w_640.png)
![Illustrative background for What is the input? ?? "content](https://image-v2.cdn.app.senecalearning.com/2019-04/90514d8f-af55-4c82-9308-90f57f84da87/mouse-computer-,h_400,q_80,w_640.png)
What is the input?
What is the input?
- The input is how the player will use the game.
- What will the player need to do with the keypad, mouse, finger, etc. to control the game?
![Illustrative background for What is the output?](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
![Illustrative background for What is the output? ?? "content](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
What is the output?
What is the output?
- The outputs of the game are everything the game should do.
- The ball can be moved with the red and blue boxes.
- The ball should bounce off the walls.
- If the ball hits the basket, you should add points to the team's score.
![Illustrative background for What are the parts of the game?](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
![Illustrative background for What are the parts of the game? ?? "content](https://image-v2.cdn.app.senecalearning.com/2019-09/9a2ef3a4-3741-4c26-88f8-d771f55bccb1/coding-computational-thinking-basketball-game-%20(1),h_400,q_80,w_640.png)
What are the parts of the game?
What are the parts of the game?
- The parts of the game are the different components (parts) of the game that you can see, hear or feel. Parts of the game are:
- The background design.
- The ball.
- The movement of the ball and hands.
- The bounce of the ball off the walls.
- The point-scoring.
- The effects (e.g. sound).
- The music.
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms
1.2.2Pseudocode
1.2.3Flow Diagrams
1.2.4Logical Reasoning & Debugging
1.2.5Reading Algorithms
1.2.6Correcting Algorithms
1.2.7Complete the Algorithm
1.2.8Search Algorithms
1.2.9Linear Search
1.2.10Binary Search
1.2.11Sort Algorithms
1.2.12Bubble Sort
1.2.13Insertion Sort
1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants
2.1.2Comments
2.1.3Input & Output
2.1.4Arithmetic Operators
2.1.5Relational Operators
2.1.6Boolean Operators
2.1.7Sequence
2.1.8Selection
2.1.9Iteration
2.1.10Subroutines
2.1.11Scope
2.1.12Data Types
2.1.13Casting
2.1.14Arrays
2.1.152D Arrays
2.1.16Lists
2.1.172D Lists
2.1.18Strings
2.1.19Syntax Errors
2.1.20Logic Errors
2.1.21Runtime Errors
2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
Jump to other topics
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms
1.2.2Pseudocode
1.2.3Flow Diagrams
1.2.4Logical Reasoning & Debugging
1.2.5Reading Algorithms
1.2.6Correcting Algorithms
1.2.7Complete the Algorithm
1.2.8Search Algorithms
1.2.9Linear Search
1.2.10Binary Search
1.2.11Sort Algorithms
1.2.12Bubble Sort
1.2.13Insertion Sort
1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants
2.1.2Comments
2.1.3Input & Output
2.1.4Arithmetic Operators
2.1.5Relational Operators
2.1.6Boolean Operators
2.1.7Sequence
2.1.8Selection
2.1.9Iteration
2.1.10Subroutines
2.1.11Scope
2.1.12Data Types
2.1.13Casting
2.1.14Arrays
2.1.152D Arrays
2.1.16Lists
2.1.172D Lists
2.1.18Strings
2.1.19Syntax Errors
2.1.20Logic Errors
2.1.21Runtime Errors
2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
![Go student ad image](/en-GB/revision-notes/_next/image?url=%2Fen-GB%2Frevision-notes%2Fimages%2Fgo-student-uk-ad.jpg&w=640&q=100)
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered