Author Topic: Jump  (Read 17558 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: mrmprog's game
« Reply #30 on: July 29, 2011, 10:55:35 am »
I don't know, clicking "Highscore" leads to the game :D
but after quitting the game, I looked for the appvar and saw nothing :(
« Last Edit: July 29, 2011, 10:55:41 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 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: mrmprog's game
« Reply #31 on: July 29, 2011, 10:56:32 am »
GetCalc(Str3) is valid code, so long as Str3 contains a valid external variable name, and it seems to in this program. I haven't actually tested the code though, I just peeked at it in SourceCoder.


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 p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: mrmprog's game
« Reply #32 on: July 29, 2011, 10:57:44 am »
You should make
Code: [Select]
:clearDraw
:clearDraw^r
before showing the score.
Then the flames wouldn't be black before showing the score

And you may show the score and the text around it in the second line, not in the first line.

try not to make the jump more like on my pic.
wait betwean jumping up and falling.
*insert supercool signature*

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #33 on: July 29, 2011, 11:02:31 am »
This is really strange. On my calc, when I check the highscore, everything works, even if the appvar doesn't exist. It should create the appvar after you play the first time.
« Last Edit: July 29, 2011, 11:03:03 am by mrmprog »

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: mrmprog's game
« Reply #34 on: July 29, 2011, 11:03:31 am »
Nice! I like the flame animation :w00t: ... I know I have seen a tutorial about how to do that somewhere, but I have forgotten by whom it was made  :banghead: Judging by the screenie it looks like it could turn out to be one of those simple and addictive games, so if it works out, kudos to you! :D

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #35 on: July 29, 2011, 11:05:51 am »
It was made by builderboy. When I release the full thing, with a readme, he will be mentioned for that. For now, he is listed in the first post, along with anyone else who helped me. Btw, It is nice to see you active again.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: mrmprog's game
« Reply #36 on: July 29, 2011, 11:06:08 am »
Nice! I like the flame animation :w00t: ... I know I have seen a tutorial about how to do that somewhere, but I have forgotten by whom it was made  :banghead: Judging by the screenie it looks like it could turn out to be one of those simple and addictive games, so if it works out, kudos to you! :D

Builderboy made it ;)

mrmprog, nice game, I'd like to see more of it though, in the screenshot you only show you losing :S It looks addictive as Zeda said.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #37 on: July 29, 2011, 11:08:13 am »
Yeah, I am always bad at my own games. Currently there is no way to win THE GAME (sound familiar?), you can only lose and get a score. If you have any ideas on how to win, let me know.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: mrmprog's game
« Reply #38 on: July 29, 2011, 11:17:11 am »
Spoiler For code:
Code: [Select]
:.JUMP
:DiagnosticOff
:Full
:[3C42A5A581A599FF3C66A581A5A55A3C3C42A58199A5423C]→Pic1
:"YOU DIED        YOUR SCORE:"→Str1
:"NEW HIGHSCORE!"→Str2
:"vJMPSCR"→Str3
:Lbl 1
:ClrHomeClrDraw
:Disp "      JUMP      ",i,i,"  PLAY",i,"  HIGHSCORE",i,"  QUIT"
:3→A
:Pause 900
:Repeat getKey(9) or getKey(15)
:A+(A<3)→A
:A-(A>5)→A
:Output(1,A,">"
:Pause 600
:Output(1,A," "
:A+getKey(1)→A
:A-getKey(4)→A
:End
:
:If getKey(15):Goto E
:End
:If A=4:Goto G:End
:If A=5:Goto H:End
:If A=6:Goto E:End
:
:
:Lbl G
:ClrDraw
:40→A
:1→B
:0→X
:1→C
:
:Line(0,63,95,63)
:1→C
:0→D
:0→E
:0→H
:Line(0,9,95,9
:Repeat getKey(15)
:If H^7=0
:rand^(70-0+1)+0→F
:F+(rand^(25-8+1)+8)→G
:Line(F,1,G,1)
:
:.Line(0,1,30,1
:End
:StorePic
:Pt-On(A,B,Pic1+E)
:DispGraph
:RecallPic
:
:A-getKey(2)→A
:A+getKey(3)→A
:If A>87
:1→A
:End
:If A<<1
:87→A
:End
:pxl-Test(A+4,B+8)→C
:B+((C=0))→B
:B-D→B
:If C≠0:(6*getKey(54))→D
:0→E
:Else
:8→E
:End
:If D≥1
:D-1→D
:End
:If B≥≥65
:Goto D
:End
:H+1→H
:If H^2=0:Vertical +
:B+1→B
:End
:Pause 35
:End
:Goto 1
:
:Lbl D
:ClrDraw
:[FEFDFBF7EFDFBD7F]→Str4
:Line(0,63,95,63
:10→A
:Repeat A>50 or getKey(15)
:
:A+1→A
:Pt-On(40,A,Pic1+16
:For(F,L6+12,L6+767
:{F} and {rand^8+Str4}→{F-12}
:End
:DispGraph
:End
:Pause 600
:ClrDrawClrHome
:Disp Str1
:Disp H►Dec
:Disp i
:!If GetCalc(Str3)→A
:GetCalc(Str3,2)→A
:Return!If A
:0→{A}r
:End
:If H>{A}r
:H→{A}r
:Disp "NEW HIGHSCORE!"
:End
:Repeat getKey
:End
:If getKey(15)
:Goto 1
:End
:Goto G
:
:Lbl H
:ClrHome
:GetCalc(Str3)→A
:!If A
:Disp "NO SCORE"
:Pause 3000
:Goto E
:End
:{A}r→B
:Disp "HIGSCORE:",B►Dec
:Repeat getKey
:End
:Goto 1
:
:Lbl E
:ClrDrawClrHome
*insert supercool signature*

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: mrmprog's game
« Reply #39 on: July 29, 2011, 11:17:16 am »
I just checked in Wabbit, and the appvar is correctly made.

Your code was actually very close to working properly.
I fixed a few things, the main ones being the fact that your If A=X statements were off by one, and the fact that one of your labels started with a number. Fixing the label issue allows the game to compile with Axe 1.0.x, as well.


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 mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #40 on: July 29, 2011, 11:17:59 am »
Thanks, I will look at it tommorow.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: mrmprog's game
« Reply #41 on: July 29, 2011, 11:18:52 am »
Spoiler For Spoiler:
Code: [Select]
:.JUMP
:DiagnosticOff
:Full
:[3C42A5A581A599FF3C66A581A5A55A3C3C42A58199A5423C]→Pic1
:"YOU DIED        YOUR SCORE:"→Str1
:"NEW HIGHSCORE!"→Str2
:"vJMPSCR"→Str3
:Lbl ZZ
:ClrHomeClrDraw
:Disp "      JUMP      ",i,i,"  PLAY",i,"  HIGHSCORE",i,"  QUIT"
:3→A
:Pause 900
:Repeat getKey(54) or getKey(15)
:A+(A<3)→A
:A-(A>5)→A
:Output(1,A,">"
:Pause 600
:Output(1,A," "
:A+getKey(1)→A
:A-getKey(4)→A
:End
:
:If getKey(15):Goto E
:End
:If A=3:Goto G:End
:If A=4:Goto H:End
:If A=5:Goto E:End
:
:
:Lbl G
:ClrDraw
:40→A
:1→B
:0→X
:1→C
:
:Line(0,63,95,63)
:1→C
:0→D
:0→E
:0→H
:Line(0,9,95,9
:Repeat getKey(15)
:If H^7=0
:rand^(70-0+1)+0→F
:F+(rand^(25-8+1)+8)→G
:Line(F,1,G,1)
:
:.Line(0,1,30,1
:End
:StorePic
:Pt-On(A,B,Pic1+E)
:DispGraph
:RecallPic
:
:A-getKey(2)→A
:A+getKey(3)→A
:If A>87
:1→A
:End
:If A<<1
:87→A
:End
:pxl-Test(A+4,B+8)→C
:B+((C=0))→B
:B-D→B
:If C≠0:(6*getKey(54))→D
:0→E
:Else
:8→E
:End
:If D≥1
:D-1→D
:End
:If B≥≥65
:Goto D
:End
:H+1→H
:If H^2=0:Vertical +
:B+1→B
:End
:Pause 35
:End
:Goto ZZ
:
:Lbl D
:ClrDraw
:[FEFDFBF7EFDFBD7F]→Str4
:Line(0,63,95,63
:10→A
:Repeat A>50 or getKey(15)
:
:A+1→A
:Pt-On(40,A,Pic1+16
:For(F,L6+12,L6+767
:{F} and {rand^8+Str4}→{F-12}
:End
:DispGraph
:End
:Pause 600
:ClrDrawClrHome
:Disp Str1
:Disp H►Dec
:Disp i
:!If GetCalc(Str3)→A
:GetCalc(Str3,2)→A
:Return!If A
:0→{A}r
:End
:If H>{A}r
:H→{A}r
:Disp "NEW HIGHSCORE!"
:End
:Pause 8000
:Repeat getKey
:End
:If getKey(15)
:Goto ZZ
:End
:Goto G
:
:Lbl H
:ClrHome
:GetCalc(Str3)→A
:!If A
:Disp "NO SCORE"
:Pause 3000
:Goto E
:End
:{A}r→B
:Disp "HIGHSCORE:",B►Dec
:Pause 8000
:Repeat getKey
:End
:Goto ZZ
:
:Lbl E
:ClrDrawClrHome
*insert supercool signature*

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #42 on: July 29, 2011, 11:25:53 am »
This is weird. When I make those changes, it shifts the menu down so when I chose "Play", I get the highscores. Does anyone know why?

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: mrmprog's game
« Reply #43 on: July 29, 2011, 11:27:13 am »
what???

sounds interresting!
Maybe the posibillitys in the menue have changed place, but not the text!
*insert supercool signature*

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: mrmprog's game
« Reply #44 on: July 29, 2011, 11:31:13 am »
This is so strange. Is anyone else having this problem with FinaleTI's code? Btw, @FinaleTI your code fixed many things, thank you.