Author Topic: Lightning!  (Read 9288 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Lightning!
« Reply #15 on: March 25, 2010, 11:34:20 pm »
Yeah, and that could also give a nice effect too!

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Lightning!
« Reply #16 on: March 26, 2010, 04:55:43 pm »
what real(# would i use from xLIB or Celtic? and i would use lines, but i'm trying to keep program size to an absolute minimum, as the game itself will take a lot of mem (it's gonna be a moving sprite rpg with one or two detailed towns)
remember me as a time of day...

Offline {AP}

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 981
  • Rating: +74/-3
  • I am Webmaster!
    • View Profile
    • Removed From Game
Re: Lightning!
« Reply #17 on: March 26, 2010, 05:05:20 pm »
You'd use real(3 most likely. It works exactly like RecallPic but with some other features.

real(3,pic_num,logic,update_LCD

pic_num = Number of the pic. (0-255)
logic = How the pic is displayed.
 0 =  Overwrite
 1 = AND
 2 = OR
 3 = XOR

update_LCD =
 0. Doesn't update
 1. Updates screen
 
For what you want, you'd just need "real(3,3,0,1" and "real(3,5,0,1".

Also, note that a Pic takes up a LOT of memory so it would probably be smaller to use several line commands over a 2nd picture.
Of course, if you plan on using xLIB or CIII anyway, the pics can be archived so it will take less RAM to use pics.

Up to you.
« Last Edit: March 26, 2010, 05:07:18 pm by {AP} »

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Lightning!
« Reply #18 on: March 26, 2010, 05:13:52 pm »
hmm. well i have everything archived all the time anyway (i use CalcUtil). but yeah, i mostly cared about RAM because my friend has a normal TI-84, and almost all of his arc and ram are in use, and since he's doing the storyline, he should be able to use it P:
remember me as a time of day...

SirCmpwn

  • Guest
Re: Lightning!
« Reply #19 on: March 26, 2010, 05:34:42 pm »
^CalcUtil++

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Lightning!
« Reply #20 on: March 26, 2010, 05:36:31 pm »
^CalcUtil++
haha best app i've ever found besides omnicalc ^^
remember me as a time of day...

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: Lightning!
« Reply #21 on: March 26, 2010, 06:20:49 pm »
We are a bit offtopic, but I am curious about something: Do you mean calcutil runs every single archived program on your calc in any way? I mean for example, if I have

EXEC EDIT NEW
*LOL
*PRGMLOL
*ZLOL
ZSPRITE
*ZZZ

prgmLOL contains:

Code: [Select]
:A+1->A
:prgmZZZ
:prgmZLOL

Will prgmZZZ/ZLOL commands return a ERR:ARCHIVED?

Back on topic, I personally would prefer using lines for drawing lightning, simply because pics are a waste of space (unless the bolts are really complex and stuff).
« Last Edit: March 26, 2010, 06:22:52 pm by DJ Omnimaga »

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Lightning!
« Reply #22 on: March 26, 2010, 06:22:42 pm »
nope, i'm pretty sure it wont. pictures cant be archived though. to run archived pics you can just use xLIB anyway

so yeahh, now i can clear my ram pretty haphazardly and have around 19-20k RAM at all times P:
« Last Edit: March 26, 2010, 06:27:06 pm by Gale »
remember me as a time of day...

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: Lightning!
« Reply #23 on: March 26, 2010, 06:37:17 pm »
aaah ok I see now. I was wondering cuz I was unsure to which extent CalcUtil worked with archived stuff. But yeah my point is that even if archived the pics still took a lot of memory x.x. I mean, in ROL3, if I decided to draw the lightning bolt inside a pic instead of an archived subroutine, I would have ran out of pic, first, (ones that can be sent fine ungrouped, that is), and secondly I would have wasted about 500 bytes of archive

I guess it's up to you, though, but remember you can't just use pics for every single thing in the programming world. Sometimes it's best to either draw stuff manually to save space, abuse programs to run archived subprograms like XCOPY or xLIB (if you use it alerady) or use smaller sprites. It depends of opinions, though. I just had bad memories of downloading games abusing pictures before, only to realise the abuse of pics made them so huge that the author could only add maybe 4 or 5 map in the game

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Lightning!
« Reply #24 on: March 26, 2010, 06:39:56 pm »
one word about calcutil its very glitchy with omnicalc and a few other asm programs :/
 i had to reset my os cause if it X.x so be sure to backup often X,x

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: Lightning!
« Reply #25 on: March 26, 2010, 07:22:51 pm »
wasn't the code also stolen from NoShell, but with more functions added? I wonder if it works on OS 2.5xMP too

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Lightning!
« Reply #26 on: March 26, 2010, 08:03:44 pm »
i wouldn't doubt that it was stolen from NoShell, it's almost identical haha
remember me as a time of day...

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: Lightning!
« Reply #27 on: March 26, 2010, 08:40:52 pm »
BrandonW said it was. Idk if the author of calcutil asked permission, but BrandonW said he didn't mind since Noshell isn't really updated anymore and buggy

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: Lightning!
« Reply #28 on: March 27, 2010, 06:41:50 am »
The calcUtil credits refer to NoShell and Brandon iirc.

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: Lightning!
« Reply #29 on: March 28, 2010, 12:52:09 pm »
aaah ok, that's good at least :P