Author Topic: I need help with a code!  (Read 9480 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: I need help with a code!
« Reply #15 on: September 10, 2011, 08:47:40 am »
so I cant write {Str1+18}???
(Str1 because your older post...)

Yes you can, that's the way to do it ;)

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: I need help with a code!
« Reply #16 on: September 10, 2011, 09:38:28 am »
Tried it, but It's ignoring me!!!
It's showing random "tappers" on the screen, not like I've told it in the code!!
*insert supercool signature*

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: I need help with a code!
« Reply #17 on: September 10, 2011, 04:50:10 pm »
Buttsfredkin, I thought it was a midi-to-axe-converter     ;)
Can you please post an example-code for me (I can learn it easier if I can exit a complete code with the new part in it)
I was planning g to use that converter, but don't really know how I must write that!

haha my bad. :)


I think the thread here http://ourl.ca/6263/102339 has some example code you can download.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



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: I need help with a code!
« Reply #18 on: October 30, 2011, 01:02:16 pm »
tap tap revenge???? really...1st question ...why???? its a calculator...if anything make a game not involving music or sound...2nd question.....do u realy feel comfortable wearing head fones plugged into ur calc??
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: I need help with a code!
« Reply #19 on: October 30, 2011, 01:06:34 pm »
Why not make a game with sound? It's entirely possible. And why not put headphones into a calculator?

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: I need help with a code!
« Reply #20 on: October 30, 2011, 01:07:33 pm »
tap tap revenge???? really...1st question ...why???? its a calculator...if anything make a game not involving music or sound...2nd question.....do u realy feel comfortable wearing head fones plugged into ur calc??
Well, it is his game. And yes, if the game needs it, I would use headphones.
By the way, if you haven't already, you should introduce yourself.
« Last Edit: October 30, 2011, 01:07:48 pm by mrmprog »

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: I need help with a code!
« Reply #21 on: October 30, 2011, 01:08:26 pm »
tap tap revenge???? really...1st question ...why???? its a calculator...if anything make a game not involving music or sound...2nd question.....do u realy feel comfortable wearing head fones plugged into ur calc??
I didn't give you a -1 because you already had one four, but:
First of all, it is against the rules to discourage people from doing their projects (I had a -1 for that in the past).
Secondly, you are a bit hard to read.
Thirdly, "calculators were never meant for just maths" :P
Else, what do you think the CX and the Prizm have colors for ?

EDIT: I was severely ninja'd O.O
« Last Edit: October 30, 2011, 01:09:00 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
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: I need help with a code!
« Reply #22 on: October 30, 2011, 01:11:45 pm »
[rant]
It is usually advised not to post such negative remarks. We are hobbyists here so we code for enjoyment and often for others and it is all for free. We like to experiment with the limits of the calculator and we have pushed the limitations of these much outdated devices because of doing things like this. Could you believe that a calculator could be used to chat via the internet? Or how about having a wifi connection? Or listen to the radio?

Do you understand the consequences of this? What do you think happens when we move on to more up to date devices? We have the experience and drive to get all that we can out of our devices. We don't waste resources here. Can you imagine just how wasteful other programmers are? Have you ever opened up a piece of software and been able to cringe because most people code the easy way, not the most effective way?

So please, before you want to treat somebody like crap, think of the consequences of what they are doing and avoid looking at things on the superficial level.

[/rant]

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: I need help with a code!
« Reply #23 on: October 30, 2011, 01:25:27 pm »
my apologizes
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: I need help with a code!
« Reply #24 on: November 02, 2011, 02:27:57 am »
http://ourl.ca/8355/153971
This would help for a Tap Tap game ;)

Btw, Xeda, I bookmarked your post :P
« Last Edit: November 02, 2011, 02:30:35 am 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 p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: I need help with a code!
« Reply #25 on: November 02, 2011, 04:26:53 am »
ephan, my problem is: I have no idea how to do tthat. I've tried very often in very much difficult ways, but never made it! (in all the cases!)
Querty.55, Hä??? How to do that???? I've never used "interrupts" before (or I have and don't know it)!



The program is reacting on the keys [7], [8] and [9]
But I will change:

It should read a program like that:
Code: [Select]
:000
:000
:100
:200
:200
:011
:022
the three numbers should be like the three keys - but 0 is like not pressing the key, 1 is like pressing it once, 2 is like holding the key!



And I also need a second program, which should react on the keys, but writes it into such a code!



sorry, I know I'm making veeeery much mistakes and I'm sometimes really too stupid to code!  :-\

