Author Topic: Bowling: Re-optimzed.  (Read 7024 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bowling: Re-optimzed.
« Reply #15 on: February 20, 2009, 08:18:21 pm »
you can, but it's  only practical if your entire game is in RAM, not archive

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Bowling: Re-optimzed.
« Reply #16 on: February 21, 2009, 05:01:32 am »
I guess xlib usage is exactly the same. Or has some little issues?
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bowling: Re-optimzed.
« Reply #17 on: February 21, 2009, 09:58:01 am »
You can use xlIB for basicbuilder, but I think you need to do special stuff with your game when you use pictures, such as Bowling

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Bowling: Re-optimzed.
« Reply #18 on: February 21, 2009, 12:07:01 pm »
You can use xlIB for basicbuilder, but I think you need to do special stuff with your game when you use pictures, such as Bowling
Yeah I never quite figured out how to use Basic builder with xLIB.. I think i tried once and failed miserably, so I never tried again.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Bowling: Re-optimzed.
« Reply #19 on: February 21, 2009, 01:04:41 pm »
You can use xlIB for basicbuilder, but I think you need to do special stuff with your game when you use pictures, such as Bowling
How does BasicBuilder handle the pics? Does it put them in the app or do you have to leave them as normal pics?
Former Coder of Tomorrow


Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
Re: Bowling: Re-optimzed.
« Reply #20 on: February 21, 2009, 03:24:13 pm »
You Most likely have to do some sort of install/uninstall sequence like bowling does. This way you can get around any weird basicbuilder =+ xlib quirks that there may be.

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
Re: Bowling: Re-optimzed.
« Reply #21 on: February 22, 2009, 01:09:22 am »
How does BasicBuilder handle the pics? Does it put them in the app or do you have to leave them as normal pics?

BasicBuilder packages the pics into the app just like it does with the programs. However, having the pics as random data in the app is useless if you plan on using Celtic or xLIB with the pics. In order to use the pics, you have to "extract" them from the app first. Basically you have to recall the pics from the app and store the image to pic files.

Bowling stores the images to "hacked" variables and archives them when it is first run. That's what is going on in the background when you see the images flash on the screen.

Just a question about BasicBuilder: can you put multiple programs into it? Because I read somewhere that it didn't work... (I might use that for my Fangh RPG).
By the way, how does xLIB work with BasicBuilder apps?

Yes you can put multiple programs into it, but I find that the application runs extremely slow when there is more than one program packaged into it. To avoid this issue, I compile all the subprograms into the main program. There is a method to call the subprograms from the main code without destroying the flow of execution. If you induce a memory leak using a Goto inside a Repeat/While loop, you can return back into the loop by passing an extraneous End to the interpreter. The interpreter will see the End as part of the exited loop and will resume execution after the loop. In effect, the subprogram code can be called just like it would be if it were a separate program. There a few varieties of methods to induce the memory leak. The method I use allows arguments to pass in Ans which I find useful at times.
« Last Edit: February 22, 2009, 01:20:56 am by nitacku »