Author Topic: Your Projects - Post and Critique  (Read 103497 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #105 on: March 23, 2010, 04:15:14 pm »
Wow nice, I wonder if in the future collision detection will be possible with something else than pixel-test, so you can have a wider variety of tiles instead of just plain black?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #106 on: March 23, 2010, 04:21:20 pm »
thanks, well actually I'm going to make all my tiles that are not solid objects, because I can have any tile I want, it will just pxl-test() for pixels only not whole tiles.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #107 on: March 23, 2010, 04:34:28 pm »
what about for example tiles like this, though?

Code: [Select]
OOOOOOOO
O      O
O      O
O      O
O      O
O      O
O      O
OOOOOOOO
?

If mario falls at a 2 pixel per frame rate, wouldn't he risk of going through this block?
« Last Edit: March 23, 2010, 04:34:48 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #108 on: March 23, 2010, 05:02:39 pm »
well yes, but he doesn't fall at 2 pixels per frame, but if he was too, I would do the check twice in a row, which is how I do the running :P
I'm using the pixel test method in my tutorial.
« Last Edit: March 23, 2010, 05:03:08 pm by Eeems »
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #109 on: March 23, 2010, 05:06:00 pm »
won't it get too slow, though, if it won't fall faster than 1 pixel at a time? I noticed in your screenshot it seemed to have lower framerate alerady. Did you just slow down movement?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #110 on: March 23, 2010, 05:09:16 pm »
no it wont, my screenshot is slow because it's running at 6MHz, it runs way too fast at 15MHz. and so far on a 83+ it runs fast enough to be very playable :P it does seem a tad bit slow, but that is ok, because I will aim for 15MHz calc's and it will still be fast enough to play. and actually for the running, it does run faster, because it's only testing the X-axis stuff twice, so it's a little bit of slow down, but the speed increase is enough to make that slowdown null.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #111 on: March 23, 2010, 05:22:42 pm »
oooh I see now ^^
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #112 on: March 23, 2010, 06:50:06 pm »
Don't forget, you can move 1 pixel at a time but update the screen every other time, so it appears you are still moving at 2 pixels per frame, but with the accuracy of 1 pixel per frame and nearly the same speed.  That's what I did for starship.
« Last Edit: March 23, 2010, 06:50:33 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

SirCmpwn

  • Guest
Re: Your Projects - Post and Critique
« Reply #113 on: March 23, 2010, 06:51:12 pm »
You could do it like BuilderBoy and have everything multiplied by 64, then divide it by 64 in the draw code.  That way, you have a lot more precision.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Your Projects - Post and Critique
« Reply #114 on: March 23, 2010, 06:56:50 pm »
I actually use both of the previous suggestions in Portal right now :) It moves at a maximum of 1 pixel per frame, but updates only every other frame.  And the coordinates are stored x64 for more precision, for the acceleration and stuff

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #115 on: March 23, 2010, 06:59:56 pm »
Lol, well mine is kind of doing that, but instead it's applying x-axis checks twice per frame for running, I'll try to upload it today so you can see.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #116 on: March 23, 2010, 07:14:33 pm »
cool, can't wait to try ^^
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #117 on: March 23, 2010, 07:37:10 pm »
ok, here is the new one :) hope you like it!
EDIT: here is a screenshot
« Last Edit: March 23, 2010, 07:59:51 pm by Eeems »
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #118 on: March 23, 2010, 08:07:59 pm »
wow nice ^^, just tried it and it's quite fast in SE mode, altough mario looked funny when you held down 2nd, left and right at once :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your Projects - Post and Critique
« Reply #119 on: March 23, 2010, 08:14:13 pm »
lol :P
thanks :)
/e