Skip to content

dr-jam/GameplayProgramming

Repository files navigation

ECS179 - Gameplay Programming

UPDATES FOR WINTER 2024

Update from the topic course listing ECS189L to full elective status as ECS179! CRNs are no longer required for the course.

Syllabus

Basic Information

Instructor

Dr. Joshua A. McCoy, Assistant Professor
Computer Science & Cinema and Digital Media Departments
Email: jamccoy at ucdavis dot edu
Office: 3033 Kemper Hall
Office Hours: TBD
http://joshmccoy.com
https://faculty.engineering.ucdavis.edu/mccoy/
https://www.twitter.com/deftjams

TA

Kyle Mitchell
Email: kdmitch at ucdavis dot edu
Office Hours: TBD

Course

Lecture Meeting Time: Tuesdays and Thursdays at 1:40-3:00 PM in YOUNG 184
Discussion: Tuesdays at 8:00-8:50 AM in YOUNG184
Holiday:
Final Examination Period: Thursday, March 21st at 3:30 PM

Course Description

This course is about the design and development of nuanced and highly contextual gameplay systems built on the foundation of traditional game engines. Technical game development has many facets, including graphics engines, sound engines, networking, and animation systems. Many of these facets are well-established and provided for in modern game engines. The focus of this course is on the remaining areas that are difficult to abstract and engineer into game engines as they depend on the genre or details of a specific game design.

Materials

Unity version 2022.3.16. Download it directly here or get it with Unity Hub putting the following URI in your browser:
unityhub://2022.3.16f1/d2c21f0ef2f1
You can download Unity Hub here.

Grading and Assessment

  • [45] Group Game Project
  • [45] Exercises
  • [10] Participation and Attendance

Grade Scale

Grade Point Threshold
A 94
A- 90
B+ 87
B 84
B- 80
C+ 77
C 74
C- 70
D+ 67
D 64
D- 60
F 0

Exercises

The programming exercises consist of projects in Unity in which you must implement significant game systems or capabilities. These exercises are to be completed individually and will be worth equal points. Each will have two components, which are described below with a typical amount of grade points they are worth:

  1. [70] The individual programming assignment.
  2. [30] Peer-reviewing the work of another pseudo-randomly assigned student.

Individual Programming Assignment - The exercise repositories, with project descriptions and work specifics, will be distributed via GitHub Classroom. You will be responsible for completing the exercise objectives, code quality, and following the best practices described in class. Final submissions will be made via GitHub Classroom.

Peer review - For each programming exercise, each student will peer review another student's work. The reviewing student will be given access to the repository of another student's submission for review. The peer reviewer will be responsible for a code review based on C# style guides, an assessment of how well the submission achieved the objectives of the assignment and notes for improvement. This review should be done in the master branch and in the root directory of the repo (the same folder that contains the assignment's README).

Group Game Project

You will design and develop your own game given a set of themes and constraints in teams. Each team member will have a main role and a sub-role in the game.

Quizzes

Light quizzes may be given during class meetings. Their contents will be based on recent lectures and readings.

Participation and Attendance

Students are required to attend and participate in class, labs, and team meetings. Attendance will be taken during lectures and discussion sections.

Participation

Each submitted participation code is worth 1 grade point. You need at least five codes to max out your participation grade.

Attendance

The attendance rules are suspended while the course is offered remotely.

The attendance algorithm is as follows:
AttendanceGrade = Min(5, 5 * (SubmittedAttendanceCodes / (ClassesWhereAttendanceWasTaken - 1)))

Schedule

Week Topic Reading Discussion Plan Assignments and Due Dates
1 Overview of the course, game engines, anatomy of game development, command pattern. Salen and Zimmermen ch. 4 & 5 Dissecting Unity projects. Getting started with Unity materials
2 Unity structures, Code standards, best practices, style guides, camera systems, lerp. Command Pattern, Style Guide and Best Practices, Scroll Back: The Theory and Practice of Cameras in Side-Scrollers by Itay Karen. Overview of Programming Exercise 1: Command Pattern Exercise 1: Command Pattern
3 Gameplay mechanics, Game Events and the Observer Pattern.Data-driven game systems. Defining Game Mechanics by Miguel Sicart, Pubsub Overview of Exercise 2: Camera Controllers Exercise 2: Cameral Control,
Exercise 1 Implementation
4 Mechanics, rules, gameplay systems, component systems. Salen and Zimmermen ch. 11, 12, 13, Component design pattern Overview of Exercise 3 Exercise 3: Observer Pattern
Exercise 2 Peer Review
Exercise 1 Peer Review,
Exercise 2
5 Interactivity, factory pattern. Salen and Zimmermen ch. 6, Crawford The Art of Game Design, ch. 1, INTERACTION section Exercise 4,
Exercise 3,
Exercise 2 Peer Review
6 Game combat algorithms, game design documents. The Craft of Game Systems by Daniel Achterman
7 The Jump. Game Feel by Steve Swink
8 Game AI: character behavior, agents, and real-time performance. TBA Introduce pitches and game design docs with examples
9 Procedural content generation. TBA 3 minute final project pitches from each group Final project design doc due
10 Game AI: analytics and applications of data science and machine learning. TBA Final project demo

