I've been playing around with panther a bit and searching through the forums, as well as looking at a few other multiplayer games' code, and with that knowledge I decided to make my own. Block Catch Online, a game based off of duck hunt where a block flies around the screen, and you must be the first one to catch it.
The system goes like this: (Created in panther)
I've made a client, and a registration project that will give you a username and password (if the username does not exist) and then you can use your username and password to log into the game with a client. The server is started and a blue block bounces off a server. The block records it's X and Y into variables, and another sprite in the client to represent the block goes to the same position as the server block, therefore everyone will have the same block velocity and position. Once somebody clicks their block, a broadcast is sent to the server. The server block receives the clicked broadcast and resets it's position and velocity likewise, and then it sends back a broadcast telling the clients they can click it again.
Problems:
(Hopefully WILL be solved.) Once I connect a second client with a different username, the entire game, all servers and clients, freeze. I think it's because I'm connecting more than one on one computer, mine. I can't necessarily release it because of the problems below.
(Hopefully Solved) Hackers. They can easily make it so the block follows their cursor and they can never miss. I've been thinking about a server-sided solution where it would check to see if the mouse was a certain distance from the block, but of course because of the slowness the judgements wouldn't be accurate. The only way to fix this is .exe compiling.
(Unsolved, but unimportant.) Spam. I've added a chat feature, and I have no way of preventing spam. I've tried to use the timer to check if there has been 1 second between messages, but then if two people entered in a chat message at once, only one would show up, and the conversation would be one-sided.
Until I can fix these problems, I'll have to put the release on hold.
...Too late. :3
Last edited by Kingdaro (2010-05-30 13:05:10)
Offline
Nice
Offline
Yes a MMOG is alot harder.
Offline
johnnydean1 wrote:
Yes a MMOG is alot harder.
This is still hard, though. XD
I believe I've fixed the hackers problem by recording x and y mouse values and making the clicking server sided, so I might be able to release.
(Also, the spam problem doesn't matter that much to me anymore. And I want to test two clients on different computers,). Let me just upload in a sec... (open in panther :3)
Offline
KK post a link and Ill see (I know what im doing with mesh)
Offline
johnnydean1 wrote:
KK post a link and Ill see (I know what im doing with mesh)
I'm sure you do, having made the first MRPG on Scratch XD
Also, the Panther blocks automatically connect you, and if they don't, look into the code and manually connect yourself.
Offline
Server?
Offline
I would like the server to see the entire game as it happens, so I can show you how to prevent hackers.
Offline
I cant access them (temp. unavalible)
Offline
They all say temparay unavalible. Try Media Fire
Offline
Yay it works, but Password Protected server
Offline
johnnydean1 wrote:
Yay it works, but Password Protected server
Yes, the password is "ilikescratch" or "ilovescratch" I forget which one XD
It's "ilovescratch" :3
Last edited by Kingdaro (2010-05-30 13:58:51)
Offline
Ok will look at them all soon. I am making a simple Panther MMOG with scrolling and variable making and im nearly done
If you want I'll post it when im done.
Offline