Class hours: 10:05 – 2:45
Mr. Bohmann | wbohmann@ewsd.org
10:05 Today’s Notes & Attendance
Yeah, Friday – Last Day of the week – Happy St. Patricks Day – Sunday, if you recognize in your household
SkillsUSA deadline is today at 12:25
Beta Testing! with PreTech today – the room might be a little noisy
The only real project that you are working on in CAWD2 is the PSA Animation. Our next deliverable (Second Looks) is due on Wednesday, March 20th.
EHS B Day today
Unity – we are going to do a 20 minute exercise right after break today.
10:10 SkillsUSA
Each team will have different work this morning based on your chosen competition:
Read your teams assignments carefully. A big part of the competition is being able to follow the guidelines that are written for each competition.
By Friday at lunch – create a folder with your two names on the Public inside of the weeks “skillsUSA” folder. The folder is found at Public/CAWD. For example if Mr. Cronin and Mr. Bohmann were working together the folder would be:
- “croninBohmann”
Create your folder in the discipline you are working in. DO THIS FIRST
See Mr. Cronin’s Dayplan for specifics – read carefully
See Mr. Cronin’s Dayplan for specifics – read carefully
With your partner go explore the CSS Zen Garden. First, you’ll notice that each site has exactly the same content, it is the CSS that has changed. Then…
Each of you will create your very own version. This week the grades will be individual.
Download the sample HTML and CSS to work on a copy locally. Each of you will work on your very own CSS Zen Garden. Remember, you are not allowed to change any of the HTML code. You must use what is provided for you. You will only change the CSS! to create your own custom version. The sample CSS code is a tool. Your version of the website should be very different and original – or at least look to the web for some layout and design inspirations.
Once you have completed your masterpiece upload all files to your team folder. In this case your team will have two folders inside of the team folder. BohmannZen (with all files inside), CroninZen (with his files inside) for example.
You may modify the style sheet in any way you wish, but not the HTML. This may seem daunting at first if you’ve never worked this way before. The best way to begin is to look at the structure of the HTML and then figure out how you’d like to layout the design.
Your folder will be your last name. All web items will be have all the deliverables inside your team folder. 12:25 Friday is your deadline!
On Friday by 12:25pm – Upload your completed project to your folder.
The Fine Details – In your own web folder you will have (Place in your Team Folder):
- an index.html page
- a CSS stylesheet will be in a css folder (only 1 stylesheet!)
- Font folder for fonts if you are using fonts you have to download
- Your project needs a color palette
- Code Commenting – Use Comments to explain your CSS. This is good practice and really helpful when you are working with a partner.
- Last – test to see that I will be able to view everything in your submission folder! and that your webpage works.
- You do not need to make this site mobile friendly. I will inspect using the desktop only.
As always, validate your code – HTML / CSS. Practice commenting and organizing your code.
10:50 Break
11:00 Unity –
Collision Events
Yesterday we used the Unity Physics engine to add physcial properties and create realistic collisions between two or more objects. What if your game needs something in response to a collision. Aren’t collisions an important part of game play? Can you think of some examples?
Unity is run by event driven programming. Meaning that functions (or blocks of code) will get called when an event happens. Some examples are: player clicks a button, timer reaches zero, health reaches zero, player wins game, player takes damage……
As soon as you add a Collider 2D component to your game object, Unity can run a specific function every time a collision occurs with that object. We added some colliders to our bowling pins and ball yesterday.
Functions with Parameters
Let’s take a closer look at the OnCollisionEnter2D() function. This function has something that we haven’t used before – a parameter.
When a function is called, it is possible to give that function some useful data. The function can then use that data to perform a task. The data is listed inside the function parentheses right after the function name. In this case, Collision2D otherObject is the parameter. The first part (“Collision2D”) shows the type of data and the second part (“otherObject”) is the local name for that piece of data that we can use inside our function.
Let’s write a new script called PinCollision and put on our bowling pin. Then will use the following event to do some action.
private void OnCollisionEnter2D(Collision2D otherObject)
{
Debug.Log(gameObject.name + " hit by " + otherObject.gameObject.name);
if (otherObject.gameObject.CompareTag("Ball"))
{
Destroy(this.gameObject);
}
}
11:30 – 12:25 Skills USA – Deliverables Due at 12:25
12:25 – 12:55 Lunch
12:55 Independent Reading
1:20 Break
1:30 Production Time and Guided Support or 20% Time
- PSA Second Looks – Wednesday, March 20th
2:40 Dailies
Dailies can be placed in the CAWD2 Dailies Folder on the CAWD2 Public Folders drive