
Автор: Huw Collingbourne
Издательство: Bitwise Books / Dark Neon
Год: 2020
Страниц: 192
Язык: английский
Формат: pdf (true)
Размер: 10.1 MB
Learn Object Oriented Programming in depth by writing a retro text-adventure! This book will teach you the secrets of text adventure programming – from beginner to advanced level. You will learn how to create Rooms and Treasures, how to let the player take and drop objects and how to save a games using serialization. You will also learn advanced techniques such as using recursion to calculate the combined masses of Treasure objects (so the player can only take a specific number and weight of objects at a time) and parsing adjectives so that the user can enter commands such as “take the small golden Elvish sword”. You can download all the code free – including the Bitwise Interactive Fiction Framework to help you to write your own games!