Help beta test my first multiplayer game?

psyonpsyon

很久以前 | 帖子#1
This is the first multiplayer game I have ever made. I jumped right in and did a realtime game. Hopefully when I update some of my turn based games to be multiplayer, it will be easier. If anyone is willing to beta test for me, please have a look at:
http://www.nonoba.com/psyon/multiplayer-combat

I look forward to any comments.

rdzrdz

很久以前 | 帖子#2
I think i have bug 1:
When the other player leaves the game i do not get a notice about this.
Only see that the other tank cannot be shot & does not move.

In the serverside code you would need to use something like next:


public override void UserLeft(Player user)
{
if (user == player1)
{
Broadcast("left", 0, player1.Username);
player1 = null;
}
else if (user == player2)
{
Broadcast("left", 1, player2.Username);
player2 = null;
}
}

At the local side the 'left' broadcast can then have some response:

case "left":{

//some code to reset game

break;
}
最后编辑很久以前

psyonpsyon

很久以前 | 帖子#3
The server side sends the "left" message, the client side just doesnt handle it yet. I didnt think people would want to just sit there and wait. What do you think the game should do when someone leaves?

rdzrdz

很久以前 | 帖子#4
At least it should show some message, i think.

'player .... has left the game'

(ps. If you are the first player in a game you also have to sit and wait)
最后编辑很久以前

mike950mike950

很久以前 | 帖子#5
when testing in 2 browsers they both just sit there waiting for players
to join...
also i had multiplayer combat out for a while ..same name different game lol
http://nonoba.com/mike950/bw

psyonpsyon

很久以前 | 帖子#6
Mike, a few other people have mentioned that issue, but leave before I could get details from them. What version of flash do you have? What browser? What operating system?

Also, I saw your game after I initially uploaded mine. I'll probably change the name at some point.

mike950mike950

很久以前 | 帖子#7
im in xp using ver 11 of firefox
but i doubt the version is causing it..
let me give you an error output from debugger
remember to always use the debugger
instantiation attempted at non-constructor
Bullet()

YaiEfYaiEf

很久以前 | 帖子#8
The game caused the flash debug player to bring down firefox because of the immense amount of unhandled errors. Creating a game results in a couple of errors (all related to the Bullet class). Joining my own game from another tab brought the browser down.

You should install the debug player yourself: http://www.adobe.com/support/flashplayer/downloads.html

psyonpsyon

很久以前 | 帖子#9
I didn't realize there was just a debugger player for the browsers. I used the debugger from the flash environment, and it showed no issues. Ill install the debugging player right now :)

psyonpsyon

很久以前 | 帖子#10
Ok, I have the debugger player installed, but I don't get any errors about the bullet class.

mike950mike950

很久以前 | 帖子#11
try running it in internet explorer..thats where i get the errors

psyonpsyon

很久以前 | 帖子#12
The only error I get is a warning about meta-policy

I did make a small change though before I tested in IE. When I looked up the error you had pointed out, I found a line in the AS that might have cased it.

private var beeper:Beeper;

then later

this.beeper = new Beeper();

Some things I read said that having the variable name the same as the Class name would causes issues, but I thought the case might make a difference, and I also didn't know why it would only affect some people. Either way, I changed beeper to beepfx.

回复主题

现在就注册以回复主题

5dyouxi

5dyouxi.com是一个独立的游戏网站,在这里你将可以免费玩到各种好玩的单人和多人游戏。

开发者工具

如果你是一位flash游戏开发者,我们有一些非常强大的工具来帮助你开发更加优秀的游戏。

经典游戏

为什么不试试我们这里的一些最为优秀的在线flash游戏呢?这可是完全免费的!

Copyright ©2007-2012 5dyouxi™ - All rights reserved.31.2001ms on SERVER34096
注册 或者