Author Topic: Nibbles problem  (Read 8317 times)

0 Members and 1 Guest are viewing this topic.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Nibbles problem
« on: July 18, 2011, 03:37:54 pm »
EDIT: problem fixed by runer on IRC

This code is supposed to display a 4x4 black box for every 1, and nothing for every 0, but its inverted instead...  And any number other than 1 shows up as black.  ???

Code: [Select]
:.TELEPORT
:
:DiagnosticOff
:ClrHome
:ClrDraw
:
:[0000000000000000]->Pic0
:[F0F0F0F000000000]
:
:
:[111111111111111111111111]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[111111111111111111111111]
:
:Repeat getKey(15)
:sub(MAP)
:DispGraph
:End
:
:
:Lbl MAP
:ClrDraw
:For(B,0,15
:For(A,0,11
:{B*12+A+GDB1}->Z
:Pt-On(8*A-4, 4*B, nib{GDB1+Z*2}*8+Pic0
:Pt-On(8*A, 4*B, nib{GDB1+Z*2+1}*8+Pic0
:End
:End
« Last Edit: July 18, 2011, 03:58:20 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Nibbles problem
« Reply #1 on: July 19, 2011, 11:42:59 am »
Is it supposed to be GDB1+Z*2? Because isn't that the same thing as (GDB1+Z)*2?

Also, to debug, try doing A050A05000000000 instead of F0F0F0F0.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Nibbles problem
« Reply #2 on: July 19, 2011, 12:46:20 pm »
GDB1+Z*2, it was supposed to be that, but I added GDB1 twice.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>