Got questions? Got answers? Go here for both.
Moderator: MaxCoderz Staff
threefingeredguy
Calc King
Posts: 2195 Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:
Post
by threefingeredguy » Wed 12 Jul, 2006 5:58 pm
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?
crzyrbl
Calc Wizard
Posts: 518 Joined: Wed 06 Jul, 2005 4:56 pm
Location: 3rd rock....
Post
by crzyrbl » Wed 12 Jul, 2006 9:05 pm
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.
threefingeredguy
Calc King
Posts: 2195 Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:
Post
by threefingeredguy » Wed 12 Jul, 2006 11:07 pm
I use BrandonW's code with some modifications. Got this:
Liazon
Calc Guru
Posts: 962 Joined: Thu 27 Oct, 2005 8:28 pm
Post
by Liazon » Thu 13 Jul, 2006 12:17 am
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.
CompWiz
Calc King
Posts: 1950 Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB
Post
by CompWiz » Thu 13 Jul, 2006 4:39 pm
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
threefingeredguy
Calc King
Posts: 2195 Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:
Post
by threefingeredguy » Thu 13 Jul, 2006 10:13 pm
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.
thegamefreak0134
Extreme Poster
Posts: 455 Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:
Post
by thegamefreak0134 » Thu 13 Jul, 2006 10:43 pm
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 » Fri 14 Jul, 2006 5:15 pm
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
threefingeredguy
Calc King
Posts: 2195 Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:
Post
by threefingeredguy » Fri 14 Jul, 2006 7:05 pm
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.