Tank game - multiplayer using peerJS - wanna play?

Show us your completed creations made in Construct 2

Post » Thu Dec 19, 2013 10:28 pm

I am connected with chrome for the next hour, if someone want to try it out against me, just go to this link in a chrome browser:

Tank Game

There is only one room with two players defined right now, so if you get an error 'user2 is already taken', bummers...

some info on the game:

The game inspired by the classic atari tank game.
The game uses peerJS and for now is set to automatically connects and limited to 1 room for now, that means 2 players at a time tops.
Remember, peerJS is limited to work Chrome Vs Chrome, or FireFox vs FireFox for now.

Controls and logics:
Move the tanks with the keyboard's arrows or with the on screen analog stick.
Fire by touching one of the weapons button or with z,x,c,v,b,a,s,d,f,g on your keyboard (on screen key hints when hovering a button with the mouse)

You can press Q, to flip the controls from right to left hand layout.
Each player starts with 200$ (money pickups generated randomly throughout the level), each weapon/powerup cost a different amount of money.

Each player has a flag and a guard tower that targets the enemy, capturing the enemy's flag and taking it back to your base rewards you with 200$.

The flag can be snatched back by colliding with it.

Avoid the helicopter, if you're in it's range it will follow you and shoot on you.

There are 4 shortcut portals one on each side of the layout.
The map and minimap are generated randomly by user 1 and then sent to user 2 onConnection.

weapon types:

1. bullets
2. 2 angled missile
3. drop down dynamite
4. drop down sawblade (moving object)
5. speedup for 12 seconds.
6. homing missile (auto destroyed after 5 seconds, enough time to reach from 1 end of the screen to the other, but also avoidable, with quick maneuvering or using the teleporters)
7. shield for 15 seconds
8. flamethrower - stays on for 10 seconds.
9. invisibility for 15 seconds (also effects minimap)
10. airstrike - confirmed hit - unavoidable.Lof2013-12-19 22:35:57
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Thu Dec 19, 2013 10:54 pm

so... first try conclusions, still needs a lot of work :)
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Wed Dec 25, 2013 9:43 pm

I'm sorry but when it said "??? ?? ?????" ("Ouch you a-hole" in Hebrew) i lost it.
B
16
S
4
G
5
Posts: 24
Reputation: 3,288

Post » Thu Dec 26, 2013 7:00 am

I totally forgot about that :)
It was an inner joke with some of my friends who tested it.
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Thu Dec 26, 2013 5:39 pm

Very nice, maybe you can help me put some multiplayer stuff together...my next goal is lan play and web multiplayer. Anything we make from it would be 50/50. :)
ImageImage
B
42
S
9
Posts: 321
Reputation: 3,048

Post » Thu Dec 26, 2013 11:36 pm

What is the game concept?
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Sat Feb 15, 2014 7:06 pm

Hi

I am trying to work out how to user PeerJS with construct and would love to look at your code. If you don't want to do this, may be you could at least answer the following post for me :-)

Based om https://dl.dropboxusercontent.com/u/5426011/plugins/peerjsPlugin/rojo_PeerJS.zip, how do I test for a collision between too players.

Also how did you get your game to start with the players joining automatically?abasel2014-02-16 09:09:43
B
4
S
1
G
2
Posts: 42
Reputation: 961


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest