Author Topic: Prism: The Target Shooting, Mirror Moving Puzzle Game  (Read 6064 times)

0 Members and 1 Guest are viewing this topic.

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Prism: The Target Shooting, Mirror Moving Puzzle Game
« 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #1 on: December 17, 2010, 09:47:19 am »
Moved to Axe parser section, because it is an Axe question, not a project discussion.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #2 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?

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #3 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.
« Last Edit: December 17, 2010, 10:55:33 am by c.sprinkle »

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #4 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?
« Last Edit: December 17, 2010, 11:55:24 am by squidgetx »

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #5 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.

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #6 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. :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #7 on: December 21, 2010, 12:13:08 am »
Aw another member leaving :/

See you soon! :(
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #8 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?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Prism: The Target Shooting, Mirror Moving Puzzle Game
« Reply #9 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.
« Last Edit: December 28, 2010, 01:09:14 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)