Skip to Main Content
Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL
book

Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL

by Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
October 2015
Intermediate to advanced content levelIntermediate to advanced
496 pages
13h 43m
English
Apress
Content preview from Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL

CHAPTER 5

image

Working with Textures, Sprites, and Fonts

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
  • Display texts of different fonts and sizes anywhere in your game

Introduction

Custom-composed images are used to represent almost all objects including characters, backgrounds, and even animations in most 2D games. For this reason, the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Michael Tanaya, Huaming Chen, Jebediah Pavleas, Kelvin Sung

Publisher Resources

ISBN: 9781484209523Purchase book