Tremulous Forum

Community => Off Topic => Topic started by: Archangel on October 20, 2008, 11:49:27 am

Title: Kitten Cannon... console?
Post by: Archangel on October 20, 2008, 11:49:27 am
So, being unable to sleep at 2 AM and having to get up three hours later led to me writing a kitten cannon simulator, in perl. Kitten Cannon is a flash game where you shoot out a kitten at a random speed/trajectory, and watch it bounce across the playfield and hit various objects to increase it's speed/trajectory/height or slow it down. So, the version I wrote only works in the console, but it's pretty neat. Thinking about throwing an SDL wrapper onto it for some cheesy graphics.

source: http://ns1.solar-operator.us/~intellekt/kittencannon.txt (http://ns1.solar-operator.us/~intellekt/kittencannon.txt)

Some of my best runs have gone over 12k units.



There's still a few logic errors, and I couldn't figure out how to make the speed relative to the initial random velocity/trajectory (anybody want to fill me in on that?!) , but it still works quite well.

Comment and help me fix bugs! :]

edit;
I added some more objects and made a few balance changes. It's harder to get further now :D

Edit #2: For those of you without perl, or too scared to download my code, here's a web version: http://ns1.solar-operator.us/~intellekt/kittencannon.cgi (http://ns1.solar-operator.us/~intellekt/kittencannon.cgi)

Edit #3! I have added nice colours and bold to the web cannon... and an IRC relay, so you can see other's scores, as well as records! Visit at irc.partyvan.fm #kittencannon !
Title: Re: Kitten Cannon... console?
Post by: Bissig on October 20, 2008, 03:09:24 pm
1. Good work
2. "Text only" RPGs I understand, but "text only" fun games?
Title: Re: Kitten Cannon... console?
Post by: Syntac on October 20, 2008, 08:07:36 pm
Epic. Needs graphics, though...
Title: Re: Kitten Cannon... console?
Post by: your face on October 20, 2008, 08:25:05 pm
Flight of the Hamsters (http://www.boreme.com/boreme/funny-2007/flight-hamsters-p1.php) ftw.  Kitten cannon always seemed too disturbing.
Title: Re: Kitten Cannon... console?
Post by: Snake on October 20, 2008, 08:45:44 pm
Random spam:

Code: [Select]
kitten trajectory: 38 degrees, speed: 2 units/sec, initial increase/peak: 19
OK! Firing!
Bounce! kitten hit the ground at 80 units. peak height:04


kitten hit a large spring at 80 units. Oof!
Bounce! kitten hit the ground at 400 units. peak height:02


kitten hit a large spring at 400 units. Oof!
Bounce! kitten hit the ground at 712 units. peak height:01


kitten hit a medium spring at 712 units. Oof!
Bounce! kitten hit the ground at 920 units. peak height:01


kitten hit a stick of dynamite at 920 units. Oof!
Bounce! kitten hit the ground at 1328 units. peak height:01


kitten hit a medium spring at 1328 units. Oof!
Bounce! kitten hit the ground at 1536 units. peak height:01
Bounce! kitten hit the ground at 1544 units. peak height:00


kitten hit a large spring at 1544 units. Oof!
Bounce! kitten hit the ground at 1848 units. peak height:00


kitten hit a large spring at 1848 units. Oof!
Bounce! kitten hit the ground at 2152 units. peak height:00


kitten hit a medium spring at 2152 units. Oof!
Bounce! kitten hit the ground at 2356 units. peak height:012


kitten hit a large spring at 2356 units. Oof!
Bounce! kitten hit the ground at 2708 units. peak height:06


kitten hit a tarpit at 2708 units. Oof!



Your kitten hit:

    * a large spring at 80 units
    * a large spring at 400 units
    * a medium spring at 712 units
    * a stick of dynamite at 920 units
    * a medium spring at 1328 units
    * a large spring at 1544 units
    * a large spring at 1848 units
    * a medium spring at 2152 units
    * a large spring at 2356 units
    * a tarpit at 2708 units


Kitten landed in a tarpit.
Kitten landed. Distance travelled: 2708 units
Title: Re: Kitten Cannon... console?
Post by: Archangel on October 20, 2008, 11:41:43 pm
I plan to add more features. :] Keep checking !
Title: Re: Kitten Cannon... console?
Post by: Hendrich on October 21, 2008, 12:08:45 am
Random spam:

