Author Topic: Grammer 2-The APP  (Read 147115 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #255 on: March 01, 2012, 10:44:40 pm »
pxl test during Disp' ?
Sig wipe!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #256 on: March 01, 2012, 10:47:12 pm »
???
I'm super new, so I am confused... sorry. what is the ' for?

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #257 on: March 01, 2012, 10:48:32 pm »
nvm.
Disp' sets the buffer for grey part of the screen, iirc.
so after that, do Disp whatever and pxl test.
Sig wipe!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #258 on: March 01, 2012, 10:51:19 pm »
Yeah.... But gray (50% gray) is a checkerboard design, so wouldn't it half the time see pixels as off because half the time they are off?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #259 on: March 01, 2012, 11:23:43 pm »
Better idea:
You will have a pointer to the gray layer (you have to define it anyways). The buffer will not change, regardless of the checkerpattern (that is only factored in when actually displaying). So if Z points to the gray buffer, you can do this:
pxl-Test(Y,X,Z

The extra argument "Z" makes it read from the buffer at Z instead of the black buffer. Does this help any?

Offline awalden0808

  • LV3 Member (Next: 100)
  • ***
  • Posts: 55
  • Rating: +6/-0
  • Cool shades, wears Waldo.
    • View Profile
Re: Grammer 2-The APP
« Reply #260 on: March 02, 2012, 07:15:22 am »
Soooo, nxtboy. The "Mindstorms Nxt" in your sig... LEGO Mindstorms? The thing I've wanted since I was in 2nd grade (9 years, for the record)? That one? The one I'm super jealous about? That one? :P
I'll apologize tomorrow for a bad mood today.

Spoiler For Spoiler:
My Qualifications:

I did a thing once.
I am known for my ability to focus intently on things that distract me from my actual work.
To me, the letter a stands for absolute. B stands for bemusement. C stands for circumlocution, and D stands for decoupage.
If I were president, I would give everyone Xboxes, computers, and national healthcare.
I am also known for my ability to write more than I actually need to write. Unless of course it is necessary that I write a lot. Then I write a little bit.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer 2-The APP
« Reply #261 on: March 02, 2012, 07:31:34 am »
@alwalden0800:Please try to remain on topic. We do have a private messaging system for such things. There are a also a few topics about the Mindstorm floating around on our forums that you can post relevant discussion in. :)

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #262 on: March 02, 2012, 02:01:10 pm »
I completely forgot to give a heads up, but I have spring break starting about a half hour ago. My internet access will be a bit limited, so updates will not be here for a little while. Maybe I might get some more cool stuff done XD Then again, I have a few tons of homework to muddle through :/

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #263 on: March 02, 2012, 05:55:16 pm »
OT:

awalden- Yes, the Lego Mindstorms NXT :P

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #264 on: March 03, 2012, 11:46:16 am »
About the platformer games....
Doesn't that mean that you can only have 2 types of blocks, solid and not solid? There cannot be blocks that kill you, blocks that are breakable, etc.?

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #265 on: March 03, 2012, 11:48:53 am »
Actually, that's up to your programming. ;)
Sig wipe!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #266 on: March 03, 2012, 11:50:16 am »
Yes... But how would that be done?

EDIT: Because since it uses pxl-test it can only check if a pixel is black/white.
« Last Edit: March 03, 2012, 11:51:25 am by nxtboy III »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #267 on: March 03, 2012, 11:52:07 am »
What I did before is that display tilemap, and get the tile number based on the coordinate. If that tile number matches certain number, you die or something.
Sig wipe!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #268 on: March 03, 2012, 11:53:01 am »
So is it impossible using pxl-test and not a tilemap? How would it be done?

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #269 on: March 03, 2012, 11:56:50 am »
you can mix with the pxl-test if you want to.
Let's say you have a appvar with tilemap stuffs.

So you can do X/8 and Y/8 (x and y being coordinate) to get which tile goes where. And you can do a little math to figure out the location of the appvar (aka tile number).
And you can test with both pxl-test and tilemap number.
Sig wipe!