The Game Modding Community - Since 2001

Test Game

A Config Script for GameBanana

32 lines | 1 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function() {
    this.m_nSquareSize = 25;
    this.m_nWorldSize = 250;
   
    this.Initialize = function() {
        // make the Test Game a visible chat pane
        joCreatePane("TestGame");
       
        $("#TestGame").append('<div id="TestGameWorld"></div>\
        <style type="text/css">\
            #TestGameWorld { overflow:hidden; background:#333; position:absolute; top:0; left:0; width:'
+this.m_nWorldSize+'px; height:'+this.m_nWorldSize+'px; }\
            #TestGameWorld .Player { z-index:2; position:absolute; width:'
+this.m_nSquareSize+'px; height:'+this.m_nSquareSize+'px; }\
            #TestGameWorld .Player img { width:'
+this.m_nSquareSize+'px; height:'+this.m_nSquareSize+'px; }\
        </style>'
);
       
        for (var _nUserid in g_oParticipants) {
            $('<div class="Player Player'+_nUserid+'">'
                +'<img src="'+g_oParticipants[_nUserid]._sAvatarUrl+'"/>'
            +'</div>')
                .appendTo("#GameWorld");
        }
       
        $("#TestGameWorld").click(function() {
            vSendLiveInput("Plugin10045",{0:"clicked"});
        });
    }
   
    // unbind event handler and remove all traces of the plugin
    this.Destroy = function() {
        $("#TestGame").remove();
    }
}
A plugin that acts as an interactive multiplayer game.
Promotional Content

Posts

None found

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
tom avatar
tom username pic Joined 17y ago
Ripe Supporter TBS2 Manager Super Admin
Offline
43,186 points Ranked 92nd
54 medals 12 legendary 10 rare
  • Achieved Super Admin clearance Medal icon
  • 10 years a member Medal icon
  • Thanked 500 submitters Medal icon
  • Submitted 200 Blogs Medal icon
  • Submitted 200 Threads Medal icon
  • Submitted 60 Polls Medal icon

Submitter


tom avatar
tom username pic Joined 17y ago
Ripe Supporter TBS2 Manager Super Admin
Offline
43,186 points Ranked 92nd
54 medals 12 legendary 10 rare
  • Achieved Super Admin clearance Medal icon
  • 10 years a member Medal icon
  • Thanked 500 submitters Medal icon
  • Submitted 200 Blogs Medal icon
  • Submitted 200 Threads Medal icon
  • Submitted 60 Polls Medal icon

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Sub-category
Plugins
Super-category
Chat

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 341 Views
  • 0 Posts
  • 4mo Submitted
  • 3mo Modified

Scores

  • Not yet rated
Sign up to access this!

Hey, you! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Stop Lurking! Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel