Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: c.sprinkle on December 17, 2010, 08:19:41 am

Title: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: c.sprinkle on December 17, 2010, 08:19:41 am
Here it is; Prism is coming. Development is going well, and I've already planned the engines and scoring. All I have to do is implement them. However, I have already run across a problem: loading the levels.  :banghead:
So, a question for all you Axe programmers:
        How do you load level data that is stored in a GDB pointer?

I'd love to know, and until that works, I'll have to wait.
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: DJ Omnimaga on December 17, 2010, 09:47:19 am
Moved to Axe parser section, because it is an Axe question, not a project discussion.
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: jnesselr on December 17, 2010, 09:54:35 am
        How do you load level data that is stored in a GDB pointer?
Well, it depends on how you are storing your data, really.  Can you give an example map or data?
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: c.sprinkle on December 17, 2010, 10:54:41 am
For instance:
   Level 1 is:
       
Code: [Select]
Data(1,0,0,0,6,0,0,7,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,
0,0,0,0,5,0,0,0,3,5,0,0,3)→GDB1

I need to be able to check each tile for a # that determines which of 15 sprites I should display.
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: squidgetx on December 17, 2010, 11:52:08 am
Is this a form of tilemapping?
The process would be fairly straightforward: to take the data and decide how to draw which tile you could just do
Code: [Select]
Pt-On(X, Y, {index+GDB1}*8+Pic0)

or something, where your tiles are defined consecutively starting at Pic0.

Is this what you're talking about?
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: c.sprinkle on December 17, 2010, 02:14:27 pm
Yeah, pretty much. I saw this mehod of determining tile data in Space Dash, and I thought that that would be perfect for tilemaps in this. Thanks, squidgetx.
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: c.sprinkle on December 20, 2010, 12:39:46 pm
This is coming close to being playable. However, I am going on vacation and thus may not be able to post anything. Oh well. I'll have it when I get back on January 3. This is going to be an awesome game!
Bye folks. :)
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: DJ Omnimaga on December 21, 2010, 12:13:08 am
Aw another member leaving :/

See you soon! :(
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: c.sprinkle on December 27, 2010, 09:17:33 pm
Here we are. I have the first five levels coded and the gameplay rules partially finished. 8) This is progressing quickly. Wait anxiously for updates.  :D
@DJ: To be totally off-topic, how do you use an animated screenshot as an avatar?
Title: Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
Post by: DJ Omnimaga on December 28, 2010, 01:08:57 am
Cool to hear it's progressing. I'm also glad you can still visit right now. As for screenshots you need to upload the avatar on img.removedfromgame.com then link to it in your profile.