Introduction to Game Programming using Processing
eBook - ePub

Introduction to Game Programming using Processing

For Designers, Artists, Players, Non-Tech People and Everybody Else

  1. 348 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Introduction to Game Programming using Processing

For Designers, Artists, Players, Non-Tech People and Everybody Else

About this book

This is an introductory textbook focusing on games (specifically interaction and graphics) as a pathway into programming. It empowers readers to do basic programming, prototyping, game creation, and other highly interactive applications, all from scratch and without any prior programming knowledge.

Using the popular programming language Processing, this book describes, explains, and demonstrates the basic and general programming principles and mechanisms used in typical game algorithms and concrete game projects. Chapters cover basic graphics, text output, loops, data types and variables, movement, time, audio and sound, debugging, classes and objects, event-based programming, real-time input controls, computer speed compensation, animation, tiling, scrolling, collision detection, basic AI, and much more. Additional support materials such as code examples and demo programs are available to download from the book's webpage: dace.de/gameswithprocessing

This book is a great resource for students and aspiring professionals looking for an approachable entry into game programming.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Introduction to Game Programming using Processing by Daniel Cermak-Sassenrath in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Games. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Cover Page
  2. Half-Title Page
  3. Title Page
  4. Copyright Page
  5. Contents
  6. Foreword
  7. Preface
  8. Acknowledgements
  9. Introduction
  10. 1. The Process of Programming
  11. 2. Hello Game World!
  12. 3. Console Output and Comments
  13. 4. Variables and Data Types
  14. 5. Iteration with the while Loop
  15. 6. Conditionals (if, if/else, if/else if)
  16. 7. Relational Expressions (e.g. <, >) and Logical Operators (e.g. &&, ||)
  17. 8. Math and Arithmetic
  18. 9. Short Cuts
  19. 10. Type Conversions (Casting and Rounding)
  20. 11. Formatting Code
  21. 12. Iteration with the for Loop
  22. 13. Arrays
  23. 14. Functions
  24. 15. Movement
  25. 16. Basic Collision Detection
  26. 17. Drawing Modes and Drawing Lines
  27. 18. Polygons and Vertex Functions
  28. 19. Colour and Transparency
  29. 20. Text and Fonts, and Loading and Saving Data
  30. 21. Real Time
  31. 22. Images
  32. 23. The Processing IDE, Technical Documentation, Debugging and Common Errors
  33. 24. Programming Rules of Thumb
  34. 25. Classes and Objects
  35. 26. Event-Driven Programming and Game Controls
  36. 27. Hardware Speed Independence for Movement
  37. 28. Sprites, Frame-Based Animation and Timed Events
  38. 29. Tiling
  39. 30. Scrolling and Split-Screen Displays
  40. 31. Movement in Curves
  41. 32. Pixel-Perfect Collision Detection
  42. 33. Vectors
  43. 34. ArrayLists
  44. 35. Recursion
  45. 36. Basic Game AI and Enemy Behaviour
  46. 37. Programming Libraries, and Using an Audio Library
  47. Glossary
  48. References
  49. Code Index
  50. Index