Author Topic: Breakout clone  (Read 23109 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Breakout clone
« Reply #75 on: November 12, 2010, 11:13:14 am »
Oh and one more, am I asking too many questions? ???
Nah, it's cool.  The more questions you ask, the more everyone learns. ;D
True, I didn't make the connection about the difference of a number for !If .

Also, nice to hear about the looping ;D
Has the paddle length and number of balls been taken care of as well?
Vy'o'us pleorsdti thl'e gjaemue

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #76 on: November 12, 2010, 11:30:24 am »
number of balls, yes.
Paddle length, not yet.

Block type 10 is having major problems...  :(
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Breakout clone
« Reply #77 on: November 12, 2010, 11:37:47 am »
Quote
Block type 10 is having major problems...  :(
What will that be? The C4/chain reaction block?
« Last Edit: November 12, 2010, 11:38:14 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #78 on: November 12, 2010, 11:45:26 am »
yup. it just crashes my calc when it tries to return...
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Breakout clone
« Reply #79 on: November 12, 2010, 01:51:34 pm »
I really need some answers.

Is !If X-56 also an optimisation?

Yes, it is. If you want to quickly check if something's an optimization, just compare the before-and-after sizes of the exec :)

What if I have compound If statements? I know splitting them up saves speed, but what about space?

Same amount of space in many circumstances. That's kinda how they work anyway.

Lastly, should I be using DelVar in my save routine? I do have to overwrite the appvar every time I save...

Nope, creating a var overwrites it anyway.

We observe the mentality of pushing you in the right direction and then letting you gain some experience yourself ;) Of course if you are totally lost or if we can give a few more pointers, we'll be happy :)
No thanks. My program uses too many already :P

XD




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Breakout clone
« Reply #80 on: November 12, 2010, 02:11:13 pm »
I spent about half an hour in endless mode.
A few limits might help to keep the game challenging and interesting.

1) Paddle width--after a while it was wider than the screen, so you could just leave it and/or watch the score increase ;D
2) # of balls limit--there were about 20 by the time I got tired of it
3) some way to keep track of the score if it goes over 65535.  It looped six or seven times :P
Code: [Select]
Disp <Score>,i,"65535 times ",<Var>  With <var> incrementing by 1 each 65535 or something. 
I kind of replicated it, but didn't get nearly as far this time :P
video (it was too big)
Vy'o'us pleorsdti thl'e gjaemue

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #81 on: November 12, 2010, 04:51:14 pm »
yup. it just crashes my calc when it tries to return...
I think I have an idea what the problem is.  I noticed that when the ball just barely clips the corner of the block, it doesn't cause problems. So I think it may be having trouble deleting the C4 block.
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

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: Breakout clone
« Reply #82 on: November 12, 2010, 07:33:58 pm »
Ok so when score reaches 10000 it increases the second variable? Sounds interesting. I wonder how do you display them? I think I tried such thing before and failed. File size seems pretty nice so far. Keep up the good work and I hope you can solve the issues you are having.
Well thats why it increases the second variable when it hits 10000 instead of 65535 or 60000.
Code: [Select]
:Output(4,0,S>Dec)
:If Q
:Output(0,0,Q>Dec)
:End
That's a great idea!  I've been wondering how to do this. :D  Thanks. ;D
« Last Edit: November 12, 2010, 07:34:08 pm by ztrumpet »

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #83 on: November 12, 2010, 10:34:30 pm »
Ok so when score reaches 10000 it increases the second variable? Sounds interesting. I wonder how do you display them? I think I tried such thing before and failed. File size seems pretty nice so far. Keep up the good work and I hope you can solve the issues you are having.
Well thats why it increases the second variable when it hits 10000 instead of 65535 or 60000.
Code: [Select]
:Output(4,0,S>Dec)
:If Q
:Output(0,0,Q>Dec)
:End
That's a great idea!  I've been wondering how to do this. :D  Thanks. ;D
Lol I found a minor problem with that code. take 10010 for example. It'll output
1  10
so a minor modification:
Code: [Select]
:Output(4,0,Q=/=0*10000+S>Dec)
:If Q
:Output(0,0,Q>Dec)
:End
Adding 10000 forces it to display all the zeros :D

Feel free to use it wherever you want ;)
« Last Edit: November 12, 2010, 10:37:13 pm by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #84 on: November 12, 2010, 11:58:21 pm »
:) ;) :D ;D :) ;) :D ;D ;D :D ;) :) ;D :D ;) :)
:o
Spoiler For translation:
Well, after an epiphany, a blue screen of death, and a good half-hour's work, I have C4 mostly working!!! :) :) :) :) :)

Two things left:
  It often misses a couple blocks.
  When the only block on-screen is a C4 block, hitting it acts just as though I had thrown in a 'Pause 400'...

And yes, blue screen of death on a calculator :P
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Breakout clone
« Reply #85 on: November 13, 2010, 01:03:23 am »
You got the really blue screen?  What effect were you trying?
Vy'o'us pleorsdti thl'e gjaemue

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: Breakout clone
« Reply #86 on: November 13, 2010, 03:04:12 am »
Glad to hear it's working. :)

@Darl181 I think he means test mode blue screen. The one that can damage the screen if left like that for a minute.

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #87 on: November 13, 2010, 08:33:05 am »
Glad to hear it's working. :)

@Darl181 I think he means test mode blue screen. The one that can damage the screen if left like that for a minute.
Well actually I'm not sure. The game exited to the os.  I pushed enter, and the whole screen became an almost-blue black.  I've never actually seen the test mode, so that might've been just contrast 64, but I was gonna pull the battery either way.

Well the problem was mostly that my inner and outer loop variables were the same.  Whenever a block was destroyed, I decremented D. That's not really the problem, though, because that'll just repeat that block, and I have protections against that. The problem is immediately AFTER my inner loop.  I set D to zero!  That tells it to repeat EVERYTHING!!!  And that most likely includes the C4 block that just got destroyed...
Endless loop. :P
« Last Edit: November 13, 2010, 08:44:18 am by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Breakout clone
« Reply #88 on: November 13, 2010, 08:37:16 am »
Thats the only thing you can do.
contrast 64 doesnt exist, but it is contr63+ every pixel is on

BTW, MSD8X can cause it, too. I had it 2 weeks ago, was shocked, and pulled a battery after 2,5 seconds of being confused :D :D :D :D :D :D :D :D :D :D :D ;D ;D ;D ;D ;D ;D

« Last Edit: November 13, 2010, 08:39:56 am by aeTIos »
I'm not a nerd but I pretend:

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Breakout clone
« Reply #89 on: November 13, 2010, 08:50:32 am »
63, 64, same thing :P
It was a solid screen. The blue might've been an illusion...
Either way, the problem there was I forgot to remove a set of curly braces ({}) (: :)

EDIT: what is MSD8x?
« Last Edit: November 13, 2010, 08:53:36 am by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P