© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. Sung et al.Build Your Own 2D Game Engine and Create Great Web Gameshttps://doi.org/10.1007/978-1-4842-7377-7_5

5. Working with Textures, Sprites, and Fonts

Kelvin Sung1  , Jebediah Pavleas2, Matthew Munson3 and Jason Pace4
Bothell, WA, USA
Kenmore, WA, USA
Lake Forest Park, WA, USA
Portland, OR, USA
After completing this chapter, you will be able to
  • Use any image or photograph as a texture representing characters or objects in your game

  • Understand and use texture coordinates to identify a location on an image

  • Optimize texture memory utilization by combining multiple characters and objects into one image

  • Produce and control animations using sprite sheets ...

Get Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.