AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Snake Minigame (Version 1.0) (https://forums.alliedmods.net/showthread.php?t=169868)

Peace-Maker 10-17-2011 18:52

[ANY] Snake Minigame (Version 1.0)
 
3 Attachment(s)
Snake
A Snake and Snake 2 minigame simulation.

What's the Source Engine without some retro games? Play Snake in a panel on the left while being dead or waiting for more players. Play with your movement keys and try to eat as much food before biting yourself or hitting the wall.

https://forums.alliedmods.net/attach...1&d=1475013623

Just type !snake (sm_snake) in chat to open the main menu and choose the gamemode.

This plugin features 2 gamemodes.
  • Snake 1 style: Solid walls. Game over, if you touch the border of the gamefield
  • Snake 2: Sneaking through a wall brings you to the opposite side.

Each gamemode has it's own top10 accessible from the !snake mainmenu.

Sometimes there's going to be a second piece of food laying around. Try to get it fast, as it's not there forever! You're going to lose some weight and get shorter.

Installation:
  1. Upload the snake.smx into you sourcemod/plugins folder.
  2. Edit your databases.cfg and add a "snake" section to save the highscores in. If you don't add anything, highscores will be stored in sourcemod's default "storage-local" sqlite database.
    1. SQLite:
      Code:

          "snake"
          {
              "driver"            "sqlite"
              "database"            "snake"
          }

    2. MySQL:
      Code:

          "snake"
          {
              "driver"            "mysql"
              "host"                "localhost"
              "database"            "snake"
              "user"                "youruser"
              "pass"                "yourpass"
              //"timeout"            "0"
              "port"            "3306"
          }

    3. If you use mysql, execute this query to create the table:
      PHP Code:

      CREATE TABLE `snake_players` (
      `
      steamidVARCHAR64 NOT NULL,
      `
      nameVARCHAR64 NOT NULL,
      `
      score1INT NOT NULL DEFAULT '0',
      `
      score2INT NOT NULL DEFAULT '0',
      PRIMARY KEY ( `steamid` )
      ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci

Known issues:
Some users' machines are unable to display UTF-8 chars ingame, so they won't be able to play this game as they will only see messy squares all over. It's clientside and i don't know how to fix that ;)

Thanks to:
  • berni/Chanz for their fabulous smlib

Did you see...:

Note: This plugin won't compile on the forum due to it's custom include. Use the provided .smx or compile yourself.

Fearts 10-17-2011 21:10

Re: [ANY] Snake Minigame (Version 1.0)
 
Dear lord baby jesus your awesome!

KyleS 10-17-2011 22:27

Re: [ANY] Snake Minigame (Version 1.0)
 
Quote:

Originally Posted by Fearts (Post 1577944)
Dear lord baby jesus your awesome!


napalm00 10-18-2011 00:55

Re: [ANY] Snake Minigame (Version 1.0)
 
Come back when you make TF2 into TF2 :mrgreen:

sinblaster 10-18-2011 16:04

Re: [ANY] Snake Minigame (Version 1.0)
 
I think we should call you
GameMan (the idiot savant of gaming) :lol:

Might be time for a peace-maker menu in CSS so we can access all your goodies quicker

Chronic1 10-19-2011 01:08

Re: [ANY] Snake Minigame (Version 1.0)
 
Can you slow down the snake for the one with walls? Its really hard, and the snake moves even faster when it goes up or down. Otherwise Excellent plugin idea! Im using the Tetris one too!

sipster19 10-25-2011 10:58

Re: [ANY] Snake Minigame (Version 1.0)
 
I found two problems with this plugin:

1. The numbers are printed twice for the high scores.

[IMG]http://img703.**************/img703/9694/snakebz.jpg[/IMG]

2. It doesn't inform the player that by pressing 0, they can pause the game.

[IMG]http://img849.**************/img849/954/snakepause.jpg[/IMG]

lascage 11-02-2011 09:00

Re: [ANY] Snake Minigame (Version 1.0)
 
When i translate this in French, the compiler say invalid function or declaration in the first line.

Help plz !

jungjunghoo 11-02-2011 10:31

Re: [ANY] Snake Minigame (Version 1.0)
 
Quote:

Originally Posted by lascage (Post 1588339)
When i translate this in French, the compiler say invalid function or declaration in the first line.

Help plz !

If you see AMX mod editor. You can see first line's word.
delete and re-compile

lascage 11-02-2011 15:57

Re: [ANY] Snake Minigame (Version 1.0)
 
Quote:

Originally Posted by jungjunghoo (Post 1588398)
If you see AMX mod editor. You can see first line's word.
delete and re-compile

What's AMX Mod Editor plz ? I don't see what you say !


All times are GMT -4. The time now is 14:46.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.