code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * jQuery validation plug-in 1.6 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright (c) 2006 - 2008 Jörn Zaefferer * * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ * * Dual licensed under the MIT and GPL license...
JavaScript
/* Copyright (c) 2009 Dimas Begunoff, http://www.farinspace.com Licensed under the MIT license http://en.wikipedia.org/wiki/MIT_License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without re...
JavaScript
/** * @Project NUKEVIET 3.0 * @Author VINADES.,JSC (contact@vinades.vn) * @Copyright (C) 2010 VINADES.,JSC. All rights reserved * @Createdate 31/05/2010, 9:36 */ function nv_checkForm() { var op_name = document.getElementById('op_name').options[document.getElementById('op_name').selectedIndex].value; var type_n...
JavaScript
/*---------------------------------------------------------------------------- CHIM - CHuoi's Input Method ---------------------------------------------------------------------------- copyright : (C) 2005, 2006, 2007 by Dao Hai Lam/ website : http://xvnkb.sf.net/chim email : daoh...
JavaScript
/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(functi...
JavaScript
(function($){ /* hoverIntent by Brian Cherne */ $.fn.hoverIntent = function(f,g) { // default configuration options var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; // override configuration options with user supplied object cfg = $.extend(cfg, g ? { over: f, out: g } : f ); // instantia...
JavaScript
/* * Supersubs v0.2b - jQuery plugin * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of * th...
JavaScript
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com //** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/ //** Menu created: Nov 12, 2008 //** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) co...
JavaScript
// ------------------------------------------------------------------------ // // PopCalendar 1.5 // // Copyright (c) 2009 alquanto.de // // <http://www.alquanto.net/> // ...
JavaScript
//Nested Side Bar Menu (Mar 20th, 09) //By Dynamic Drive: http://www.dynamicdrive.com/style/ var menuids=["sidebarmenu1"] //Enter id(s) of each Side Bar Menu's main UL, separated by commas function initsidebarmenu(){ for (var i=0; i<menuids.length; i++){ var ultags=document.getElementById(menuids[i]).getElementsByT...
JavaScript
/** * @Project NUKEVIET 3.0 * @Author VINADES.,JSC (contact@vinades.vn) * @Copyright (C) 2010 VINADES.,JSC. All rights reserved * @Createdate 31/05/2010, 9:36 */ function nv_admin_logout() { if (confirm(nv_admlogout_confirm[0])) { nv_ajax( 'get', nv_siteroot + 'index.php?second=admin_logout', 'js=1', ...
JavaScript
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** May 2nd, 08'- Script rewritten and updated to 2.0. //** June 12th, 08'- Script updated to v 2.3, which adds the following features: //1) Changed behavior of script to actually collapse the previous content wh...
JavaScript
/** * Styleswitch stylesheet switcher built on jQuery * Under an Attribution, Share Alike License * By Kelvin Luck ( http://www.kelvinluck.com/ ) **/ (function($) { $(document).ready(function() { $('.styleswitch').click(function() { switchStylestyle(this.getAttribute("rel")); return false; }); var c = r...
JavaScript
//** Stay on Top content script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** Script available at usage terms at http://www.dynamicdrive.com //** v1.0 (May 12th, 09') var alwaysOnTop={ dsettings: { targetid: '', orientation: 2, position: [10, 30], externalsource: '', frequency: 1...
JavaScript
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** May 2nd, 08'- Script rewritten and updated to 2.0. //** June 12th, 08'- Script updated to v 2.3, which adds the following features: //1) Changed behavior of script to actually collapse the previous content wh...
JavaScript
$(function(){ $("ul.nav li").hover(function(){ $(this).addClass("hover"); $('ul:first', this).css('visibility', 'visible'); }, function(){ $(this).removeClass("hover"); $('ul:first', this).css('visibility', 'hidden'); }); $("ul.nav li ul ...
JavaScript
var obj = null; function checkHover() { if (obj) { obj.find('ul').fadeOut('fast'); } //if } //checkHover $(document).ready(function() { $('#category_news > li').hover(function() { if (obj) { obj.find('ul').fadeOut('fast'); obj = null; } //if $(this).find('ul').fadeIn('fast'); }, function() { o...
JavaScript
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
/* * Autocomplete - jQuery plugin 1.0.2 * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete....
JavaScript
/** * Ajax Queue Plugin * * Homepage: http://jquery.com/plugins/project/ajaxqueue * Documentation: http://docs.jquery.com/AjaxQueue */ /** <script> $(function(){ jQuery.ajaxQueue({ url: "test.php", success: function(html){ jQuery("ul").append(html); } }); jQuery.ajaxQueue({ url: "test.p...
JavaScript
/************************************************************************** ****************** SF MENU ********************************** ***************************************************************************/ /* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licen...
JavaScript
(function($){ /* hoverIntent by Brian Cherne */ $.fn.hoverIntent = function(f,g) { // default configuration options var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; // override configuration options with user supplied object cfg = $.extend(cfg, g ? { over: f, out: g } : f ); // instantia...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
/*************************************************** TABBED AREA ***************************************************/ jQuery(document).ready(function() { //When page loads... jQuery(".tab_content").hide(); //Hide all content jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab jQue...
JavaScript
/*************************************************** TABBED AREA ***************************************************/ jQuery(document).ready(function() { //When page loads... jQuery(".tab_content").hide(); //Hide all content jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab jQue...
JavaScript
(function($) { // Compliant with jquery.noConflict() $.fn.jCarouselLite = function(o) { o = $.extend({ btnPrev: null, btnNext: null, btnGo: null, mouseWheel: false, auto: null, speed: 200, easing: null, ...
JavaScript
function BcClient(socket) { this.socket = socket; // todo rename to serverInterface? this.users = new TList().bindSource(socket, 'users'); this.currentUser = new User(); // do not replace this.users.bindSlave(this.currentUser); this.premades = new TList().bindSource(socket, 'premades'); this....
JavaScript
TankController = function TankController(tank) { this.tank = tank; var controller = this; $(window.document).keydown(this.controlEvent.bind(this)); $(window.document).keyup (this.controlEvent.bind(this)); }; TankController.prototype.controlEvent = function(e) { if ($('.CodeMirror textarea').get(0)...
JavaScript
// there are all existing global vars below var bcClient, uiManager; var codeMirror = null; // todo better place? $(function() { new WidgetLangSelector(); if (typeof WebSocket == 'undefined' && typeof MozWebSocket == 'undefined') { $('.ui-block').hide().filter('#nowebsocket').show(); } else { ...
JavaScript
isArray = Array.isArray; ServerUser = function ServerUser(course) { User.call(this, arguments); this.collections = {}; this.updateCollector = {}; this.messages = 0; this.countMessageFrom = Date.now(); this.setCurrentCourse(course); }; ServerUser.maxMessages = 10; // per minute ServerUser._eve...
JavaScript
TMessageList = function TMessageList() { TList.apply(this, arguments); }; TMessageList.prototype = new TList(); TMessageList.prototype.constructor = TMessageList; TMessageList.prototype.say = function(message) { this.add(message); for (var i in this.items) { if (this.items[i].time + 5 * 60 * 1000...
JavaScript
TPremadeList = function TPremadeList() { TList.apply(this, arguments); }; TPremadeList.prototype = new TList(); TPremadeList.prototype.constructor = TPremadeList; TPremadeList.prototype.join = function(event, user) { var gameName = event.name && event.name.substr(0,20); if (!user.premade) { var p...
JavaScript
var http = require("http"), url = require("url"), path = require("path"), fs = require("fs"); // todo globals registry = {}; require('../common/event'); require('../common/list'); require('../common/game'); require('../common/premade'); require('../server/premadelist'); require('../com...
JavaScript
ExerciseList = function ExerciseList() { TList.apply(this, arguments); }; ExerciseList.prototype = new TList(); ExerciseList.prototype.constructor = ExerciseList;
JavaScript
CoursesList = function CoursesList() { TList.apply(this, arguments); this.add(new CoursePascalBasics()); this.add(new CourseAlgoritms()); }; CoursesList.prototype = new TList(); CoursesList.prototype.constructor = CoursesList;
JavaScript
Course = function Course(id, name) { this.id = id; this.name = name; // this.execises = new TList(); }; Course.prototype.serialize = function() { return [ serializeTypeMatches[this.constructor.name], // 0 this.id, // 1 this.name // 2 ]; // z is constant }; Course.protot...
JavaScript
Exercise = function Exercise(name, level) { this.name = name; this.level = level; }; Exercise.prototype.serialize = function() { return [ serializeTypeMatches[this.constructor.name], // 0 this.id, // 1 this.name, // 2 this.level // 3 ]; // z is constant }; Exercise...
JavaScript
if (!window.availableLangs['/src/edu/course-pascal-basics/ex1']) { window.availableLangs['/src/edu/course-pascal-basics/ex1'] = {}; } window.availableLangs['/src/edu/course-pascal-basics/ex1']['en'] = { 'exercise-help-content': '<h1>Exercise 1</h1>\ \ <p>In this exercise you goal is to write a program which wi...
JavaScript
if (!window.availableLangs['/src/edu/course-pascal-basics/ex2']) { window.availableLangs['/src/edu/course-pascal-basics/ex2'] = {}; } window.availableLangs['/src/edu/course-pascal-basics/ex2']['ru'] = { 'exercise-help-content': '<h1>Задача</h1>\ \ <p>Во втором упражнении вам необходимо проехать через две контр...
JavaScript
if (!window.availableLangs['/src/edu/course-pascal-basics/ex3']) { window.availableLangs['/src/edu/course-pascal-basics/ex3'] = {}; } window.availableLangs['/src/edu/course-pascal-basics/ex3']['ru'] = { 'exercise-help-content': '<h1>Задача</h1>\ \ <p>В третьем упражнении цель появляется в одном из двух мест. Н...
JavaScript
if (!window.availableLangs['/src/edu/course-pascal-basics/ex4']) { window.availableLangs['/src/edu/course-pascal-basics/ex4'] = {}; } window.availableLangs['/src/edu/course-pascal-basics/ex4']['ru'] = { 'exercise-help-content': '<h1>Задача</h1>\ \ <p>В четвертом упражнении вам нужно объехать 3 цели. Но, как вы...
JavaScript
if (!window.availableLangs['/src/edu/course-pascal-basics/ex1']) { window.availableLangs['/src/edu/course-pascal-basics/ex1'] = {}; } window.availableLangs['/src/edu/course-pascal-basics/ex1']['ru'] = { 'exercise-help-content': '<h1>Задача</h1>\ \ <p>В первом упражнении вам необходимо написать программу управл...
JavaScript
BotEmitter = function BotEmitter(x, y) { this.x = x; this.y = y; };
JavaScript
(function(){ window.images = {}; var sprites = [ 'img/tank1-down-s1.png' , 'img/tank1-down-s2.png' , 'img/tank1-up-s1.png' , 'img/tank1-up-s2.png' , 'img/tank1-right-s1.png' , 'img/tank1-right-s2.png' , 'img/tank1-left-s1.png' , 'img/tank1-left-s2.png' , ...
JavaScript
Goal = function Goal(clan) { this.clan = clan; this.status = 0; // 0 - active, 1 - done }; Eventable(Goal.prototype); Goal.prototype.check = function() { throw new Error('subclass responsibility'); }; Goal.prototype.reset = function(field) { this.status = 0; }; GoalCheckPoint = function GoalCheckPo...
JavaScript
/** * drawable * coordinates */ Bonus = function Bonus(x, y) { AbstractGameObject.call(this, 16, 16); this.x = x; this.y = y; this.z = 2; }; Bonus.prototype = new AbstractGameObject(); Bonus.prototype.constructor = Bonus; Eventable(Bonus.prototype); Bonus.prototype.serialize = function() { re...
JavaScript
AbstractGameObject = function AbstractGameObject(hw, hh) { // for intersection (when speedX > hw) this.hw = this.boundX = hw; //for intersection (when speedY > hh) this.hh = this.boundY = hh; this.speedX; // set only through setSpeedX() this.speedY; // set only through setSpeedY() this.img = [];...
JavaScript
Delimiter = function Delimiter(x, y, hw, hh) { AbstractGameObject.call(this, hw, hh); this.x = x; this.y = y; this.z = 1; this.hw = hw; // half width this.hh = hh; // half height this.img[0] = 'img/black.png'; }; Delimiter.prototype = new AbstractGameObject(); Delimiter.prototype.construct...
JavaScript
/** * drawable * coordinates */ Water = function Water(x, y) { AbstractGameObject.call(this, 8, 8); this.x = x; this.y = y; this.z = 1; this.img[0] = 'img/water1.png'; }; Water.prototype = new AbstractGameObject(); Water.prototype.constructor = Water; Eventable(Water.prototype); Water.prototy...
JavaScript
/** * drawable * coordinates */ Bullet = function Bullet(speedX, speedY) { AbstractGameObject.call(this, 4, 4); this.x = 0; this.y = 0; this.z = 1; // bullet is rectangle step of bullet this.setSpeedX(speedX); this.setSpeedY(speedY); this.finalX = 0; // for proper hit animation (todo...
JavaScript
/** * drawable * coordinates * * interface: * fire() * turn(direction) * startMove() * stopMove() * * В этом классе перемешанны: * - сама сущность * - отрисовка (setDirectionImage(), imgBase, clanN, trackStep, blink) * - пуле устанавливаются координаты напрямую, а для этого надо знать, * ч...
JavaScript
/** * drawable * coordinates */ Trees = function Trees(x, y) { AbstractGameObject.call(this, 8, 8); this.x = x; this.y = y; this.z = 2; this.img[0] = 'img/trees.png'; }; Trees.prototype = new AbstractGameObject(); Trees.prototype.constructor = Trees; Eventable(Trees.prototype); Trees.prototyp...
JavaScript
Base = function Base(x, y) { AbstractGameObject.call(this, 16, 16); this.x = x; this.y = y; this.img[0] = 'img/base.png'; this.shootDown = false; }; Base.prototype = new AbstractGameObject(); Base.prototype.constructor = Base; Base.prototype.baseEdge = { 1: [ {x: 11, y: 23} , {x: 11, ...
JavaScript
OnFieldAnimation = function OnFieldAnimation(step, hw, hh) { AbstractGameObject.call(this, hw, hh); this.firstStep = step; }; OnFieldAnimation.prototype = new AbstractGameObject(); OnFieldAnimation.prototype.constructor = OnFieldAnimation; BulletHitAnimation = function BulletHitAnimation(step, x, y) { On...
JavaScript
TankBot = function TankBot(x, y, bonus) { Tank.apply(this, arguments); // call parent constructor this.setSpeedY(this.speed); this.moveOn = true; this.bonus = bonus; this.clan = null; this.armoredTimer = 0; this.fireTimer = 0; // do not fire too fast }; TankBot.prototype = new Tank(); Tank...
JavaScript
/** * drawable * coordinates */ Wall = function Wall(x, y, hw, hh) { AbstractGameObject.call(this, hw ? hw : 4, hh ? hh : 4); this.x = x; this.y = y; this.z = 1; this.img[0] = 'img/brick-wall.png'; }; Wall.prototype = new AbstractGameObject(); Wall.prototype.constructor = Wall; Eventable(Wall....
JavaScript
/** * drawable * coordinates */ Checkpoint = function Checkpoint(x, y) { AbstractGameObject.call(this, 16, 16); this.x = x; this.y = y; this.z = 0; this.img[0] = 'img/checkpoint.png'; }; Checkpoint.prototype = new AbstractGameObject(); Checkpoint.prototype.constructor = Checkpoint; Eventable(C...
JavaScript
/** * drawable * coordinates */ Ice = function Ice(x, y) { AbstractGameObject.call(this, 8, 8); this.x = x; this.y = y; this.z = 0; this.img[0] = 'img/ice.png'; }; Ice.prototype = new AbstractGameObject(); Ice.prototype.constructor = Ice; Eventable(Ice.prototype); Ice.prototype.serialize = fu...
JavaScript
Clan = function Clan(n, defaultArmoredTimer) { this.capacity = 2; // max users this.n = n; this.defaultArmoredTimer = defaultArmoredTimer; this.timer = 0; this.enemiesClan = null; this.users = []; this.goals = new TList(); this.base = new Base(); this.base.clan = this; this.tank...
JavaScript
Field = function Field(width, height) { this.width = width; this.height = height; this.objects = null; this.clear(); this.setMaxListeners(100); // @todo }; Eventable(Field.prototype); Field.autoIncrement = 1; // todo eliminate? Field.prototype.clear = function() { this.objects = n...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0], [0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,2,2,3,3,0,0,0,0], [1,1,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,2,2,2,2,0,0,0,1,1], [1,1,0,0,0,0,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,2,2,3,3,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,2,2,3,3...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,2,2,0,0,1,1,2,2,0,0,0,0,0,0,0,0,0,1,0,0,0,0], [0,0,0,0,2,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0], [0,0,0,0,1,1,0,0,1,1,3,3,0,0,1,1,1,1,1,1,1,1,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,4,4,3,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0], [2,2,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0], [0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0], [0,0,1,1,1,1,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0], [2,2,0,0,1,1,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,3,3,3,3,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,3,3,3,3,0,0,0,0,0,0], [0,0,1,0,0,2,0,0,1,0,0,0,0,0,0,0,0,1,3,3,1,0,0,1,3,3], [0,0,1,0,0,2,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [1,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0], [1,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,0], [0,0,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,0], [3,3,3,3,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,3,3], [3,3,3,3,0,0,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,3,3,3,3,3,3,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,3,3,3,3,3,3,1,1,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,4,4,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0], [0,0,0,0,0,0,4,4,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,2,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0], [0,0,1,1,4,4,4,4,0,0,2,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,0,0,0,0], [0,0,0,0,2,2,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [2,2,2,2,0,0,0,0,2,2,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0], [2,2,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0], [0,0,1,1,1,1,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,5,5,5,5,5,5,5,5,5,5,0,0,5,5,5,5,5,5,5,5,5,5,0,0], [0,0,5,5,5,5,5,5,5,5,5,5,0,0,5,5,5,5,5,5,5,5,5,5,0,0], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0], [0,0,0,1,0,0,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,2,2,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,2,2,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0], [0,0,1,1,0,0,2,2,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0], [0,0,1,1,0,0,2,2,0,0,0,0,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [3,3,3,3,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,3,3,3,3], [3,3,3,3,0,0,0,0...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0], [0,0,1,1,0,0,1,1,1,1,0,0,0,0,5,5,5,5,5,5,1,1,1,1,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,3,3,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,3,3,0,0], [0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,2,2,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0], [0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0], [0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,2,2,0,0,1,1,0,0,1,1,0,0,1,1,0,0,2,2,0,0], [0,0,0,0,0,0,2,2,0,0,1,1,0,0,1,1,0,0,1,1,0,0,2,2,0,0], [0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0], [0,0,1,1,0,0,1,1,0,0,1,1,0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,3,3,2,2,3,3,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,2,2,0,0,1,1,0,0,1,1,1,1,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,2,2,0,0,1,1,0,0,1,1,1,1,0,0,0,0], [0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0], [0,0,0,1,1,1,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0], [0,0,2,2,0,0,0,0,0,0,2,2,0,0,0,0,2,2,3,3,3,3,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,3,3,3,3,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,3,3,3,3,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0], [0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0], [0,0,...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water module.exports.getMap = function() { return [ [0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0], [0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0], [3,3,1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0], [3,3,1,1,1,1,1,1...
JavaScript
// 1 - wall // 2 - steel wall // 3 - trees // 4 - water // 5 - ice module.exports.getMap = function() { return [ [0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0], [4,4,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4], [4,4,...
JavaScript