Author Topic: Grammer 2-The APP  (Read 59173 times)

0 Members and 1 Guest are viewing this topic.

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #225 on: February 19, 2012, 10:09:59 am »
Okay, here is that other Fire command. This is Fill(23 and it has this syntax:
Fill(23,Type,Y,X,Width,Height
After the 23, the arguments are like Pt-On(, except Type comes in two kinds, black fire or white fire. 0 is white, 1 is black :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #226 on: February 19, 2012, 10:38:50 am »
yay.
* TBO_Yeong downloads
Sig wipe!

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #227 on: February 19, 2012, 12:53:16 pm »
It will be cool to see what you can do with this O.O I was trying to see if I could make a burning sprite, but I've had no luck :/

Offline turiqwalrus

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 840
  • Rating: +51/-2
  • Wheeeeeee~!
    • View Profile
Re: Grammer 2-The APP
« Reply #228 on: February 20, 2012, 02:28:50 am »
will download as soon as I can pester my brother to let me use his laptop for a sec :P

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #229 on: February 20, 2012, 07:03:24 pm »
happy to see another Grammer coder. :D
Sig wipe!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #230 on: February 20, 2012, 07:53:15 pm »
BTW, how is the fire made? Psuedo code?

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #231 on: February 20, 2012, 09:01:08 pm »
Pretty much, the pixel is shifted up one and it has a 1/x chance of dying. In Grammer, for now, that chance is about 1/8 (I might add options for 1/4 for smaller flames and 1/16 for larger flames).

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Grammer 2-The APP
« Reply #232 on: February 20, 2012, 09:56:23 pm »
I don't want to read 16 pages, but i guess i must :P
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Grammer 2-The APP
« Reply #233 on: February 21, 2012, 08:01:35 pm »
Thanks for the pseudo, Xeda! I guess it's really quite simple. :)

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #234 on: February 21, 2012, 08:23:28 pm »
Yeah, it is crazy O.O If you want to apply this to a system with more colors, instead of dying, you can make it fade one more color to really give it a fire effect! I really think it would be cool to make a grayscale fire routine, but that would work much easier going from white fire to gray, to black. Also, I just realised how I can easily add in better grayscale support (such as drawing as white, black, or gray).

What I would do is since you use Disp to define the current draw buffer, you could use Disp ' to define the gray buffer. Also, I might experiment with some behind the scenes stuff to make updating the screen even faster.

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #235 on: February 22, 2012, 08:06:07 am »
I rewrote the DispGraph routine and it now updates a little faster. Even better is that it automatically updates with grayscale! The only thing is, you won't get to use it or see it because for now, the gray buffer and black buffer are the same buffer. So how do you change this?

Use Disp ' to change the black buffer. Not changing the gray buffer will leave the gray buffer on the graph screen.
Use Disp o to change the gray buffer.
Use Disp to set both the gray and black buffer to the same thing.

I still need to change the drawing commands to accept an extra argument or modifier to draw as black/white/gray.

EDIT: I am going to wait to release it, but I have drawing rectangles to specific buffers and clearing specific buffers (like the gray buffer or black buffer) working. I am waiting until I have this available for all the other drawing commands. Meanwhile, check out the grayscale cursor thing I made :D

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #236 on: February 24, 2012, 10:21:03 am »
Okay, here is an updated version, now fully ready for grayscale drawing! You can now add an argument to most drawing commands to draw to a specific buffer (it doesn't even need to be the gray buffer or black buffer). Some command to do this with:
Pt-On( to draw a tile
Pt-Off( to draw a sprite
Horizontal
Vertical
Pxl-On(
Pxl-Off(
Pxl-Change(
Pxl-Test(
Line(
Line('
ClrDraw
Circle(
I have written a few programs using these, but nothing too major yet. I can't wait to see what gets done with this o.o Also, you might be surprised to know that Circle( actually had another optional argument that looks like it is going to stay, so don't forget that argument when drawing circles to arbitrary buffers! (the argument lets you draw dotted circles and whatnot)

So I updated the readme, added another .txt document for grayscale info, and did some other miscellaneous house keeping. Enjoy!
EDIT: Added another screenie an example. For prgmGRVTYFUN, use the arrows to change the gravity, use + or - to add or delete objects, press clear to exit :)

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Grammer 2-The APP
« Reply #237 on: February 24, 2012, 11:00:56 am »
Woah that's really cool that you have stuff moving so fast with physics O.O. On top of that with grayscale. :O

So now I guess Grammer can definitively be used for games like Desolate too :D
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4579
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #238 on: February 24, 2012, 11:03:43 am »
O.O I don't know about that, but I hope some really cool stuff comes of this! I also plan to add grayscale fire *cough* and maybe if I rewrite the particle system, I can have multiple particle types and colors in a buffer I think it would be lovely and neat...

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Grammer 2-The APP
« Reply #239 on: February 26, 2012, 07:52:29 am »
Great app. I just got confused where the latest version was. It wasn't on the first post I think. I had to look at your signature to download it. But anyway, great job, keep up the mammoth effort!
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)