Development and Design Resources

Are you prepared?

World of Warcraft: The Burning Crusade Cinematic Trailer
You are not prepared!
-- Illidan Stormrage

Illidan's words may resonate with you as computer science and game development are both difficult disciplines whose surrounding communities are laced with high expectations and elitism. Below are resources that can cut through assumptions and feeling though self-examination.

Introductory practice exercises for C# and game systems (you can run these in Unity, .Net, or MonoDevelop):

  1. Final Fantasy VI Combat System
  2. Crystal Warriors
  3. Fantasy Fight

Unity and C# Practice Exam for New Programmers

Preparing for Projects

This is a 5-day regimen of training tutorials to learn the basics of Unity for use in this course. Each day consists of between 2 and 3 hours of material per day.

Day Material
1 Create Unity Student Account - Start Creating - Exploring the Editor Layout - Microsoft .NET Interactive Introduction to C# (ignore 101 Linq Samples)
2 Roll-a-ball Tutorial - Scripting Overview,
3 Beginner Scripting (You can use nearly any 3D project with this tutorial.)
4 Intermediate Scripting Tutorial (You can use nearly any 3D project with this tutorial.)
5 Unity Tips (This is long; watch as many as you can or care to.)

Unity

Unity User Manual
Unity Tutorials

Learning the Basics

C#

Learning C#

Game Design

How Games are Made

Design Documents

Game Feel

Production Cycles

Development teams

Techniques for Team Development

Scrum and GitHub

Project Versioning and Control

User Interface and User Experience (UI/UX)

Game Trailers and Press Kits

Attendance Policy

This course has no formal attendance policy. However, regular attendance is greatly recommended to succeed in the course, as many class meetings will involve programming and one-on-one learning. If you expect to miss more than three class meetings, please discuss the situation with your instructor. The instruction team reserves the right to penalize grades due to excessive absences.

UC Davis Code of Academic Conduct

The UC Davis Code of Academic Conduct (http://sja.ucdavis.edu/files/cac.pdf) will be strictly enforced in this class. In particular, plagiarism, academic dishonesty, and cheating will be dealt with severely. Any breach of the Code of Academic Conduct can result in failing the assignment, failing the course, and disciplinary action via the Office of Student Support and Judicial Affairs (http://sja.ucdavis.edu/).

Technology in the Classroom Policy

In general, the use of laptops and technology is encouraged in this course as long as they are not disruptive to the rest of the class. If you choose to use a device with a screen, please sit in the back of the room to avoid distracting your fellow students. You must ask for permission before making a video or audio recording in the classroom. In general, students will be treated as adults capable of managing their technological lives while being respectful of others in the classroom.

Social Media Policy

Students are not permitted to make visual or audio recordings, including live streaming, of classroom lectures or any class-related content using any recording device (e.g., smartphone, computer, digital recorder, etc.) unless prior permission from the instructor is obtained and there are no objections from any of the students in the class. If permission is granted, personal use and sharing of recordings and any electronic copies of course materials (e.g., PowerPoints, formulas, lecture notes and any classroom discussions online or otherwise) is limited to the personal use of students registered in the course and for educational purposes only, even after the end of the course.

To supplement the classroom experience, lectures may be audio or video recorded by faculty and made available to students registered for this class. Faculty may record classroom lectures or discussions for pedagogical use, future student reference, or to meet the accommodation needs of students with a documented disability. These recordings are limited to personal use and may not be distributed (file share), sold, or posted on social media outlets without the written permission of the faculty.

Unauthorized downloading, file sharing, distribution of any part of a recorded lecture or course materials. or using information for purposes other than the student's learning is prohibited unless the instructor gives prior authorization.