Author Topic: Grapher  (Read 8489 times)

0 Members and 1 Guest are viewing this topic.

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Grapher
« Reply #15 on: December 17, 2011, 09:05:27 pm »
From squidjetx's guide on optimizations, I've heard it does the same as
:DispGraph
:ClrDraw
But is twice as fast.
But it is also a larger command

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #16 on: December 17, 2011, 10:09:22 pm »
Update 1: (HUGE update)

This is my first update since the release. So many things have changed:

- Added snapped movement
- 8 pixel movement instead of 1 pixel
- Added 4 Quadrants
- Added Gray Grid Lines
- Removed support for mouse clicking options, made it the function keys
    This means that to change options, use F1, F2, F3, F4, and F5

There is still some stuff needed to do:
- Add slope in corner
- Add coordinates in corner
- Add math menu for geometric conversions

Screenie and new sources in the bottom!


Oh and lol, the NIGSRC and NIGTITS was my friend playing with his calc making programs xD
« Last Edit: December 17, 2011, 10:10:28 pm by thydowulays »
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Grapher
« Reply #17 on: December 17, 2011, 10:29:33 pm »
NIGTITS? O.O

Looks cool with those new gray lines!

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #18 on: December 17, 2011, 11:16:33 pm »
lookin really good :)
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #19 on: December 17, 2011, 11:25:55 pm »
Thanks! @epic7 LOL ikr i asked my friend what he was trying to accomplish with putting the NIGTITS program on both the real calc and wabbit and he said no comment. xD. But yeah I'm currently working on the coordinate system. I have it figured out but the origin (0,0) is in the top-left hand corner and I want it to be in the center. I also want it to be able to support negative numbers.....
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #20 on: December 17, 2011, 11:29:06 pm »
This is a long shot, but you could just set two variables to the coordinates of the middle of the screen, then sit down for five minutes and tell yourself repeatedly, that those variables equal 0,0.....lol
« Last Edit: December 17, 2011, 11:29:21 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #21 on: December 18, 2011, 02:49:24 pm »
Okay I need some of you guys to help me out.... I am trying to get a coordinate system up, but it isn't working PERFECTLY. It does put the origin at the point of intersection of the two x and y lines, but if I go below 0, instead of giving me -1, it gives me 8191. The formula I'm using to convert 8 pixels to 1 coordinate is:
X-45/8->G .Note that G is the coordinate in the program, not the pixel itself
Y-30/80>H .Note that H is the coordinate in the program, not the pixel itself

That will put the origin in the center. I used to use X/8->G and Y/8->H but that put the origin at the top left hand corner.
Anyway, so my negatives aren't working. I'll put a screenie up showing it better.....

Note that once I open up my graph program, the Y axis is flipped (when I go down, the number goes up instead of down, and it should be negative)
Also note that the number goes to 8191 once I go into the 1st, 2nd, and 4th quadrants
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #22 on: December 18, 2011, 02:52:46 pm »
I read somewhere that you have too use >> for negatives in axe....But I'm not sure
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Grapher
« Reply #23 on: December 18, 2011, 03:07:09 pm »
saintrunner has the gist of the issue. If you're trying to use negative numbers, you have to use the signed versions of Axe's operators (only applicable for division and comparison), which are formed by doubling up the unsigned version. In the case you've mentioned, you need to use // instead of /.
« Last Edit: December 18, 2011, 03:07:17 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #24 on: December 18, 2011, 04:24:05 pm »
Wow, I'm surprised, usually I'm wrong lol
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #25 on: December 18, 2011, 08:03:23 pm »
Wow, thanks! I was just about to make a huge ass subroutine that would make it negative lol


EDIT: Wait just a minute. For some reason, now it says 65535 instead of 8919 when I use //. If you see the screenshot above, In the first part I show the code that makes the coordinates at the origin. So I replaced the X-45/8->G with X-45//8->G but it still doesn't work.....  :banghead:
« Last Edit: December 18, 2011, 08:07:47 pm by thydowulays »
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Grapher
« Reply #26 on: December 18, 2011, 08:19:06 pm »
As far as Axe is concerned, 65535=-1 ;) The obvious solution is to test if G is less than 0, and, if so, display a negative sign and then -G.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #27 on: December 18, 2011, 08:20:57 pm »
Wow...Always go for the 'KISS' method lol.... Keep It Simple Stupid :) That's what my Dad used to tell me all the time
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #28 on: December 18, 2011, 08:22:29 pm »
Thats what my subroutine was going to be...... erg why doesn't Axe support full negative numbers? Or at least include like a neg( function or something so I don't have to keep writing the subroutine..... lol but whatever I guess I'll get to it.
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #29 on: December 18, 2011, 08:26:39 pm »
you can suggest it to Quigibo
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: