Class hours: 10:05 – 2:45
Mr. Bohmann | wbohmann@ewsd.org
10:05 Today’s Notes & Attendance
Week 26 – Jump right in to Skills Today
Student Leadership Meeting – 11:55pm 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 –
The concept of “game physics” usually includes all movements and collisions than an object might have in a game. Think about a simple cannonball shot from the deck of a pirate ship. How should an object like that behave?
- It should have force as it comes out of the cannon, giving it direction and speed
- It should fly out and fall out of the air due to gravity
- If the cannonball hits another object, the cannonball has some kind of collision based on the mass and what it collides with. Check out what I mean
Before quality game engines, this used to have to be carefully programmed to look real.
In Unity, there is a build in Physics engine just for this.
Open your 2D project (called) Game Programming Playground Project. Create a new 2D Scene
-name it PhysicsPractice
I have some new Sprites for you , grab what you like from my Google Drive Folder
Rigidbody and Rigidbody2D
In Unity, the physics engine is handled by a component that you attach to a game object.
For a 2D game, component is called Rigidbody2D. When you attach this component to a game object like a sprite, that object automatically comes under the control of the Unity 2D Physics engine. Objects with a Rigidbody2D component can respond realistically to physical forces such as gravity.
Rigidbody 2D Properties can be modified to make your gameObject behave more like you intend it to. For example a tennis ball is bouncy and a cannonball is not (so much).
Some Properties include:
- Mass – lets you control how much mass an object contains. The higher the mass, the harder an object is to move and the more effect it has when it collides with other objects in the game. Mass does not change how fast an object will fall.
- Gravity – controls how strongly gravity will affect your game object. Increase gravity to increase the speed that something falls (or does not – use negative numbers)
- Linear Drag – an object thrown in the air will naturally slow down due to air resistance. A beach ball has more linear drag than a rock.
- Angular Drag – Some objects spin (rotate) very easily, without much resistance like the wheel on your bike. Higher drag values will slow an objects spinning motion.
- Body Type (dynamic, kinematic or static) more on this later….
Bounce and Friction are Material Properties
In Unity we can create our own physics materials to control the behavior of our gameObjects.
The Friction value controls how much resistance is felt when an object is moving in contact with this material. A value of 0 means there is no friction or resistance at all.
The Bounciness value shows how much one object will bounce when it collides. A value of 0 means the object will not bounce at all.
Challenge: Bowling Game
Don’t worry, we won’t use any code! (well, maybe a little bit…)
- Create a new scene. Name it Bowling Game
- Set up your bowling ball sprite at the top of the screen and your pins at the bottom of the screen (10 Pins)
- Add Rigidbody 2D for your ball and pins – don’t forget the colliders
- Add physics material for pins/ball as you see fit
- You can also change the starting point of the bowling ball so it doesn’t hit the top pin directly in the center. Can you also adjust the bowling ball’s Mass, Angular Drag, Linear Drag, and Gravity Scale to produce different behavior?
- Observe and try to understand how different Rigidbody 2D properties affect your game
11:55 SkillsUSA
Continue working with your partner on your deliverables for SkillsUSA.
12:25 – 12:55 Lunch
12:55 Independent Reading
1:20 Break
1:30 Design Challenge
1:55 Production Time and Guided Support
2:40 Dailies
Dailies can be placed in the CAWD2 Dailies Folder on the CAWD2 Public Folders drive