Author Topic: BatLib/ReCode Examples  (Read 24149 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BatLib/ReCode Examples
« Reply #30 on: April 21, 2011, 11:17:54 am »
This is looking great Zeda, I have to try lists too, thanks for the example.

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/ReCode Examples
« Reply #31 on: April 29, 2011, 05:02:57 pm »
So, being a lover of patterns, I decided to remake a program that I originally made using xLIB. This one is a bit faster, the graphics are smoother, and doesn't require you to make a picture. So here is the basic concept:
-Copy upper 63 rows of the graphscreen
-XOR one pixel down
-Copy lower 63 pixels of the graphscreen
-XOR one pixel up

This will create some fairly interesting effects on its own, but I decided to add in  some pixel drawing for the first 95 iterations. After that, the pattern continues on its own seeming to scroll right, infinitely.
Code: [Select]
Delvar Bdim(56,4
Repeat Ans=15
If B<95
Then
Pxl-On(0,B
B+1→B
End
dim(53,dim(35,0,0,63,12),63,0,1,2,53,dim(35,0,1,63,12),63,0,0,2,43,99
End

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: BatLib/ReCode Examples
« Reply #32 on: April 29, 2011, 07:50:27 pm »
Wow that looks like ASM O.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/ReCode Examples
« Reply #33 on: April 29, 2011, 11:02:54 pm »
Yeah, it is a little complicated to look at, but if you are coding it, it isn't bad. It is like trying to read another person's source x.x On the plus side, the smoothness and speed is pretty noticeable!