Objectives for Unit 1 Read this checklist and make sure that you know it for the quiz.
While programs (v1) While programs (v2) |
A simple way to have popup input and messages is JOptionPane. Please have a look at the document and see how to use them.
In HSA2 we use simpler form: gc.showDialog() and gs.showInputDialog()
We are going to be using a graphics library, called HSA2, that removes a lot of the complexity of Swing graphics.
We'll learn Swing graphics in grade 12 programming.
You can find the latest HSA2 package on my GitHub .
You'll have instructions in class on how to install it (or see the first video below). Download the zip file at home and install on your home computer.
Go to the Salamander2 youtube channel
The videos discuss how to make ball objects instead of just a bunch of variables, how to make things collide and bounce, how to make arrays and arraylists of balls, how to add and delete balls.
Board Games that can be made after we've learned how to program TicTacToe