Author Topic: Few simple questions  (Read 18509 times)

0 Members and 1 Guest are viewing this topic.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #15 on: May 26, 2012, 08:51:39 am »
Ah ok, and the backup buffer, how do i use it?
(sorry for not knowing about that stuff, but everytime you teach me something, i don't forget it and i won't have to ask much later)
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #16 on: May 26, 2012, 08:57:07 am »
ok, first of all, with xLib you have two screens so to say.
One screen is the normal screen.
The other screen is some backup screen (screen buffer). Everything you draw onto the normal screen is also drawn to the backup buffer, but you can optional just write to the backup buffer, the user doesn't see this.
Remember the last parameter of drawing sprites being one so that it updates the screen? That is because xLib draws all the time to the backup buffer, with that being one you tell the calc to copy everything from the backup buffer to the normal screen. Leaving it 0 would just draw it to the backup buffer and you wouldn't see it on the screen.
You could also just do real(6) to copy everything from the backup buffer to the normal buffer.
Now, you could draw a lot of stuff into the backup buffer, store everything from the backup buffer into a pic, clear again the backup buffer, draw some other stuff there (e.g. a menu), and then update the LCD by e.g. using real(6) and so you have created the pics you need for sprites without that the user notices that!
I hope you get my explanation :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #17 on: May 26, 2012, 09:03:19 am »
Ah thanks, i get it, so you also can draw a screen, let the user see it, when that's done draw a screen on backup while the user still sees the first drawing
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #18 on: May 26, 2012, 09:14:11 am »
Yep, and that other screen on the backup buffer you can copy to a image with real(9,2,<picnumber>), then you can clear the backup-buffer with real(0,0) and draw some new stuff to the backup-buffer, and then let the user see everything with real(6)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #19 on: May 26, 2012, 09:19:33 am »
Ok, that's actually pretty cool, that allows people to make a startupscreen that tells them what's it preparing, like: a pic with "loading sprites" then if the image is drawn, draw the sprites on backup, when that's done, adjust the menu to: "drawing map" and then do that, that's pretty cool

And where does xlib saves all of those pics?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #20 on: May 26, 2012, 09:24:35 am »
It saves it in ram. You'll have then if you go to the memory menu and select pics some wiered names with pic numbers greater than 10. But that doesn't mind. Remember that you CAN'T recall them with recallPic <num>, you need to use real(3 like this:
real(3,rPIC_Num,rPIC_Method,Recall_UpdateLCD)  (copied from the readme)
rPIC_Num = PIC to recall PIC0 - PIC255
rPIC_Method = The copy method 0 = Overwrite, 1 = AND, 2 = OR, 3 = XOR
Recall_UpdateLCD = Toggle LCD update 0 = No, 1 = Yes   // is if it should copy the backup buffer to the screen of not

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #21 on: May 26, 2012, 09:30:22 am »
Ow yeah, i forgot that because i don't have it right now on my calc, but i'm going to do it soon and then i'll read the read me again and start my project(s)
« Last Edit: May 26, 2012, 09:30:50 am by stevon8ter »
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #22 on: May 26, 2012, 09:35:23 am »
But if you want real power you should use DoorsCS instead of xLib, that gives you even more features for later on and it gives you a epic GUI and also allows you running archived programs from homescreen. It is found here: http://www.cemetech.net/programs/index.php?mode=file&path=/beta/dcs72b2.zip

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #23 on: May 26, 2012, 09:39:35 am »
What kind of extra features does it have?

And are the real() stuff the same as xlib's?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline turiqwalrus

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 840
  • Rating: +51/-2
  • Wheeeeeee~!
    • View Profile
Re: Few simple questions
« Reply #24 on: May 26, 2012, 09:41:08 am »
But if you want real power you should use DoorsCS instead of xLib, that gives you even more features for later on and it gives you a epic GUI and also allows you running archived programs from homescreen. It is found here: http://www.cemetech.net/programs/index.php?mode=file&path=/beta/dcs72b2.zip
meh... it depends...
keep in mind that Doors is 3 app pages(49152 bytes), a pretty sizable amount.
Depending on the end user's calculator model, I'm not sure if they'd want to have to install a giant app :P

edit: ninja'd :P

Stevon8ter the xlib commands are all still the same, and it adds the Celtic III library, PicArc, and several more, including a few of its own commands
« Last Edit: May 26, 2012, 09:42:34 am by turiqwalrus »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #25 on: May 26, 2012, 09:42:23 am »
yes, the real() functions are the same. Features it has: it has even more libraries than xLib which are called with other tolkens (identitiy(), det(), sum() ). It gives assebly programmers a lot of other functions, like calcnet, to connect, i think in theory infinity calculatores, it gives you also the ability to access with your calc to the internet (you have to have it connected it to the pc and have some stuff on the pc running), it also alows basic programmers to add a program image (up to 16x16 pixels) and a description.
Oh, and it has a computer-like GUI.
And it's just epic.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #26 on: May 26, 2012, 09:48:23 am »
I see, well, i'm going to install it but for now i'll use only the xlib commands in ly prog, so the user can choose if they install doors or only xlib
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Few simple questions
« Reply #27 on: May 26, 2012, 10:08:45 am »
It's also a good idea to check if a user has xLib on, that is possible with real(6), as without xLib that would return 6. With xlib it wouldn't return anything.
So put anywhere at the top of your program something like this:
Code: [Select]
if real(6)=6
then
disp "You need xLib
Stop
end

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #28 on: May 26, 2012, 11:45:35 am »
That's a great idea, i always try to make checkig to make sure nothing goes wrong, this time i didn't think of it yet

EDIT1: before i forget, the x-y coordinates for sprites, is it upper-ledt corner or upper-right or ...?
« Last Edit: May 26, 2012, 02:17:28 pm by stevon8ter »
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Few simple questions
« Reply #29 on: May 26, 2012, 04:38:35 pm »
And could you also explain me some more specific about the tiles and the scrolling? How it happens and stuff.... Or you know a good tutorial for it?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER