[TI ASM]Need ever shrinking tunnel

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

[TI ASM]Need ever shrinking tunnel

Post by threefingeredguy »

I sat down at 11 o'clock to make Copter (horizontal fast tunnel with obstacles and you hold 2nd to ascend and hold nothing to descend). And one hour later, it was working fine (I have a strange obstacle bug that I can work out). However, I am not satisfied with my shrinking-tunnel code. What's a good algorithm (no code) for this? I got good results from giving it a 1/3 chance to grow and a 2/3 chance to shrink, but it shrank to quickly. I upped it to 127/255 chance to grow, and I got some very strange bugs. So I ask you people, what's a good one?
Image
User avatar
crzyrbl
Calc Wizard
Posts: 518
Joined: Wed 06 Jul, 2005 4:56 pm
Location: 3rd rock....

Post by crzyrbl »

keep the size the same, but move the actual cave up and down. make the size between the top and bottom get slightly smaller every couple of seconds.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

I use BrandonW's code with some modifications. Got this:
Image
Image
Liazon
Calc Guru
Posts: 962
Joined: Thu 27 Oct, 2005 8:28 pm

Post by Liazon »

O_O wow

I tried the game, btw, doesn't it use blocks in the middle too? Being bad at that kind of game, I didn't see how much it narrows.
Image Image Image
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

hmm, could you make the ball a little less reactive? It seems to jerk up and down a little too much and too fast, IMHO. Nice job though, it looks good, other than that.
In Memory of the Maxcoderz Trophy Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

That screenshot doesn't show how the ball really works. Don't worry. Yeah, there will be blocks. The block code is broken. And it is a helicopter now.
Image
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

It looks good to me. Of course, you need to have a limit on just how small it can get, otherwise the tunnel might just close. Nice work.
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

yeah, a limit is important. On the original falldown, the lines would get too close together and you could not keep going. Later versions fixed this.

So, any more screenies? maybe with the helicopter?
In Memory of the Maxcoderz Trophy Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

Maxes out 24 on both sides so 16 pixels of space to get through. The copter is only 4 pixels tall, so you're good.
Image
Post Reply