• Axe Q&A 5 5
Currently:  

Author Topic: Axe Q&A  (Read 601645 times)

0 Members and 1 Guest are viewing this topic.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #840 on: October 28, 2011, 09:30:51 pm »
The input command works, but it is buggy. It may be better to write one of your own.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #841 on: October 28, 2011, 09:32:38 pm »
K, then thats what ill do

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #842 on: October 28, 2011, 09:37:01 pm »
On second thought, you could use some of the routines here, if you give the author credit. Click the link, and then search "input" to find the good stuff :)

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #843 on: October 28, 2011, 09:43:06 pm »
How would you do a Load/Save game in a game?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Axe Q&A
« Reply #844 on: October 28, 2011, 09:47:09 pm »
There are two common ways.

1.  Make an app variable to hold information.
2.  change data in your program and have some random asm command at the end (can't remember it}
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 epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #845 on: October 28, 2011, 10:16:54 pm »
I need to learn these appvar things.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Q&A
« Reply #846 on: October 28, 2011, 10:53:55 pm »
On second thought, you could use some of the routines here, if you give the author credit. Click the link, and then search "input" to find the good stuff :)
Yup, that's a great link.  If you don't want to search, though, you can always use the index: http://ourl.ca/7818

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #847 on: October 28, 2011, 11:06:23 pm »
I was going to use the input for a load game, so the user would type a number that would loaf the level and stuff. Or, I could use a button to do it, but I don't know how to work appvars

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #848 on: October 29, 2011, 12:11:48 am »
I got started on appvars with this: http://www.omnimaga.org/index.php?action=articles;sa=view;article=58
...and this: http://ourl.ca/12627
(check out the source code for it. :)

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #849 on: October 29, 2011, 11:23:40 am »
Does anyone know what's wrong? When I push the arrows in the menu, nothing happens
Code: [Select]
:.ROBOGUN
:DiagnosticOff
:[FCFC000000000000]→Pic2
:[081C2A4908080808]→Pic0
:[F080800000000000]→Pic1
:[FCA0A02000000000]
:[FFFCA0A080000000]
:[FCFFFC4848484000]
:[F8FFFFF848484850]
:[F8FFFFFFFC6C6C6C]
:[Pic9]→Pic8
:Fix 5
:Repeat getKey(15)
:copy(Pic8,L6,768)
:Text(35,1,"RoboGun")
:Text(1,55,"New Game"
:Text(60,55,"Load Game"
:Pt-On(75,47,RotC(Pic0)
:Pt-On(12,48,RotCCPic0)
:If getKey(2)
:Goto N
:End
:If getKey(3)
:Goto L
:End
:DispGraph
:End
:Lbl L
:ClrDraw
:Goto 1
:Lbl N
:0→G
:1→L
:Lbl 1
:43→X
:0→M
:27→Y
:Repeat getKey(15)
:ClrDraw
:If getKey(2)
:X--
:End
:If getKey(3)
:X++
:End
:If getKey(1)
:Y++
:End
:If getKey(4)
:Y--
:End
:If getKey(48)
:0→R
:End
:If getKey(40)
:1→R
:End
:If getKey(54)
:1→F
:End
:If R
:Pt-On(X,Y,Pic1+L*8)
:Else
:Pt-On(X,Y,FlipH(Pic1+L*8)
:End
:If F
:X+4→S
:Y+1→T
:Pt-On(S,T,Pic2
:0→F
:1→M
:End
:If M
:If R
:S++
:End
:!If R
:S--
:End
:Pt-On(S,T,Pic2)
:If S=94 or S=0
:0→M
:1→F
:End
:End
:End
:Fix 4
« Last Edit: October 29, 2011, 11:24:30 am by epic7 »

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #850 on: October 29, 2011, 12:02:16 pm »
I didn't look too closely, but I think you may be missing a DispGraph somewhere. I will take a deeper look later,if you want.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #851 on: October 29, 2011, 12:48:08 pm »
Ong im stupid. :P

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #852 on: October 29, 2011, 12:52:13 pm »
Was that it? :)

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #853 on: October 29, 2011, 01:14:08 pm »
Forgot dispgraph. Still, I have a lot of errors to ffix

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #854 on: October 29, 2011, 01:25:04 pm »
dispgraph always seems to sneak out of the source... I'll catch it someday... XP