Week 4: Gameplay Mechanics - June 7 - 11
Exercise
·
Beginner
·
+0XP
·
0 mins
·
Unity Technologies

Join us Mondays and Thursdays at 9:00am PT by registering here.
This week, you will begin the process of creating your own personal project from start to finish. First, you’ll learn what a personal project is, what the goals for it are, and what the potential limitations are. Then you will take the time to come up with an idea and outline it in detail in your Design Document, including a timeline for when you hope to complete certain features. As the week progresses, you will program the functionality of your project using "primitives," which are simple geometric shapes in Unity. You will eventually replace those primitive shapes with real art assets in order to produce a playable prototype that is uniquely your own.
1. Before you begin
To participate in this session and follow along, you need:
- Unity 2020 LTS installed through the Unity Hub
If this is your first Create with Code live learning session, you can catch up by:
- Completing the required content from previous weeks
*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.
2. Week 4 Content
This week you will program an arcade-style Sumo battle with the objective of knocking increasingly difficult waves of enemies off of a floating island, using power ups to help defeat them. In creating this prototype, you will learn how to implement new gameplay mechanics into your projects, which are new rules or systems that make the game more interesting to play. On one hand, you will learn to program a powerup, which give the player a temporary advantage. On the other hand, you will learn to program increasingly difficult enemy waves, which make survival more challenging for the player. A good balance of powerups and increasing difficulty make for a much more interesting gameplay experience.
Essential Content
- 4.1 - Watch Where You're Going
- First things first, we will create a new prototype and download the starter files!
- 4.2 - Follow the Player
- In this lesson, we will create an enemy to challenge the player!
- 4.3 - Power Up and Count Down
- In this lesson, we’re going to create a powerup that gives the player a temporary strength boost, shoving away enemies that come into contact!
- 4.4 - For-Loops and Waves
- In this lesson we will wrap things up by putting these pieces together!
Optional Content
- Unit 4 Challenge - Soccer Scripting
- Use the skills you learned in the Sumo Battle prototype in a completely different context: the soccer field. Just like in the prototype, you will control a ball by rotating the camera around it and applying a forward force, but instead of knocking them off the edge, your goal is to knock them into the opposing net while they try to get into your net.
- Unit 4 Quiz
- Assess your knowledge of the skills and concepts learned in Unit 4
- Bonus Content
- Easy: Harder enemy
- Medium: Homing rockets
- Hard: Smashingly good
- Expert: Boss battle
Jr. Programmer Content
3. Live Sessions - Monday, June 3 and Thursday, June 10
Monday Recorded Session:
Thursday Recorded Session:
Friday Power Up Session:
4. Next Steps
Next Steps
Finish Create with Code
- Complete the full Create with Code course, picking up where we left off at Unit 5 - User Interface
Continue learning after Create with Code:
- Continue working on your personal project and share your creation with us and the community on the Create with Code Learn Live Discussion Page
- Take the next steps on your learning path with these courses on game development and C#
- Start or finish working through the Jr. Programmer Pathway
- If you've been following along with Jr Programmer jump to Programming Simple Functionality Mission Checkpoint
- Make the most of Unity with the Unity Student plan or the Education Grant license if you’re a student or educator
5. Share your work in progress
If you've made some progress on your Personal Project this week, take a screenshot or screen-recording and post it here to share what you made! To upload your project online as a WebGL build so others can play it, you can:
- Follow the instructions to build your project for WebGL
- Go to Unity Connect and click the Post Project button in the top-right corner
- Follow the instructions to upload your WebGL project
- Share a link in your submission description below so other people know where to find it
Please also share any "behind-the-scenes" info about how you made your project!
Please login to submit
Submission Gallery
Play
Prototype 4 - bonus
Player can jump, collect coins and bonus powers. Can also choose when to activate and use powers. Watch out for the red boss.
Play
Create with Code: Live - Spring 2021 - Week 4
The player-follow system for the enemy is a bit weird in the WebGL version.
Play
Animal Taxi
Couldn't be around for the Game Jam unfortunately but this the prototype I created as my personal project during create with code
Play
Inexplicably Sentient Ball Conflict
Create With Code - tweaked with all the bonus features. Try to make it to the 7th wave :)
Play
Prototype 4 from CreateWithCode Live
Use left and right keys to rotate camera view, and then nudge the player ball forward or backward using up and down keys. Try to stay on the board.
Play
Prototype 4 - Marbles
The 4th prototype in the Create with Code Spring 2021 session. Was a good combination of most of the modules so far and some new things. Wanted to do a lot more with this but was so caught up in making cool things I decided I had to move on! Let me know what you think below, and also some ideas on what to do after the first Boss fight, as it starts to get so many 'marbles' that you can't do anything.