Author Topic: Fall  (Read 30525 times)

0 Members and 2 Guests are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Fall
« on: December 07, 2009, 07:26:54 pm »
Well I have been able to code a game in class slowely...it's pure basic. It's a fall down clone, kind of.
After thirty loops of the movement code the screen shifts down, and the next time it shifts is 29 loops, then 28 and so on...you are a * and the solid tiles are O. You can jump move to the right or left, and you will fall if nothing is underneath you, unless you are at the bottom of the screen. I'll post the code in a bit, and hopefully someone can make a screenshot for me :)

Edit: ok here is the code, just over 400 bytes
» is the sto symbol
Ø is Theta
=/= is the does not equal sign
Code: [Select]
ClrHome
Disp "BUILD?
Input "Y=1:N=0 ",A
If Not(A
Then
Input "ROWS: ",L
"O»Str1
ClrHome
For(A,1,16L)
Output(1,1,int(((A+1)/(16L))100
Str1+Sub(" O ",randInt(1,3),1»Str1
End
End
1ȯ
4»X
4»Y
30»R
Int(Length(Str1)/16)-6»L
Repeat Ø=L or Not(Y
Output(1,1,Sub(Str1,16Ø-15,128
Delvar M
Repeat M=R or K=34
getKey»K
Output(Y,X," 
If Ø=/=L
Then
16(Ø+Y-1)-16+X»Z
J-(J=/=0)+2(K=25 and not(J) and "O"=sub(Str1,Z+16,1»J
Output(1,15,R-M
Y+(not(J) and Y=/=8 and "O"=/=sub(Str1,Z+16,1))-(J and Y=/=1 and "O"=/=sub(Str1,Z-16,1»Y
End
16(Ø+(K=26 and "O"=/=sub(Str1,Z+1,1) and X=/=16)-(K=24 and X=/=1 and "O"=/=sub(Str1,Z-1,1»X
Output(Y,X,"*
Rand10
M+1»M
End
Y-1»Y
R-(R=/=1»R
Ø-(Ø=/=L»Ø
End
ClrHome
If not(Y
Then
output(1,3,"YOU LOSE
Else
Output(1,3,"YOU WIN
End
« Last Edit: December 07, 2009, 11:59:31 pm by Eeems »
/e

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Fall
« Reply #1 on: December 07, 2009, 10:06:20 pm »
hmm i gladely make a screenie later if i get the time so ill post it then :) 

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #2 on: December 07, 2009, 10:10:18 pm »
Ok thanks!
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Fall
« Reply #3 on: December 07, 2009, 10:13:27 pm »
Yay falldown!  Can't wait for screenie :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #4 on: December 07, 2009, 10:17:01 pm »
Lol, well it runs pretty quick, with no glitches, there is one optimization I noticed for speed and size, but it's small enough and I had to slow it down some with a rand10 statement so you could see your character...
I haven't actually beaten it on 30 rows yet.
Hey builderboy, do you want to try your luck at making a better level building routine? Or just make some cool levels?
/e

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: Fall
« Reply #5 on: December 07, 2009, 10:19:44 pm »
Looks cool! I'll have to try this tomorrow...
:)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fall
« Reply #6 on: December 08, 2009, 01:52:30 am »
Nice ^^

Does it means you got your calc back or did you just use a school calc?

I'll give it a try later

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #7 on: December 08, 2009, 10:06:31 am »
I used the 83+ that I'm aloud to use at school but I have to give it back after school, so no, don't have my calc back yet....
/e

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Fall
« Reply #8 on: December 08, 2009, 10:56:01 am »
I tried to program this, got confused, saw I copied a piece 2 times, got mad and stopped q:
To me it was rather fail then fall xD Didn't have any time afterwards (i hate exams)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #9 on: December 08, 2009, 06:02:02 pm »
What was the problem exactly? It works fine for me, and I have updated code that works a bit more smoothly, but I have to type it up.
/e

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Fall
« Reply #10 on: December 09, 2009, 08:12:10 am »
I wasn't really focused and it appeared i scrammbled parts of it and even coded 3 lines 2 times xD

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #11 on: December 09, 2009, 10:12:55 am »
Ah ok lol
hopefully I'll have the time to type up the new code today
/e

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: Fall
« Reply #12 on: December 09, 2009, 04:04:54 pm »
How do you get it off your school calc to type it at home?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Fall
« Reply #13 on: December 09, 2009, 06:04:37 pm »
I wrote it down
/e

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Fall
« Reply #14 on: December 10, 2009, 01:52:55 pm »
Better not let rust your TI-BASIC skillz.
Hobbing in calculator projects.