New topic: Need Help with (2D) Sprites
<http://forums.realsoftware.com/viewtopic.php?t=27998> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message barrytraver Post subject: Need Help with (2D) SpritesPosted: Tue May 12, 2009 7:29 am Joined: Fri Sep 30, 2005 1:53 pm Posts: 262 Location: Philadelphia, PA I'm trying to figure out how to port over some board-game-type games that I wrote for another computer (the Texas Instruments TI-99/4A, if you're curious). (Many of the games were published in a magazine called MICROpendium perhaps thirty or so years ago.) The kind of thing I have in mind involves (2D) game-pieces that can move from one place to another on the gameboard. In TI Extended BASIC there was a CALL SPRITE command that made the process simple to do. The "sprite" was much like an object in OOP, an object that had shape, colors, location, speed, etc. as attributes or properties. What I'd need today would probably involve not only a "sprite," but a "mask" for the sprite, so that the sprite can have an irregular outside shape. How would something like this be done in REALbasic? The only reference I found in the RB Language Reference to sprites was to "SpriteSurface" in a single entry called "Deprecated Items." Here's an example of what I'm after: Suppose I wanted to do a chess game. Also suppose that I have appropriate (but rectangular) .jpeg files as needed (for king, queen, rook, bishop, knight, pawn, etc.). Where do I go from there? Having a specific example would be especially helpful. As Seneca says, Longum iter est per præcepta, breve et efficax per exempla ("The road to learning by precept is long, but by example short and effective"). Thanks in advance for any help you may be able to provide. Barry Traver Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ]
-- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
