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.
Sign up to access this!

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
TBS2 Manager Super Admin
Offline
48,977 points Ranked 81st
58 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
TBS2 Manager Super Admin
Offline
48,977 points Ranked 81st
58 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!

Game

Sign up to access this!

Category

Sub-category
Plugins
Super-category
Chat

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 504 Views
  • 1ySubmitted
  • 1yModified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

WiPs by Submitter

More Plugins Scripts

bcp.crwdcntrl.net tracking pixel