Skip to Content
Learning C# by Developing Games with Unity - Seventh Edition
book

Learning C# by Developing Games with Unity - Seventh Edition

by Harrison Ferrone
November 2022
Beginner content levelBeginner
466 pages
9h 55m
English
Packt Publishing
Content preview from Learning C# by Developing Games with Unity - Seventh Edition

8

Scripting Game Mechanics

In the last chapter, we focused on using code to move the player and camera, with a trip into Unity physics on the side. However, controlling a playable character isn’t enough to make a compelling game; in fact, it’s probably the one area that remains fairly constant across different titles.

A game’s unique spark comes from its core mechanics, and the feeling of power and agency those mechanics give to the players. Without fun and engrossing ways to affect the virtual environment you’ve created, your game doesn’t stand a chance of repeat play, to say nothing of fun. As we venture into implementing the game’s mechanics, we’ll also be upgrading our knowledge of C# and its intermediate-level features.

This chapter will ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Harrison Ferrone

Publisher Resources

ISBN: 9781837636877Supplemental Content