Skip to main content

Pathfinding Basics

  • Chapter
  • First Online:
The Advanced Game Developer's Toolkit
  • 1246 Accesses

Abstract

You now know how to make a tile-based game world, and you also know how to make a player character that can navigate through that world. But how do you create sprites that can wander around and explore the world on their own? Take a moment to play the example prototype called tileBasedLineOfSight.html that you’ll find in this chapter’s source files (shown in Figure 5-1). The maze is populated by three monsters who wander around randomly until they spot the alien character – then they chase him relentlessly.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Rex van der Spuy

About this chapter

Cite this chapter

van der Spuy, R. (2017). Pathfinding Basics. In: The Advanced Game Developer's Toolkit. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1097-0_5

Download citation

Publish with us

Policies and ethics