Author Topic: The Slime  (Read 17866 times)

0 Members and 1 Guest are viewing this topic.

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: The Slime
« Reply #45 on: March 08, 2012, 10:43:42 pm »
4-level grayscale only uses 2 buffers, not 3.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #46 on: March 08, 2012, 10:48:12 pm »
But won't the grayscale start getting messed up if there is too much stuff in the coding section (collisions, enemies, etc)?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: The Slime
« Reply #47 on: March 09, 2012, 04:50:05 am »
Yes it would but then he can remove the pause.
chattahippie, epic title screen is epic!
I'm not a nerd but I pretend:

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #48 on: March 09, 2012, 04:31:21 pm »
Pause? What pause?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: The Slime
« Reply #49 on: March 09, 2012, 04:39:00 pm »
Pause == delay
He has a delay with a value of 10 in the loop.
I'm not a nerd but I pretend:

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #50 on: March 09, 2012, 04:45:32 pm »
10? 10 milliseconds?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: The Slime
« Reply #51 on: March 09, 2012, 05:22:46 pm »
no its just a number.
In 6mHz mode, there go about 1700 pause loops in a second.
I'm not a nerd but I pretend:

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #52 on: March 09, 2012, 10:47:23 pm »
Oh, that seems more complicated than just waiting a certain amount of time.

EDIT: So chattahippie does that delay to slow down player movement?
« Last Edit: March 09, 2012, 10:49:32 pm by nxtboy III »

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: The Slime
« Reply #53 on: March 09, 2012, 11:15:44 pm »
Oh, that seems more complicated than just waiting a certain amount of time.

EDIT: So chattahippie does that delay to slow down player movement?

Yes, it slows down the entire game a little bit, but is unnoticeable due to the pause being so small

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #54 on: March 09, 2012, 11:26:18 pm »
In your game do you use temporary buffers?

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: The Slime
« Reply #55 on: March 09, 2012, 11:29:29 pm »
No, just the main front and back buffers (L6 and L3)

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: The Slime
« Reply #56 on: March 10, 2012, 01:23:56 am »
Hm, are you just Pt-Changing the character then?
In-progress: Graviter (...)

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: The Slime
« Reply #57 on: March 10, 2012, 09:13:12 am »
Hm, are you just Pt-Changing the character then?

Yes, and it makes the game much faster, and also allowed me to make the trail

It only draws the tilemap when switching levels

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: The Slime
« Reply #58 on: March 10, 2012, 05:21:20 pm »
How does it use pxl-test if the killing blocks are light gray?

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: The Slime
« Reply #59 on: March 10, 2012, 05:29:13 pm »
How does it use pxl-test if the killing blocks are light gray?

Axe uses only two buffers, the main and the back buffer
When the main buffer is on, the pixel appears dark grey
When the back buffer is on, the pixel appears light grey
When they are both on, the pixel is black

But since there are only two buffers total, I check collision against the main buffer for actual collision
and I use the back buffer for death collisions

To get around black blocks killing the character (they also use the back buffer), I test outside the character sprite for main collision,
and inside the sprite for death collision (the player sprite resides only on the front buffer)

Hope that made sense :P