Author Topic: Golf Tour 2011 - Not mini golf!  (Read 11211 times)

0 Members and 1 Guest are viewing this topic.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #45 on: October 16, 2011, 10:54:29 am »
Thanks! Now I just have to figure out exactly where to start.
Can AXE programs run BASIC programs as subroutines? I am more used to BASIC math.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Golf Tour 2011 - Not mini golf!
« Reply #46 on: October 16, 2011, 11:09:14 am »
Thanks! Now I just have to figure out exactly where to start.
Can AXE programs run BASIC programs as subroutines? I am more used to BASIC math.
There is an opcode for doing so.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #47 on: October 16, 2011, 03:33:15 pm »
I am saying that because I think BASIC is easier to use with algorithms. Can you "Include" basic code inside an axe program? Like, inline? I don't want too many sub programs.
Oh, I see. How does that work, the last line?
Also, could I have the program stored into an appvar instead? Or something like that?
« Last Edit: October 16, 2011, 03:34:25 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Golf Tour 2011 - Not mini golf!
« Reply #48 on: October 16, 2011, 03:35:57 pm »
you can write it in HEX in your program, then when it's run, create an other program from that data, use the opcode to run that program and delete the program afterwards.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #49 on: October 16, 2011, 03:36:46 pm »
How different is AXE math from BASIC math?
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Golf Tour 2011 - Not mini golf!
« Reply #50 on: October 16, 2011, 03:43:37 pm »
If you use integer math, your variables can't contain decimal numbers and can't be bigger than 65536, or between 32768 and -32768 when you use signed integers.

If you use fixed-point math, the numbers can be decimal, but with an accuracy of .004, and they can only contain values between 228 and -228.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Golf Tour 2011 - Not mini golf!
« Reply #51 on: October 16, 2011, 05:24:32 pm »
How different is AXE math from BASIC math?

Axe numbers use 2 bytes to represent an integer from 0 to 65535.  Using different methods, you can modify this range to be from -32768 to 32768, still integer.  And then using a method called fixed-point-arithmatic, you can store numbers from -256 to 256, but with accuracy past the basic integer.  In hex, your Fixed point number would look like ##.##, where the ##'s represent the individual bytes.  The advantages of Axe math is that they are extremely fast, as well as being directly integrated with all of the Axe functions.  The disadvantages of Axe math is that they have limited accuracy, and don't work as well in cases where extremely high accuracy is needed.

Basic math (in regards to using it in Axe) is extremely limited simply because Axe only supports importing and exporting Basic variables as integers.  Additionally, Axe does not support doing mathematical operations on Basic variables, and lots of Hex code would need to be used to either access the arithmetical BCALLS, or run a Basic program.  Additionally, basic math is much slower than Axe math, because the code is not compiled, and instead is being manipulated by the (inherently) slow BCALLS.  The advantage Basic math has is it's high accuracy, from -1*10^99 to 1*10^99, with a decimal accuracy of 14 decimal places.  Little of this is accessible to an Axe program however, since Axe only supports the integer side of Basic math.

In short, I highly recommend that if you plan to make this an Axe program, you learn how to use Axe fixed point math, as it's not really worth it to jump through hoops simply to use the slower Basic version for a small gain in accuracy.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #52 on: October 16, 2011, 07:49:30 pm »
that looks complicated O.O
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Golf Tour 2011 - Not mini golf!
« Reply #53 on: October 16, 2011, 08:05:27 pm »
which part? 

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #54 on: October 16, 2011, 08:06:55 pm »
I'll be fine
I should get coding!
How do you do greyscale is my next question...
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Golf Tour 2011 - Not mini golf!
« Reply #55 on: October 16, 2011, 11:14:34 pm »
Grey is really qutie simple: It is accomplished by flashing two images onscreen, one after the other, in a special way axe handles for you.

You have two sets of screen buffers: The front buffer (the one you always use) and the back buffer (the one you've never heard of.)

To draw to the backbuffer, you simply add the superscript r (under ANGLE) to a drawing command. To display grey, use either dispgraphr or dispgraphrr, for 3 or 4 level grey, respectively. Those are still the angle rs.

for 3 level: If there's a pixel on the front buffer it shows black. If there's a pixel on the back buffer without a front pixel, it is grey.

For 4 level: front off back on = light grey. front on back off = dark grey, both on = black, neither on = white.

You need to have the dispgraphrr happen really often to get good grey though, once won't do it.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #56 on: October 18, 2011, 11:05:16 am »
Could you just draw to the buffers while loading the map and then put the DispGraphrr in a Repeat Getkey()? No animation is needed for golf.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Golf Tour 2011 - Not mini golf!
« Reply #57 on: October 18, 2011, 11:29:50 am »
You need to have the dispgraphrr happen really often to get good grey though, once won't do it.
how about Full mode? :D
« Last Edit: October 18, 2011, 11:30:59 am by yeongJIN_COOL »
Sig wipe!

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #58 on: October 18, 2011, 11:30:31 am »
No full mode! NU!
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Golf Tour 2011 - Not mini golf!
« Reply #59 on: October 18, 2011, 01:29:35 pm »
Could you just draw to the buffers while loading the map and then put the DispGraphrr in a Repeat Getkey()? No animation is needed for golf.

Yes you could, just remember that in order for grey to work, you need to continually call the DispGraphrr function.