Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 23385

gamingdirectional: Detect the player’s boundary

$
0
0

In this article, we will start to create the boundary detection mechanism which can be used to help the boy moving around the canvas. We will go slowly where this topic will take a few chapters to complete. In this chapter, we will focus on below issues. The boy will not be able to move past the horizontal boundary of either 0 or 576 pixels which is the physical boundary for the boy sprite.

Source


Viewing all articles
Browse latest Browse all 23385

Trending Articles