11 ms·
TANX: online multiplayer tank battle using WebGL and Node.js
- codezero 12y agoI'm amazed this works great on my iPhone and had great touch controls.
- deleted 12y ago[deleted]
- Globz 12y agovery neat! Love the game! great work!
- mrmoka 12y agocheers! what you would love to see in this game implemented?
- Globz 12y agoA chat would be great! And a way to pick our team without creating a stack team, probably balance out the availble spots and restrict stacking.
- CodeWriter23 12y agopenalties for team killing
- deleted 12y ago[deleted]
- roybarberuk 12y ago5.4.3.2.1.0 but then nothing happens :(
- MayorOfMonkeys 12y agoTry again.
- ehmorris 12y agoI found steering a little confusing since it's not correlated with the current direction of the tank, but still very fun.
- Retr0spectrum 12y agoYeah, it seemed especially un-natural for me since I've spent so long playing tanktrouble.com
- dubcanada 12y agoThe shooting is a little weird, I fired several times at a tank, and the bullet went right through him. And other times I fired and completely missed and he got hit.
- daredevildave 12y agoThat's network gaming...
- yebyen 12y agoThe tanks are also on teams. If you shoot at a tank of your own color, I don't think it's possible to score a hit (no friendly fire). I played it for about two minutes and I'm hooked. All the upvotes.
- sebular 12y agoA well-written game can account for lag and prevent those kinds of glitches from happening...
- atomical 12y agoThere isn't browser support for UDP. This makes glitches much more likely.
- shurcooL 12y agoThere is, you can use WebRTC Data Channels to achieve it. It's not trivial, but it's possible.
- mrmoka 12y agoWebRTC is not supported by Apple platforms nor by most mobiles where this problem is most visible. Solution would be to have servers on local data centres as well as good implementation of dead reckoning. Although networking code been written in less than 8 hours initially, and since then not reviewed :)
- johntaitorg 12y agoAt last, someone has found a use for the world wide web!
- mrmoka 12y agoThat is very amazing thing to hear.
- bch 12y agoMemories of BZFlag... http://en.wikipedia.org/wiki/BZFlag http://en.wikipedia.org/wiki/BZFlag
- jjoonathan 12y agoAnd bolo! http://en.wikipedia.org/wiki/Bolo_%281987_video_game%29 http://en.wikipedia.org/wiki/Bolo_%281987_video_game%29 Speaking of which, the Bolo guy went on to do the multicast DNS stuff at apple (Rendezvous/Bonjour/MyMacBook.local). I was just paging through the RFC the other day. Small world!
- justsee 12y agoAh bolo - so many schooltime lunches engrossed in the magic of network gaming. It was nice to see it got ported to Windows / Linux too: http://www.winbolo.com/ http://www.winbolo.com/. And of course, JavaScript: http://stephank.github.io/orona/bolo.html http://stephank.github.io/orona/bolo.html
- iovar 12y agoYes, it reminded me of it too!
- mikecsh 12y agoAnd Spectre! http://en.wikipedia.org/wiki/Spectre_%28video_game%29 http://en.wikipedia.org/wiki/Spectre_%28video_game%29
- ffn 12y agoHey this is awesome! Really love your grid. Any chance you can share with us what frameworks you used? I'm particularly interested in what you used to build your 3d grid.
- mrmoka 12y agoThanks. We've used PlayCanvas free tools (editor) and node.js for server-side code. Check out here: https://playcanvas.com/ https://playcanvas.com/ and source code of client https://playcanvas.com/project/45093/overview/tanx https://playcanvas.com/project/45093/overview/tanx as well as server code: https://github.com/Maksims/tanx https://github.com/Maksims/tanx
- danuker 12y agoYou should have chat
- mrmoka 12y agoIndeed.. :)
- fit2rule 12y agoGreat work! A bit monotonous after about 30 seconds, but definitely a neat demonstration of what can be done ..
- curiously 12y agoholy hell that is one of the most fun multiplayer game I played! would love to know more about the engine and development process. this is what games should be. just hop in and play. no bullshit sign in with your facebook or earn dumb achievements or buy textured guns for money etc.
- MayorOfMonkeys 12y agoThe engine is PlayCanvas. It's an open source game engine. Check out the repo on GitHub here: https://github.com/playcanvas/engine https://github.com/playcanvas/engine There's high level editor tools (kind of a blend of Google Docs and Unity) here: https://playcanvas.com/ https://playcanvas.com/
- curiously 12y agoInteresting...so does it only work on modern browsers?
- mbrubeck 12y agoYes. Most importantly it uses WebGL, which isn't available on any versions of IE before IE11: http://caniuse.com/#feat=webgl http://caniuse.com/#feat=webgl List of officially-supported browsers: http://developer.playcanvas.com/en/user-manual/introduction/#supported-browsers http://developer.playcanvas.com/en/user-manual/introduction/...
- curiously 12y agocan I contribute to this game or fork it? God I can't stop playing it!
- mrmoka 12y agoYou can indeed, feel free to do so. Here is source of server side code: https://github.com/Maksims/tanx https://github.com/Maksims/tanx And here is client side: https://playcanvas.com/project/45093/overview/tanx https://playcanvas.com/project/45093/overview/tanx And my email if you want to contact directly: core[at]moka.co
- rihegher 12y agoIt miss key configuration panel for people who doesn't use qwerty keyboard
- jarrettch 12y agoReally enjoyed this! Although, I did get killed right away after spawning. Maybe make the spawn zone a temporary safe zone while new players figure out the controls or so current players can't camp out?
- jarrettch 12y agoReally enjoyed this! Although, I did get killed right away after spawning. Maybe make the spawn zone a temporary safe zone while new players figure out the controls or so current players can't camp out?
- uptownhr 12y agoI cannot go right, is "D" not bound? Where can i configure key binds?
- daredevildave 12y agoUsing a non-US/UK keyboard?
- gknoy 12y agoThey might have wanted to use 'wsad' for movement rather than arrow keys.
- angersock 12y agoAssuming that it's full of HNers...y'all are terrible at this game. Move and shoot, folks. Move and shoot. Control items. Jeez, it's like you've never played Quake or Soldat before.
- penetrarthur 12y agommmm... soldat
- randunel 12y agoMost of us are using a touchpad :)
- Gabriel_Martin 12y agoThis is a big disadvantage
- protomyth 12y agotrackball is a bit of a problem - fun game though - f'n andy - shooting someone who isn't moving :)
- ffn 12y agoI think there's a good majority of us who grew up playing RPGs or city-builders. We're unfortunately unaccustomed to the ravages of war... even when it's just war on an internet-based tank game.
- itsbits 12y agothe time when we realise mouse would have done awesome job...
- pmontra 12y agoIt's very difficult with a touchpad unless one is left handed. Keys on the right, aim on the left: bad for the 90% of us. I should look for my mouse. I know I have one somewhere.
- ianstallings 12y agoThis was fun. The only thing missing was a chat for some smack talk because I just OWNED a couple people. l2p noobs ;)
- mizzao 12y agoI open this (Chrome, Linux 3.18) and just get the two carets on an orange background. WebGL works on other sites. Broken?
- simonbh 12y agoI am using Chrome 42.0.2311.50 beta (64-bit) on Linux 3.19.2 and it works just fine for me.
- TD-Linux 12y agoFirefox Nightly on Linux, I get this in the console: uncaught exception: Error loading script from 'http://apps.playcanvas.com.s3-website-eu-west-1.amazonaws.com/hsrBBBIB/d26b395fwzu5fz.cloudfront.net/3.2.3/keen.min.js' http://apps.playcanvas.com.s3-website-eu-west-1.amazonaws.co...
- touristtam 12y agoneed gamepad control if not implemented already :D
- pfraze 12y agoGreen team rules the day!
- nsxwolf 12y agoPretty awesome overall, hit detection kind of sucks though. I thought I had to lob my shells at first. Looks like 60fps, on my new low end Mac Pro. Is there a frame counter?
- drhayes9 12y agoI was thinking the same thing but I chalked it up to lag.
- jsprogrammer 12y agoYou can use the browser's built-in framecounter.
- yummybear 12y agoWell done. Fun game.
- imaffett 12y agoPlaycanvas is doing amazing work with WebGL. The Mozilla team showed off a version of this at GDC - https://www.youtube.com/watch?v=dVAw_an6NBQ https://www.youtube.com/watch?v=dVAw_an6NBQ Check out the SeeMore demo Will and his team were showing off at GDC - http://malideveloper.arm.com/demo-showroom/gaming/seemorewebgl/ http://malideveloper.arm.com/demo-showroom/gaming/seemoreweb...
- deleted 12y ago[deleted]
- Mikeb85 12y agoWow, it's actually pretty fun. Can't wait for the next generation of browser games.
- jsd1982 12y agoDamn you, GUEST!
- danielweber 12y agoWhy do some tanks look much larger than others?
- MayorOfMonkeys 12y agoPerspective? :)
- nni 12y agothose glow effects are sweet - the whole thing is inspiring and motivating
- nsxwolf 12y agoI don't know if the developer has been tinkering with the game since I first played it, but the tanks move at a snail's pace now.
- borgia 12y agoWas the sound flaky for anyone else? It was pretty erratic for me on Firefox on OSX
- codeulike 12y agoWhats the deal with the flag in the middle, what do you have to do?
- mrmoka 12y agoIt's a shield, gives you extra points to handle damage.
- stevedekorte 12y agocool graphics - would prefer all keyboard controls
- hkon 12y agoAwesome!!
- gocard 12y agoomg, i just owned a bunch of you guys. l2p noobs
- Trumpet6 12y agoThe shield is completely OP, camp that and you'll win every match.
- jaxn 12y agoThat is much easier to play on the iPhone than on my MacBook with touchpad.
- curiously 12y agoI played on the blue team for the last 15 minutes or so...one like 10 times spawn kill is a huge flaw in this game. for example, i just lurk around the spawn and just kill anything..
- bencollier49 12y agoIt's great fun, good game!
- nogridbag 12y agoCool game, but it's hampered by the 3D and controls (tank takes too long to change direction). If this was a 2D top down shooter it would be much better. Everyone playing appeared to be clueless. My last match was 28 kills to 0, 0, 0 before I got a phone call ;)
- wazoox 12y agoNon US keyboard + trackpad = hopelessly unplayable. Please, needs controller settings :)
- groby_b 12y agoMy first reaction: This is #@$)(@#, totally $(#)$, hit detection is broken. That means it's an awesome game, I just hate losing. Congrats to the makers for sinking an hour of my day! ;)
- seivan 12y agoNetwork lag?
- tylerpachal 12y agoJeremy and I were carrying the orange team haha fun game!
- phaed 12y agoBeen killing everyone hahahah.
- kf5jak 12y agoDoesn't seem to be loading for me. Just the PlayCanvas logo. Not seeing any errors in JS console. Using Chrome Version 41.0.2272.104 (64-bit). EDIT: Tried another game from playcanvas.com and I get a banner saying 'This page requires a browser that supports WebGL.' However, it is enabled. This is just an FYI for the developer, but is probably just a problem on my end.
- novaleaf 12y agosame for me, chrome v41.0.x on win64
- lvs 12y agoSo, you probably have hardware acceleration turned off in the settings, or else chrome doesn't like your graphics card driver and has disabled webgl. Check chrome://gpu
- heroic 12y agoI was having the same issue. Just turned of AdBlock and it worked.
- deleted 12y ago[deleted]
- bvanvugt 12y agoThis is an amazing experience and a ton of fun. I loved being instantly put into a game. I was able to immediately recognize that I was on a team and dive face first into the battle. Sure, the controls and hit detection are a bit flakey, but experiencing this for the first time was a lot of fun. Great job :)
- aceperry 12y agoWow, doesn't do anything. All I see is a playing field with the orange rectangle in the center. Wish there was more to it.
- tlarkworthy 12y agoThe general who is skilled in defense hides in the most secret recesses of the earth -- Sun Tze (attack from underneath)
- zaroth 12y agoFailed to load resource: net::ERR_INSECURE_RESPONSE ?
- dash2 12y agoDAMMIT PANZER!
- zetahunter 12y agoLooks fairly broken to me.
- daredevildave 12y agoTry again now
- tvararu 12y agoOpened this on my iPhone and it started running at 60 FPS with on screen controls and everything. Holy. Brilliant.