Room Space Motion WIP & Filenaming Conventions
Hi guys - thought you'd like to know what I've been up to.
The link below shows a JPG of:
- Top-Left: Bounding box detection of object in front of camera
- Lower-Left: Actual camera image
- Top-Right: 6x5 array of 'spaces'. The smiley face's movement and position is controlled by the globCenter() method from the Xtra
- Each space is highlighted when the smiley face 'apparently' passes over it (using the sprite.intersects() method) - I've had to use a workaround with a one-pixel sprite underneath the grid that follows the same rules as the smiley face- this prevents more than one square being highlighted at once.
- As far as the stage is concerned, the 'spaces' are each placed in separate, contiguous layers. The 'message' window is able to put out the actual number of the space (or, in this case, the sprite number) that the user is in.
Check the screenshot.
File naming conventions
- Imagine that the 30 spaces are actually a wrapping, 1-dimensional array
- The top-left space is number 1, the next one to the right is number 2, etc.
- The first space on the second row is number 6, and so on, all the way to number 30.
If we use a standard file-naming convention for the tile JPGs, I'd probably go with something like:
01N.jpg (The north tile on space 01)
26S.jpg (The south tile on space 26)
and so on...

1 Comments:
Hey Gordon,
Looks like you've done a great job and things are really coming together, well done. I would appreciated some feedback on my image though. Honest opinions would very much be appreciated!
Post a Comment
<< Home