Author Topic: Grammer 3-Concepts, ideas, requests  (Read 60891 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #15 on: April 29, 2012, 03:45:51 pm »
Quote
Idea for grammer 3: A good readme :P

Coming soon :)  in French.
D: Why not in english? :(
Because I'm working on that one. :P
Sig wipe!

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: Grammer 3-Concepts, ideas, requests
« Reply #16 on: April 29, 2012, 04:16:51 pm »
Quote
Idea for grammer 3: A good readme :P

Coming soon :)  in French.
D: Why not in english? :(
Because I'm working on that one. :P
Haha, cool, forgot it :P

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

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #17 on: April 29, 2012, 06:34:43 pm »
It's ok, since it haven't got any progress for a while. :P
Sig wipe!

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Grammer 3-Concepts, ideas, requests
« Reply #18 on: February 19, 2013, 12:17:26 pm »
i had an interessant idea:

Could it be possible to make big conditions for graphics, as an alternative to pixeltest ?

For example:
Code: [Select]
:If Line('2,2,30,29): and B=6
:stuff

Do you think it's possible ? Grammer would innovate, with Pixel-tests, Line-tests, Circle-tests, maybe Text-tests :D !
If it is, can I suggest one level more harder again: A sprite-test detection ?


Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #19 on: February 19, 2013, 12:35:55 pm »
Do you think it's possible ? Grammer would innovate, with Pixel-tests, Line-tests, Circle-tests, maybe Text-tests :D !
If it is, can I suggest one level more harder again: A sprite-test detection ?
In fact, I think the sprite test detection would be easier to do than the other detection o.o
For exemple, in Axe, you have Pt-Get (which "extracts a sprite from a buffer", if I can say so) and Equ>String (which compares two strings), and a good use of a combination of both can give you your sprite test ;)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #20 on: February 19, 2013, 12:41:11 pm »
A sprite-test detection ?
A text test is a sprite row test so one implies the other. ;)
Edit : Ninja'd.
« Last Edit: February 19, 2013, 12:42:08 pm by Streetwalker »

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: Grammer 3-Concepts, ideas, requests
« Reply #21 on: February 19, 2013, 12:42:24 pm »
Actually, I already have the code for pixel-testing along lines, circles, sprites, and rectangles (but pixel testing rectangular regions already exists in Grammer). In fact, here is an example where I used my sprite pixel testing:

It doesn't return how many pixels there are, though, it only checks if there are any pixels. (so it returns 1 or 0). As a note, that is not a Grammer program or a Grammer 3 program :P

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #22 on: February 19, 2013, 12:43:12 pm »
A sprite-test detection ?
A text test is a sprite row test so one implies the other. ;)
True story bro. But that doesn't work for the line and the circle. This is why I really think that sprite test detection is much more likely to happen than arbitrary geometry forms detection (not sure about the meaning of my sentence).

edit nevermind my post, I got ninja'd by Xeda whose answer is surely more accurate
« Last Edit: February 19, 2013, 12:44:27 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: Grammer 3-Concepts, ideas, requests
« Reply #23 on: February 19, 2013, 12:45:03 pm »
This is why I really think that sprite test detection is much more likely to happen than arbitrary geometry forms detection (not sure about the meaning of my sentence).
Actually, at the assembly level, it is very easy to pixel test on lines or circles (and by very easy, I mean it is as easy as drawing the shape, but a little faster in most cases).

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #24 on: February 19, 2013, 12:45:51 pm »
I didn't speak about geometrical shapes. ;) Only text and sprites.
Edit : Ninja'd twice in a row. D:
« Last Edit: February 19, 2013, 12:46:26 pm by Streetwalker »

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Grammer 3-Concepts, ideas, requests
« Reply #25 on: February 19, 2013, 01:28:02 pm »
The grammer test command for a recangle is "true" if 1 pixel is on...

Is that possible to make it "true" only if all the pixels in the rectangle are on ?

And, for the line, I think I can use a rectangle with a width of 1.


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: Grammer 3-Concepts, ideas, requests
« Reply #26 on: February 19, 2013, 01:32:01 pm »
If you know the width and height of the rectangle, you can see if W*H:=Line(X,Y,H,W,14

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Grammer 3-Concepts, ideas, requests
« Reply #27 on: February 19, 2013, 01:33:05 pm »
Exact. Very well, thanks.


Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #28 on: February 19, 2013, 04:27:57 pm »
Perhaps Grammer 3 should support multi-character variable names.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #29 on: February 19, 2013, 09:30:04 pm »
Perhaps Grammer 3 should support multi-character variable names.
You can already do this. kinda.
Sig wipe!