Author Topic: xLIB 84C Edition  (Read 50233 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: xLIB 84C Edition
« Reply #150 on: August 28, 2013, 12:54:58 am »
Wow, almost no more BASIC in the code O.O

ANyway this seems kinda small, which is good. Also after the IRC discussion, I'm glad that maps can be larger than 20x15, because when my RAM allows it, this could make it easier for collision detection on map edges (since I could overflow outside of the currently displayed map instead of wasting two rows and two columns per map chunk).

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #151 on: August 28, 2013, 01:34:12 am »
Yeah there is a lot of calls to real( hehe. That said, you can still use TIOS vars and BASIC code, just some functions require you to store the results in xLIB uservars first. But i might change this so that it can be the same as old xLIB as well.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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: xLIB 84C Edition
« Reply #152 on: August 28, 2013, 01:36:22 am »
That reminds me, can the map be something like 13-14 pixels high? Just wondering if HUDs are possible.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #153 on: August 28, 2013, 01:41:22 am »
You mean tiles high?

You can draw a map from 1x1 tiles to 20x15 tiles (fullscreen) at any position on the screen. The tilemap command takes:

XSTART,YSTART,XEND,YEND

Which is how you specify what size and where to draw the map.

For a 16 pixel high HUD at the bottom of the screen you can set it to: 0,0,19,12

If that makes sense?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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: xLIB 84C Edition
« Reply #154 on: August 28, 2013, 01:48:07 am »
yeah I meant tiles high, my bad. And yeah I was wondering if it was possible to display maps that don't cover the entire screen height, like those 20x14 maps:


Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #155 on: August 28, 2013, 01:51:22 am »
Yep ill mod the example to demonstrate when i get home :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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: xLIB 84C Edition
« Reply #156 on: August 28, 2013, 01:55:10 am »
That's good to hear then. :) If I decided to use scrolling for any reason, I prefer not having to redraw the HUD every frame. :P

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: xLIB 84C Edition
« Reply #157 on: August 28, 2013, 03:52:37 am »
Wha, that tilemap is looking awesome!
It is actually faster than reuben quest (the non-axe of course) :P

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

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: xLIB 84C Edition
« Reply #158 on: September 03, 2013, 02:08:46 am »
tr1p you should add a command to enable/disable low color mode, like that routine AssemblyBandit made. It turns the calc into 8 color mode, supposedly to save battery life, but combined with screen inverting, this would make very nice commands for magic animations. I just tried mashing both F1 and F2 keys in IViewer and the result was pretty cool. :D
« Last Edit: September 03, 2013, 02:10:26 am by DJ Omnimaga »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: xLIB 84C Edition
« Reply #159 on: September 03, 2013, 12:51:19 pm »
It looks soooooo good :D will you make an ASM lib out of XLib functions ?

EDIT : 1000th post !

EDIT 2 : does my sig fit the rules like this ?
« Last Edit: September 03, 2013, 12:56:35 pm by Matrefeytontias »

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: xLIB 84C Edition
« Reply #160 on: September 03, 2013, 02:26:35 pm »
EDIT 2 : does my sig fit the rules like this ?
There are no finalized rules yet, and the topic sig rules died so quickley that i don't think there are any real sig rules.

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

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: xLIB 84C Edition
« Reply #161 on: September 03, 2013, 06:08:31 pm »
Well xLIB by itself will be an ASM lib for BASIC programmers. Actual libs made using xLIB+BASIC would be kinda inneficient, although I guess if people creates map engines or menus, they could post them on ticalc.org for other programmers.

On a side note, by low color and screen inversion routines that are built-in the calculator, this is what I meant. On a real calc it doesn't look too flashy at least:



The low color mode alone could be used for certain magic animations that requires intense colors, while the other, perhaps combined with the low color mode, could be used for lightning bolt spells, for example.

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: xLIB 84C Edition
« Reply #162 on: September 03, 2013, 06:12:19 pm »
epilepsy warning :P

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

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #163 on: September 04, 2013, 12:29:38 am »
yeah i can enable 8-colour mode easily enough, its just a few lines of code.

Can make for some crazy stuff lol.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: xLIB 84C Edition
« Reply #164 on: September 07, 2013, 02:34:52 am »
It's looking too awesome. O.O
Though I stil want an HP Prime first. :P