Author Topic: A mysterious dungeon (with fancy lighting)  (Read 5066 times)

maybe just coloured players and chat text for lazy identification

maybe just coloured players and chat text for lazy identification
Yeah this

It keeps them anony--

Oh it's kind of implemented now


It only asks for your name though

improved chat and added death messages


make death messages show who killed them

Way to turn off your light would be neat. Maybe slower fireball fire rate. If you could, add onto the map or something.
edit: also fireballs glitch through thin walls.
« Last Edit: August 08, 2013, 09:29:08 AM by cooldawson3 »

If you could, add onto the map or something.

I can, but I'm no "mapper" or anything. This is how the map is stored. I'd love if somebody could contribute with a better one:
https://github.com/portify/multifortress/blob/master/src/game.js#L7
« Last Edit: August 08, 2013, 09:31:47 AM by Port »


This whole thing is pretty neat.

What's the green 'o' do, anyways?

What's the green 'o' do, anyways?

Wander around randomly and annoy anyone trying to pass it.

I made a map based off the original -UPDATED IT BECAUSE IT WAS TOO NARROW forget-
Code: [Select]
function Game() {
this.clients = [];

this.entities = {};
this.nextEntity = 0;

var map = [
" ###########################     ",
" #....#######.....##......G#     ",
" #..........#GGG#.##......G#      ",
" #...###....#..G#.....###.##      ",
" #..##....#.#G..#.#######.####     ",
" #......###.#GGG#.######.....#     ",
" #..............#........###.#     ",
" #....#####.#####.........#..#     ",
" #.................##..##...##     ",
" #....########.###############     ",
" #...######  #............#        ",
" #......###  #.........#..#  # #   ",
" #..##....#  #.........#..#        ",
" #..####..#  #.#....##.#..# # #  ",
" #........#  #.#....##....#  ###   ",
" #..##.####  #.#..........##       ",
" #.....#     #.#....####....#######",
" #..#..#     #.##..######.......###",
" #..#..#######.#G..G....#..#......#",
" #..#..#GGG....#GG...GG.#..#......#",
" #..#...GGG....###.####.#..#..##..#",
" #..####GGG..#.....#.......#......#",
" #...........#....##.......#......#",
" #.............#..##.#####.#......#",
" #..#######....#...........###..###",
" #...........###...........#......#",
" #..###########............#GG##GG#",
" #...............##################",
" #...............#                ",
" #################                 "
];

this.world = {
w: map[0].length,
h: map.length,
data: map,

get: function (x, y) {
return this.data[y][x];
}
};

new entity.Goblin(this, {x: 3, y: 2});
new entity.Slime(this, {x: 14, y: 13});

this.update();
}

Game.prototype.message = function (message) {
for (var i = 0; i < this.clients.length; ++i) {
this.clients[i].message(message);
}
}

Game.prototype.update = function () {
for (var i = 0; i < this.clients.length; ++i) {
this.clients[i].update();
}

for (var key in this.entities) {
this.entities[key].update();
}

setTimeout(this.update.bind(this), 1000 / 30);
};

module.exports = Game;
:(
« Last Edit: August 08, 2013, 11:52:39 AM by Rembrandt »

I can, but I'm no "mapper" or anything. This is how the map is stored. I'd love if somebody could contribute with a better one:
https://github.com/portify/multifortress/blob/master/src/game.js#L7

Save the maps in a text file, read them as the map var. If you want to get really fancy use XML to define walls and stuff then create a parser for it. c:

Save the maps in a text file, read them as the map var. If you want to get really fancy use XML to define walls and stuff then create a parser for it. c:

Judging by the time of your post, I actually did that just 2 minutes ago (+ dynamically switching map), lol.
By the way, semi-realistic lighting is fun.


If you want to submit a map, there's a new format you should use. See some examples here:

https://github.com/portify/multifortress/tree/master/maps

The number at the top is the global illumination (between 0 and 1).

so it turns out finding anybody in a 100x100 maze can be very difficult

Is it down or something?
I can't connect to the site.