SRL Archive - Other Scripts

The_Scripts Snake


The_Scripts

2009-10-15 04:10:40

I had to go to my girlfriends today for supper.
Which would be alright except for two thing…
1) Her and her mom sit and talk for hours.
2) There is no internet :(

So, whilst I was internetless and bored out of my mind.
I decided to make a little snake game in SCAR.

Hopefully a few of you find some entertainment in my little creation.

The different color uhh… "apples" have different effects when eaten.
Yellow: Length + 1; Common; 25 points
Green: No Change; Pretty Common; 50 points
Blue: Length - 1; Uncommon; 75 points
Red: Length + 2; Rare; 100 points

Feel free to comment!

Edit: Added color effects.

marpis

2009-10-15 04:42:25

Omg dude, that's incredible! :)
Only bug I found was that whenever you eat an apple/dot/whateveritis, a black circle flashes on the top-left corner of the screen.

Now go write a RS script that's as kewl as your game!

rogeruk

2009-10-15 06:44:19

Very good.

925 score then got bored

The_Scripts

2009-10-15 11:58:44

From: marpis
Omg dude, that's incredible! :)
Only bug I found was that whenever you eat an apple/dot/whateveritis, a black circle flashes on the top-left corner of the screen.

Now go write a RS script that's as kewl as your game!


Everytime the length of the snake is increased the new "body part" get put at (0, 0) which is the top left of the screen. I might try to fix that, the only reason I have left it the way it is, is because it didnt bother me to much.

As far as RS scripts go, I am working on a fletcher currently. Need to add some fail safes. It has gotten me 96 fletching so far. It is a bummer that someone made a new one before me though…

Thanks for the comment!

From: rogeruk
Very good.

925 score then got bored


I'm glad you liked it. I added different color "apples" with different effects, to try and keep people interested. But I guess snake can only be fun for so long. lol

Edit: It was rogeruk that made a fletcher before I was completed mine. DARN YOU!!!

jakeyboy29

2009-10-15 13:09:13

should be added to scar ;)

The_Scripts

2009-10-15 14:52:53

From: jakeyboy29
should be added to scar ;)


Lmao, I wish. It would be pretty cool to see something I created bundled with SCAR.

Freddy1990

2009-10-15 16:20:07

From: The_Scripts
Lmao, I wish. It would be pretty cool to see something I created bundled with SCAR.


Hmm, fair enough, I'll add it, if you'd like any modifications go ahead, PM me when it's ready :)

Janilabo

2009-10-15 16:21:17

Very nice game, The_Scripts!

Just make it work without WizzyPlugin, and it will have a fairly GOOD chance for being added to SCAR's Scripts folder. :)

Freddy1990

2009-10-15 16:22:27

From: Janilabo
Just make it work without WizzyPlugin, and it will have a fairly GOOD chance for being added to SCAR's Scripts folder. :)


Yea, that is a requirement though…

MylesMadness

2009-10-15 17:56:42

If the dots didn't appear under the snake this would be perfect

Dan Cardin

2009-10-15 18:08:17

Sometimes it doesnt stop exactly when you hit the bottom. But it still resets after a couple of seconds so its all good.

The_Scripts

2009-10-15 18:24:20

Thanks everyone.

I shall work on the games flaws and dependencies.
Im guessing it will take about two weeks for me to be completely finished.
I have been pretty busy lately.

Thanks again for the comments everyone.

nielsie95

2009-10-16 02:20:35

Looking good, I like it :) Keep 'em coming!

Wizzup?

2009-10-16 06:13:05

From: Janilabo
Very nice game, The_Scripts!

Just make it work without WizzyPlugin, and it will have a fairly GOOD chance for being added to SCAR's Scripts folder. :)


More and more stuff from Wizzyplugin is being placed into SCAR though, so I guess that soon won't be necessary.

marpis

2009-10-16 06:34:35

From: The_Scripts
Everytime the length of the snake is increased the new "body part" get put at (0, 0) which is the top left of the screen.


You could maybe set AppleImage.Visible := False; then set it to (0, 0), then move it to the right place and AppleImage.Visible := True ? :)

YoHoJo

2009-10-16 06:48:46

This is freaking awesome. I think its the neatest non-rs SCAR script ive seen since the 3D square thingy. Really good job making this! :D

Janilabo

2009-10-16 13:50:01

From: Wizzup?
More and more stuff from Wizzyplugin is being placed into SCAR though, so I guess that soon won't be necessary.
Yeah, and by the way, I hope so! There's lots of really useful commands in your plugin (mostly point-based), that definitely deserve a place in the command list of SCAR. :p You have done a great job with it!

I am glad, that you didn't think I was again trying to attack you, or something, as I have nothing against your plugin.. :)

Bionicle

2009-10-16 14:37:39

played till 1k score then quit lol.
great job!

Nava2

2009-10-16 15:03:01

From: Janilabo
Yeah, and by the way, I hope so! There's lots of really useful commands in your plugin (mostly point-based), that definitely deserve a place in the command list of SCAR. :p You have done a great job with it!

I am glad, that you didn't think I was again trying to attack you, or something, as I have nothing against your plugin.. :)


Its not his plugin. ;) We all work on it.

This game is real nice though, impressive! :)

The_Scripts

2009-10-16 15:34:00

Holy smokes, the amount of comments is growing rapidly :)

I moved the WizzyPlugin from the plugins folder, and the game still ran.
I believe all of the TPA function I use are included with SCAR now.

I now need to rewrite the game to my own standards. The code is a bit slopy at the moment.

From: marpis
You could maybe set AppleImage.Visible := False; then set it to (0, 0), then move it to the right place and AppleImage.Visible := True ? :)


I am going to try to make it so it goes to the right spot immediately. I will use that as a backup if im unsuccessful.

Keep the comments coming!

Wizzup?

2009-10-16 16:10:06

From: Janilabo
Yeah, and by the way, I hope so! There's lots of really useful commands in your plugin (mostly point-based), that definitely deserve a place in the command list of SCAR. :p You have done a great job with it!

I am glad, that you didn't think I was again trying to attack you, or something, as I have nothing against your plugin.. :)


Although I probably did code the first few functions in it, I definitely didn't code all. (Niels and Ray coded heaps too.)
IMO all the credits should go to the SRL Community. :)

Perhaps a name change is in order, haha. ;)

Janilabo

2009-10-16 17:51:58

@The_Scripts: this script is worth all the great comments here! :p

@Wizzup?: SRLPlugin? :D

mysterious123

2010-02-19 00:00:39

Tried the script - very nice.
It seems that when you lose it restarts automatically which got me a bit confused since I saw the snake still moving until I noticed it had less pieces.

Anyhow, great job!