Spoiler For surcecode:
:.TAPTAP01
:Full
:
:
:
:Line(14,13,82,13)r
:Line(14,51,82,51)r
:
:
:Repeat getKey(15)
:DispGraphr
:getKey(36)→A
:getKey(28)→B
:getKey(20)→C
:
:
:
:
:Lbl 1
:If C
:32→E
:End
:If B
:18→E
:End
:If A
:4→E
:End
:
:
:If A+B+C≠0
:If pxl-Test(18,50-E) or pxl-Test(17,50-E)r or pxl-Test(16,50-E)r
:For(X,13,15
:Line(X,48-E,X,52-E,1
:Line(X,48-E,X,52-E)r
:End
:End
:!If pxl-Test(18,50-E
:!If pxl-Test(17,50-E)r
:Line(16,47-E,16,53-E
:Line(17,46-E,17,54-E
:Line(18,46-E,18,54-E
:Line(19,46-E,19,54-E
:Line(20,47-E,20,53-E
:End
:End
:
:
:DispGraphr
:
:
:If A
:0→A
:Goto 1
:End
:
:If B
:0→B
:Goto 1
:End
:
:If C
:0→C
:Goto 1
:End
:
:End
:
:
:
:
:For(X,1,9
:Line(X,1,X,63
:End
:
:
:For(X,1,63
:Pxl-Off(10,X
:End
:
:DispGraphr
:DispGraph
:Horizontal +r
:Horizontal +
:Pxl-Off(83,13)r
:Pxl-Off(83,51)r
:Pxl-On(14,13)r
:Pxl-On(14,51)r
:
:End


EDIT:
Sorry, was the ASM-program surce-code is coming...



I already changed a lot of things in it.

Spoiler For PROGRAM:TAP00003:
.TAPTAP003
ClrDraw
ClrDrawr
Full

"prgmTapTI001"->Str1
UnArchieve Str1
If GetCalc(Str1)=0
"RAMprgmTapTapTIprgmFil"->Str2
"esprgmExternalFiles"->Str3
"prgmTrackPack1prgmNonE"->Str4
"execprgmprgmTapTI001"->Str5
"ERR: MissingFile"->Str6
"Press ENTER"->Str7
Output(0,0,Str2
Output(0,1,Str3
Output(0,2,Str4
Output(0,3,Str5
Fix 3
Output(0,4,Str6
Fix 2
Output(2,6,Str7
getKeyr
Goto ZZ
End

GetCalc(Str1)->H

length(H)->Z
getkeyr

28->T
Repeat getKey(15)

If T=Z
Goto ZZ
End

T+1->T
DispGraphr

.001
If {H+T}={H+1} or ({H+T}={H+4}) or ({H+T}={H+7}) or ({H+T}={H+10}) or ({H+T}={H+13}) or ({H+T}={H+16}) or ({H+T}={H+19}) or ({H+T}={H+22}) or ({H+T}={H+25})
Line(16,15,16,21)r
Line(17,14,17,22)r
Line(18,14,18,22)r
Line(19,14,19,22)r
Line(20,15,20,21)r
End

.002
If {H+T}={H+2} or ({H+T}={H+5}) or ({H+T}={H+8}) or ({H+T}={H+11}) or ({H+T}={H+14}) or ({H+T}={H+17}) or ({H+T}={H+20}) or ({H+T}={H+23}) or ({H+T}={H+26})
Line(13,26,13,20)r
End

.010
If {H+T}={H+3} or ({H+T}={H+4}) or ({H+T}={H+5}) or ({H+T}={H+12}) or ({H+T}={H+13}) or ({H+T}={H+14}) or ({H+T}={H+21}) or ({H+T}={H+22}) or ({H+T}={H+23})
Line(16,29,16,35)r
Line(17,28,17,34)r
Line(18,28,18,34)r
Line(19,28,19,34)r
Line(20,29,20,35)r
End

.020
If {H+T}={H+6} or ({H+T}={H+7}) or ({H+T}={H+8}) or ({H+T}={H+15}) or ({H+T}={H+16}) or ({H+T}={H+17}) or ({H+T}={H+24}) or ({H+T}={H+25}) or ({H+T}={H+26})
Line(13,30,13,34)r
End

.100
If {H+T}={H+9} or ({H+T}={H+10}) or ({H+T}={H+11}) or ({H+T}={H+12}) or ({H+T}={H+13}) or ({H+T}={H+14}) or ({H+T}={H+15}) or ({H+T}={H+16}) or ({H+T}={H+17})
Line(16,43,16,49)r
Line(17,42,17,50)r
Line(18,42,18,50)r
Line(19,42,19,50)r
Line(20,43,20,49)r
End

.200
If {H+T}={H+18} or ({H+T}={H+19}) or ({H+T}={H+20}) or ({H+T}={H+21}) or ({H+T}={H+22}) or ({H+T}={H+23}) or ({H+T}={H+24}) or ({H+T}={H+25}) or ({H+T}={H+26})
Line(13,44,13,48)r
End

DispGraphr
DispGraph
Horizontal+r
Horizontal+
End
Lbl ZZ
ClrDraw
ClrDrawr
There may be a few mistakes in that code - I had to type it on the computer because I'm having problems with the linking softwares!
And I also know that there are a few mistakes in the code!
I'll soon post how the TapTI001-program is looking like - I can't find the code for it now
*insert supercool signature*