Author Topic: Dual Layer Usage  (Read 3694 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Dual Layer Usage
« on: March 18, 2010, 07:30:09 pm »
So does anyone have any good game suggestions that uses Dual Layers for maps or anything? I'm just a little curious to see these in action.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Dual Layer Usage
« Reply #1 on: March 18, 2010, 07:51:08 pm »
Metroid Pi is an excellent example of normal Dual Layer: http://tibasicdev.wikidot.com/archives:metroid-pi
Another notable example is Zoith, which was the first dual layer game ever: http://www.ticalc.org/archives/files/fileinfo/395/39575.html
Elmgon and Serenity (see their sub-forums) are examples of the Dual Layer shifted (Serenity style) graphics, but they aren't done yet. :)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Dual Layer Usage
« Reply #2 on: March 18, 2010, 07:55:48 pm »
Thanks, I shall try them out :)
« Last Edit: March 18, 2010, 07:56:36 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dual Layer Usage
« Reply #3 on: March 18, 2010, 08:04:04 pm »
What I like with this technique is how you manage to have sprites looking as good as ASM games, yet, still not lose speed that much due to BASIC limitations and on top of that, not require ASM libs to display them, meaning smaller game memory requirements

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Dual Layer Usage
« Reply #4 on: March 18, 2010, 08:06:08 pm »
If I ever find out more about Dual Layers and how they work and such I will right something for the BASIC Routines section.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dual Layer Usage
« Reply #5 on: March 18, 2010, 09:07:44 pm »
it would be nice to see a tutorial. It's quite simple, though, in overall. All you need to do is

Text(-1,0,0,"LLLLLLLLLLLLLLL
StorePic 0
Text(-1,0,1,"XXXXXXXXXXXXXXX
RecallPic 0
StorePic 0

And to figure out good char combinations you can use one of the two programs in the downloads section or ask permission for Ztrumpet, Builderboy, Speler or Harrierfalcon if you can use their own combinations.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Dual Layer Usage
« Reply #6 on: March 18, 2010, 09:20:16 pm »
Ya, I know the concept is pretty easy. But to be able to use them in function with games or other uses, I think, is a little more complex.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dual Layer Usage
« Reply #7 on: March 18, 2010, 09:23:30 pm »
Well the only real issue is how parts of the map gets erased when the character is displayed, since in my posted method, the map would be 6x7 while your char would be 6x8 including the white spaces. In this case it is good that the programmer knows that he must not recallpic 0 until he finished displaying the character. When the char moves around, he erases it with a Text( command, then display at the new location, then recall pic. Otherwise it might cause display issues. You could write a tutorial explaining how to do this and maybe simple collision detection and the like, altough I would start with the moving around then add collisioon later so it won't be too hard to read the code at first
« Last Edit: March 18, 2010, 09:24:19 pm by DJ Omnimaga »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Dual Layer Usage
« Reply #8 on: March 18, 2010, 09:27:27 pm »
Ya.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)