Author Topic: BatLib Demo Programs  (Read 53629 times)

0 Members and 2 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #15 on: March 13, 2011, 03:22:59 pm »
Oh, you have to wait until time runs out or you eat 150 blocks. Wow, sorry about that. I should mention that in the readme, sorry !_!

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: BatLib Demo Programs
« Reply #16 on: March 13, 2011, 03:35:54 pm »
Oh ok, cuz I waited like 5 minutes in easy mode and nothing happened ???
« Last Edit: March 13, 2011, 03:36:09 pm by DJ_O »

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #17 on: March 13, 2011, 03:42:07 pm »
Really? I had that problem in an earlier version, but then I fixed it. I'll check if maybe I have the wrong version uploaded?

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: BatLib Demo Programs
« Reply #18 on: March 13, 2011, 03:43:34 pm »
Note, I use a 83+SE 1.19 ROM. I wonder if it could be that?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #19 on: March 13, 2011, 03:46:46 pm »
Hmm, it worked for me and I do not think it is because of your calc model. It doesn't actually use a timer, it just counts how many times you go through the while loop. Did you get a "TIME UP" message? from there you just press enter. It takes about a minute or two on my 84+SE...
Still, I guess I should add an exit key, that might be helpful, sorry.

EDIT: I edited the first posy of Block Eater with this updated version. Just press clear to exit.

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: BatLib Demo Programs
« Reply #20 on: March 13, 2011, 04:18:31 pm »
Nah, no time up message ever appeared. In hard mode I tried and it was fine, though. Easy mode seemed like the only problem, and yeah an exit key would be nice in case someone is in a hurry or something. X.x

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: BatLib Demo Programs
« Reply #21 on: March 13, 2011, 04:18:40 pm »
BTW, I love the idea of partial screen updates, rminds me of pygame's dirty rects method. Doesn't work well for everything though :P

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #22 on: March 13, 2011, 04:22:22 pm »
Yeah, I currently have it updating the whole screen every cycle of the while loop. It would be better if I made a routine that updated a 16x5 portion instead of the whole 96x64 region.

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: BatLib Demo Programs
« Reply #23 on: March 14, 2011, 11:50:37 pm »
What do you mean by partial screen updates? Do you mean when recalling the buffer it doesn't overwrite the entire display?

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: BatLib Demo Programs
« Reply #24 on: March 14, 2011, 11:54:48 pm »
It is basically that, yes. It only checks for changes in specific parts of the screen, even if other parts have changed. That way, a smoothscrolling platformer, for example, could run much faster, since it only updates the area around the player, not the whole screen.

This, in section 5, might help to clear it up
http://www.pygame.org/docs/tut/newbieguide.html

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #25 on: March 14, 2011, 11:55:11 pm »
I mean that you can choose to update, say, the first 8x8 square of pixels on the LCD. The LCD is a little sluggish, so if only one small section of the graph screen changes, instead of refreshing the whole screen, you can just do that the modified area :D

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: BatLib Demo Programs
« Reply #26 on: March 15, 2011, 12:02:56 am »
Oh wow that's just too awesome. This will make games so much faster. I think Quigibo should implement this in Axe too.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #27 on: March 15, 2011, 12:05:02 am »
I plan to add it to the DispGraph command so you can do something like this to update just the upper left 8x8 corner of the screen:
Code: [Select]
DispGraph0,8,0,8
Otherwise, if there are no coordinates it will just update the whole screen.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: BatLib Demo Programs
« Reply #28 on: March 15, 2011, 05:45:58 pm »
Block eater doesn't want to work for me. I can't select anything else other than easy mode and I can't move the sprite. Then I get a syntax error. The syntax error seems to only appear when I try to move he sprite or inside the menu.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Demo Programs
« Reply #29 on: March 15, 2011, 05:48:28 pm »
Hmm, that is odd. Did you have a previous version of BatLib on your calc before installing the latest one? Also, I am working on that rectangle routine problem you found :D It is almost fixed (I just got back).