Book Image

Unreal Development Kit Game Programming with UnrealScript: Beginner's Guide

By : Rachel Cordone
Book Image

Unreal Development Kit Game Programming with UnrealScript: Beginner's Guide

By: Rachel Cordone

Overview of this book

Unreal Development Kit is the free edition of Unreal Engine—the largest game engine in existence with hundreds of shipped commercial titles. The Unreal Engine is a very powerful tool for game development but with something so complex it's hard to know where to start.This book will teach you how to use the UnrealScript language to create your own games with the Unreal Development Kit by using an example game that you can create and play for yourself. It breaks down the UnrealScript language into easy to follow chapters that will quickly bring you up to speed with UnrealScript game programming.Unreal Development Kit Game Programming with UnrealScript takes you through the UnrealScript language for the Unreal Development Kit. It starts by walking through a project setup and setting up programs to write and browse code. It then takes you through using variables, functions, and custom classes to alter the game's behavior and create our own functionality. The use and creation of Kismet is also covered. Later, using replication to create and test multiplayer games is discussed. The book closes with code optimization and error handling as well as a few of the less common but useful features of UnrealScript.
Table of Contents (18 chapters)
Unreal Development Kit Game Programming with UnrealScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a class


In my work with UnrealScript, one of the most common questions I see is "I understand how the language works, but I have no idea where to start writing my own code. What do I do?" For any project, before you start writing code it's best to have an idea of what you want your game to be. For most games this involves a design document. Let's see if we can come up with a quick one for our Awesome Game that we'll refer to when making programming decisions.

Awesome Game quicky design document

Most design documents have a detailed description of the game, from the storyline right down to the control scheme. However, we're going to keep things a little simplified for this. First of all we need to decide what type of game this will be.

  • Awesome Game is a top-down shooter like Alien Swarm or Nation Red.

Having examples of other games in the style that you want helps define what programming needs your game will have. Let's see if we can expand this further:

  • Enemies will spawn off screen...