Test Game

A Config Script for GameBanana

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending tom points.
  • Post: Give tom your thoughts on this Script.
  • Vote: Help tom win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

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.

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 16y ago
Super Admin
Offline
8,601 points Ranked 530th
49 medals 11 legendary 9 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 16y ago
Super Admin
Offline
8,601 points Ranked 530th
49 medals 11 legendary 9 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

Stats

Posts
0
Views
234
Date Added
1mo
Date Modified
2d
bcp.crwdcntrl.net tracking pixel