Code: [Select]
Error- Kitten has encountered a glitch whereas there is no pictures to display the landings. Have fun with the text, hope you like text games that makes you imagine the events.

This game sounds loads of fun.
Title: Re: Kitten Cannon... console?
Post by: Syntac on October 21, 2008, 12:19:46 am
Archangel did say he might make it graphics-enabled.
Title: Re: Kitten Cannon... console?
Post by: Archangel on October 21, 2008, 12:27:57 am
I plan to add more features. :] Keep checking !
Title: Re: Kitten Cannon... console?
Post by: Hendrich on October 21, 2008, 12:33:53 am
Quote
Archangel did say he might make it graphics-enabled.

Just saying that the text version of the game is totally fun. ^^

If there will be a graphic version of the games, make the kitties look cute, UNTIL THEY SPLAT BLOOD ON THE GROUND!
Title: Re: Kitten Cannon... console?
Post by: Syntac on October 21, 2008, 12:52:49 am
You are a sick, sick person.
Title: Re: Kitten Cannon... console?
Post by: Archangel on October 21, 2008, 01:22:11 am
Well, the graphics would just be little GIF images probably.
Title: Re: Kitten Cannon... console?
Post by: Taiyo.uk on October 21, 2008, 01:45:32 am
oh hai! dis mod, u maeks it liek icanhascheezburger.com meets freddy kruger plz kthxbai!
Title: Re: Kitten Cannon... console?
Post by: Archangel on October 21, 2008, 01:50:34 am
If you want to make the little icons, sure.
Title: Re: Kitten Cannon... console?
Post by: + OPTIMUS + on October 21, 2008, 04:01:41 pm
put that "fire again" button also on the top, so we don't have to hunt for it after uninteresting flights. i want rapid catfeast.
Title: Re: Kitten Cannon... console?
Post by: Kaleo on October 21, 2008, 10:46:32 pm
i want rapid catfeast.

o.O
Title: Re: Kitten Cannon... console?
Post by: Paradox on October 21, 2008, 10:49:26 pm
I made a cannon game for a Ti-89 Titanium the other day.

Used a 1px radius square as the ball.

Did the physics calculations and everything, and you could set gravity, atmospheres, etc. Even did SI/American unit translations.
Title: Re: Kitten Cannon... console?
Post by: Seffylight on October 21, 2008, 10:58:49 pm
put that "fire again" button also on the top, so we don't have to hunt for it after uninteresting flights. i want rapid catfeast.
PROTIP: press f5
Title: Re: Kitten Cannon... console?
Post by: Yarou on October 22, 2008, 12:43:19 am
 :police:
Title: Re: Dream-Quest Cannon... Kadath?
Post by: player1 on October 22, 2008, 05:42:15 pm
know (http://images.elfwood.com/fanq/s/u/suzan2/oekaki_kadath.jpg) hertz (http://oz.deichman.net/uploaded_images/dream-kadath-730284.gif) katzenz (http://g-ecx.images-amazon.com/images/G/01/ciu/18/4c/2c74c6da8da0f21b7cee1110._AA240_.L.jpg)

"Your Ultharcat hit a Shoggoth halfway to Yuggoth."

(http://www.unfilmable.com/shop10.gif)

Title: Re: Kitten Cannon... console?
Post by: + OPTIMUS + on October 22, 2008, 06:09:16 pm
:-) +1p1

and uh... "console" means to me that it should work in tremulous' console :-O