Author Topic: [tutorial] Program Flow - Platformer  (Read 26815 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #15 on: March 20, 2010, 07:07:33 pm »
you would use the collision detection from before, so T would contain the collision.

EDIT: Added the rest of it, hope you like it!
« Last Edit: March 20, 2010, 09:03:03 pm by Eeems »
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [tutorial] Program Flow - Platformer
« Reply #16 on: March 20, 2010, 11:49:46 pm »
wow your tutorial is looking more and more nice now :)

I'll be sure to read it a few times once done :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #17 on: March 21, 2010, 12:24:55 am »
Thanks! Well it's pretty much done now, I just need a few routines and then I might write a little more. Also, i'm so glad I am an admin so I can do that with [html] tags, or else it would have never looked the way it does :p I might package a help file if I ever make enough tutorials.
If anybody wants a tutorial on something, suggest it and I might make it.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [tutorial] Program Flow - Platformer
« Reply #18 on: March 21, 2010, 12:48:52 am »
true, HTML tags can be good sometimes ^^


Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #19 on: March 21, 2010, 01:15:47 am »
Yeah it was very helpful :p
/e

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: [tutorial] Program Flow - Platformer
« Reply #20 on: March 21, 2010, 10:59:00 am »
That looks great Eeems!  I can't wait to read it! ;D
« Last Edit: March 21, 2010, 10:59:08 am by ztrumpet »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [tutorial] Program Flow - Platformer
« Reply #21 on: March 21, 2010, 11:24:52 am »
Hey that looks really nice!  I can whip up some map maker code, but without Decimal numbers data manipulation it might look kind of convoluted/hard to read?  What were you thinking?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #22 on: March 21, 2010, 03:22:18 pm »
Thanks!
Well I was kind of thinking just a basic, read from L1 the map data using your data compression method. You can write up a tutorial on how to use it and I'll put it in there. I guess it would be best to put the easiest to understand one in there.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [tutorial] Program Flow - Platformer
« Reply #23 on: March 21, 2010, 03:24:45 pm »
how many tiles at once in a map can be used by this compression method?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [tutorial] Program Flow - Platformer
« Reply #24 on: March 21, 2010, 03:37:03 pm »
Up to 16 with my current compression method, but you could double it without much loss of compression.  I'll get working on the tutorial real quick like

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [tutorial] Program Flow - Platformer
« Reply #25 on: March 21, 2010, 03:46:47 pm »
Doesn't sound too bad, altough my maps would need to not be too complex (at least, not as complex as Reuben Quest forests x.x)

You should maybe post a tutorial and have Eeems edit the HTML for it

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #26 on: March 21, 2010, 04:11:45 pm »
Yeah just post the tutorial and I'll edit it to use the HTML and add it to the first post.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [tutorial] Program Flow - Platformer
« Reply #27 on: March 21, 2010, 04:15:34 pm »
I had thoughts about enabling HTML for staff before but that might mean more risks of accidentally messing up, noticing a post located in the Trash Bin subforum earlier (that I removed) x.x, staff would need to make sure to only use hTML when absolutely needed, like tutorials, and test their stuff first, in case
« Last Edit: March 21, 2010, 04:16:18 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: [tutorial] Program Flow - Platformer
« Reply #28 on: March 21, 2010, 04:23:12 pm »
Yeah, I did all my development with komposer and tested it with firefox first. Actually, my system is pretty good for using in any tutorial, you can just change the images/colors to suite your needs. All it uses is a little CSS to define all the <div>'s that I use to seperate the content.
/e

_player1537

  • Guest
Re: [tutorial] Program Flow - Platformer
« Reply #29 on: March 21, 2010, 04:36:36 pm »
also I noticed:


0->Z
0->V
0->S
0->T
For(A,0,7
Z+(8-A*(pxl-test(X-1+A,Y)))->Z
V+(8-A*(pxl-test(X+8+A,Y)))->Z
S+(8-A*(pxl-test(X,Y-1+A)))->S
T+(8-A*(pxl-test(X,Y+8+A)))->T
End


should one of those lines store to V instead?

(also I couldn't put the code in code brackets because it wouldn't show the bold correctly)