Game Programming - CSCI 3213
Spring 2026 - Week 9 Thursday
Oklahoma City University
Assets/
├── Scenes/
├── Scripts/
│ ├── Player/
│ ├── Enemies/
│ ├── Managers/
│ ├── UI/
│ └── Patterns/
├── Prefabs/
├── Materials/
├── Sprites/ (for 2D) or Models/ (for 3D)
├── Audio/
│ ├── Music/
│ └── SFX/
└── Resources/
Unity projects need a special .gitignore file
github.com/github/gitignore.gitignore# In terminal/command prompt, navigate to project folder
cd path/to/your/project
# Initialize git
git init
# Add all files
git add .
# First commit
git commit -m "Initial project setup"
git remote add origin https://github.com/yourusername/yourproject.git
git branch -M main
git push -u origin main
public class GameManager : MonoBehaviour
{
public static GameManager Instance { get; private set; }
void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
DontDestroyOnLoad(gameObject);
}
// Game state management
public void StartGame() { }
public void PauseGame() { }
public void GameOver() { }
}
# Good commit messages
git commit -m "Add GameManager singleton"
git commit -m "Implement basic player movement"
git commit -m "Create main menu UI"
# Bad commit messages
git commit -m "stuff"
git commit -m "fixed it"
git commit -m "asdf"
| Timeframe | Goals |
|---|---|
| This Week (Days 1-3) |
• Player controls working • Basic scene setup • One core system started |
| Next Week (Week 10) |
• Core mechanic functional • Basic game loop working • Placeholder art in place |
| Week 11 First Playable |
• Game playable start to finish • Win/lose conditions work • Ready for playtesting |
| Pattern | When to Implement |
|---|---|
| Singleton | Week 9 (Today) - GameManager |
| Object Pool | Week 10-11 - When you have repeating objects |
| Observer | Week 11-12 - For events and UI updates |
| State | Week 10-11 - Player or enemy states |
| Command | Week 11-12 - Input or undo systems |
| Strategy | Week 12-13 - AI behaviors or difficulty |
using UnityEngine; at top of scriptsQuick check that you have:
Your game development journey begins now! 🚀