Subscribe to Dogstopper's Code Mania        RSS Feed
* * * * *

An Input Manager Class

Icon 11 Comments
Input in Games is handled through a series of events that trigger either mouse, keyboard, etc. input. Often, trying to have multiple states of the game as well as hundreds of sprites all trying to grab input at the same time through meager event handling can be difficult. And how about when more than one key is held down? And how can you make this...
- - - - -

Basic Bounding Boxes

Icon 2 Comments
In games, it is a very common operation to check whether or not two or more "sprites" (objects with an image) are colliding and if so, then they take action. I will now demonstrate this idea with a program that moves 2 balls closer toward each other until they meet, at which time, they will stop moving. I do this by testing a collision...

Page 1 of 1

September 2020

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
272829 30    

Recent Entries

Search My Blog

Recent Comments

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)