Cargando…

Swift game programming for absolute beginners /

Swift Game Programming for Absolute Beginners teaches Apples Swift language in the context of four, fun and colorful games. Learn the Swift 2.0 language, and learn to create game apps for iOS at the same time a double win! The four games youll develop while reading this book are: Painter Tuts Tomb P...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Egges, Arjan (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [Berkeley, CA] : Apress, [2015]
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part I: Getting Started; Chapter 1: The Swift Language; Computers and Programs; Processors and Memory ; Programs ; Programming Languages ; Programming Games; Developing Games; Small Scale: Edit-Compile-Run; Large Scale: Design-Specify-Implement; Building Your First Swift Program; Building Your First Swift Game; A Few Observations; What You Have Learned; Chapter 2: Game Programming Basics; Building Blocks of a Game; The Game World; The Game Loop; The Game Loop in Swift.
  • The Structure of a Program Types of Applications; Functions ; Syntax Diagrams; Calling a Function ; Program Layout; Comments ; Instructions vs. Lines ; Whitespace and Indentation ; What You Have Learned; Chapter 3: Creating a Game World; Basic Types and Variables; Types ; Declaration and Assignment of Variables; Instructions and Expressions ; Operators and More Complex Expressions; Arithmetic Operators ; Priority of Operators ; Other Numeric Types ; The DiscoWorld Game ; Scope of Variables ; What You Have Learned; Chapter 4: Game Assets; Locating Sprites.
  • Loading and Drawing Sprites Resolutions and Aspect Ratios; Moving Sprites; Loading and Drawing Multiple Sprites; Configuring the Device Orientation; Music and Sounds ; What You Have Learned; Part II: Painter; Chapter 5: Reacting to Player Input; Dealing With Touch Input; Using the Touch Location to Change the Game World; Conditional Execution Based on Touch; Testing for Alternatives; Comparison Operators; Logic Operators; The Boolean Type; Changing the Color of the Cannon; A Few Final Remarks; What You Have Learned; Chapter 6: A Flying Ball; Methods.
  • Parameter Names and Labels Default Parameter Values; Reorganizing Instructions into Methods; Moving Between Local and World Coordinates; Adding a Ball to the Game World; Shooting the Ball; Updating the Ball Position; Fixed Timestep vs. Variable Timestep; Updating the Ball Color; What You Have Learned; Chapter 7: Game Object Types; Creating Multiple Objects of the Same Type; Classes as Types; Input Handling in a Separate Class; Initializing Objects; The Self Keyword; Accessing Other Objects Using Static Variables; The Double Role of Classes.
  • Writing a Class with Multiple Instances Dealing with Randomness in Games; Calculating a Random Velocity and Color; Updating the Paint Can; What You Have Learned; Chapter 8: Colors and Collisions; A Different Way to Represent Colors; Controlled Data Access for Objects; Adding a Computed Property to a Class; Handling Collisions Between the Ball and the Cans; Values and References; Structs; What You Have Learned; Chapter 9: Limited Lives; Maintaining the Number of Lives; Indicating the Number of Lives to the Player; Executing Instructions Multiple Times.