Author Topic: Side Project #2: DUNGEON  (Read 26450 times)

0 Members and 3 Guests are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #60 on: May 09, 2009, 09:57:14 pm »
much faster! hmm, I just noticed that your character slows down a lot when he is in the air...
/e

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #61 on: May 09, 2009, 09:59:31 pm »
Its actually not that big. It's only about 16 or so lines, and it is faster. I'll post a screenie soon comparing both methods
How big is the new code?  I just calculated it and it looks like ~336 bytes.  If that's too large, you could use two loops.  One to loop through the first layer, and the other to loop through the second layer.  This would still cut out the extra seven StorePics and RecallPics and be much smaller.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #62 on: May 09, 2009, 10:01:24 pm »
you could just use two store and recall pics
/e

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #63 on: May 09, 2009, 10:07:35 pm »
much faster! hmm, I just noticed that your character slows down a lot when he is in the air...
That's because my comp makes Wabbitemu run slow sometimes, and it just appears that way. It's still the same speed as it's always been for moving.
Its actually not that big. It's only about 16 or so lines, and it is faster. I'll post a screenie soon comparing both methods
How big is the new code?  I just calculated it and it looks like ~336 bytes.  If that's too large, you could use two loops.  One to loop through the first layer, and the other to loop through the second layer.  This would still cut out the extra seven StorePics and RecallPics and be much smaller.
I just tried the For( loop, and it was a tad slower, and since size isn't a problem for me (I store all my map data, which is split in half, in the archive and use Iambians XCOPY to copy whichever half im in into RAM), I'm gonna stick with the hard coded idea.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #64 on: May 09, 2009, 10:10:19 pm »
I'm going to test it yet, but I don't know
/e

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #65 on: May 09, 2009, 10:14:50 pm »
The For( loop is slower because you have to calculate an equation (8A-8 or whatever) every time through, whereas when it's hard coded, the numbers are preset, so it just doesn't do any work except display the text. It's not much slower, but I could tell it was.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #66 on: May 09, 2009, 10:17:11 pm »
so far it seems faster
/e

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #67 on: May 09, 2009, 10:19:03 pm »
The For( loop is slower because you have to calculate an equation (8A-8 or whatever) every time through,
You're neglecting the overhead of running the For( loop itself:  it has to increment the index variable and the interpreter is searching for an End statement as well.

[edit] This topic is growing pretty fast.  Every time I look there's like two or more posts.
« Last Edit: May 09, 2009, 10:30:23 pm by simplethinker »
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #68 on: May 09, 2009, 10:26:32 pm »
lol, I think the For( loop looks a bit more aesthetically appealing. then the way I did, and it's not that much faster
/e

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #69 on: May 09, 2009, 10:35:52 pm »
The For( loop is slower because you have to calculate an equation (8A-8 or whatever) every time through,
You're neglecting the overhead of running the For( loop itself:  it has to increment the index variable and the interpreter is searching for an End statement as well.

[edit] This topic is growing pretty fast.  Every time I look there's like two or more posts.
Heh yeah it is a pretty hot topic right now.

lol, I think the For( loop looks a bit more aesthetically appealing. then the way I did, and it's not that much faster
are you going to make this little test project you've done into a full blown game?
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #70 on: May 09, 2009, 10:39:19 pm »
probably, I haven't really made any games. and this one is fun so far...I might just make it into a platform engine though
/e

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #71 on: May 09, 2009, 10:49:42 pm »
Yeah it is kind of fun making a game like this. Designing the maps is fun but also extremely boring. But if you do make it into a game, I'd like to play it; I've always been interested in these kind of games for the calc, but I never could find many on ticalc.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #72 on: May 09, 2009, 10:50:59 pm »
yeah, they don't make that many platformers... I should probably make a map making program so it's easier for me.
/e

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Side Project #2: DUNGEON
« Reply #73 on: May 09, 2009, 10:58:32 pm »
Yeah that's a good idea, especially if you're going to make it into just an engine, then you could release both together.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Side Project #2: DUNGEON
« Reply #74 on: May 09, 2009, 10:59:12 pm »
^^, that was what I was thinking
EDIT: well I'm going to start on that now
« Last Edit: May 09, 2009, 11:02:37 pm by Eeems »
/e