Author Topic: [RPG] 6th version of Herssahe  (Read 18638 times)

0 Members and 1 Guest are viewing this topic.

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: [RPG] 6th version of Herssahe
« Reply #15 on: September 17, 2013, 10:26:39 am »
So.
Code: [Select]
Y=pi9342
Z=pi9872
[code]
:Fill(0
:ClrDraw
:SetBuf(Z
:Fill(0
:SetBuf('Y
:SetBuf(°Z
:call T
:Text(15,16,"The 6th
:Rect('8,21,88,21
:Rect('9,22,87,22,5,,3,16,4,32,4,16,3
:Text(30,2,"1.Create new character
:Text(38,2,"2.Set Contrast
:Text(46,2,"3.Thanks

:Return->theta
:getKey->K
:DispGraph
:If K=/=15
:Goto theta

And the subroutine pointed by T is:

Code: [Select]
:.TITRE
:Tile(M,A,C,1,2,16,Z
:Tile(M,A+64,C+5,3,1,8,Z
:Tile(M,A+80,C+5,4,1,8,Z
:Tile(M,A+96,C+5,5,1,8,Z
:Tile(M,A+96,C+5,6,1,8,Z
:Tile(M,A+112,C+5,7,1,8,Z
:Tile(M,A+128,C+5,8,1,8,Z
:Tile(M,A+128,C+5,8
:Tile(M,A+64,C+5,9,1,8,Z
:Tile(M,A+64,C+5,9
:End

And the calc crashes.

What I want:
- The Y buffer entirely black
- The Z buffer white with text and sprites

(Something like this, but with a gray background: )
[/code]
« Last Edit: September 17, 2013, 10:29:45 am by persalteas »


Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: [RPG] 6th version of Herssahe
« Reply #16 on: September 21, 2013, 08:46:03 am »
Problem solved by exchanging the two buffers...

I can observe that what makes the calc crash is:
Code: [Select]
:SetBuf(Z
:Fill(0

I can't fill the pi9872 buffer with black :P


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [RPG] 6th version of Herssahe
« Reply #17 on: September 23, 2013, 02:49:46 pm »
Hmm, that is weird, the only thing that pi9872 is used for is the default particle buffer.

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: [RPG] 6th version of Herssahe
« Reply #18 on: September 24, 2013, 01:52:16 pm »
Yes, weird...

OT: Is Grammer allowed on Omnimaga contests ? :P


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [RPG] 6th version of Herssahe
« Reply #19 on: September 25, 2013, 06:38:59 am »
OT: Is Grammer allowed on Omnimaga contests ? :P
Yes it is, apparently :)

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: [RPG] 6th version of Herssahe
« Reply #20 on: October 08, 2013, 11:53:13 pm »
Yes, but I don't think you can enter a project that was already entered before the contest. It is possible that some code might be re-usable for the contest, but it might affect the total score.