8 ms·
Show HN: HTML5 version of StarCraft
- unicornporn 11y agoFunny thing, I tried to play SC on a LAN last week. No go on my MacBook though. Wine gives graphics glitches and VMWare Fusion was too slow on my ageing MBP. I downloaded version 1.0 of this and it seems to work quite well! The version live at http://www.nvhae.com/starcraft/ http://www.nvhae.com/starcraft/ is 0.1. Guess we shouldn't hope for multiplayer, which is what I'm really after.
- gloomyson 11y agoActually I have the plan to make it support multiplayer using dojo.js, but before that I need to add other features like mining and routing into this game, hope won't make you wait long time^_^
- gloomyson 11y agoSorry, will support multiplayer by node.js, meanwhile plan to support saving by local storage; I'm studying framework dojo.js now and add its useful functions into my own framework gFrame.js
- danielsamuels 11y agoYou can use the rawgit to view the current version (1.0) - https://rawgit.com/gloomyson/StarCraft/master/index.html https://rawgit.com/gloomyson/StarCraft/master/index.html
- gloomyson 11y agoWow, I didn't know this, but i guess you will hardly enter the game because by now my audio files are separated as a result will trigger large amounts of http requests; I will later join them together to reduce audio file amounts, will play each sound like sprite
- gloomyson 11y agoWow, I didn't know this, but i guess you will hardly enter the game because by now my audio files are separated as a result will trigger large amounts of http requests; I will later join them together to reduce audio file amounts, will play each sound like sprite
- deleted 11y ago[deleted]
- LoSboccacc 11y agopls link cdn rawgit, the normal rawgit is already handing 503 because the project quota ended
- SXX 11y agoLooks funny, but I recommend you to remove all proprietary Blizzard graphics from GitHub and possible just recreate repository without it. If you want to host assets there better to keep them in different repository. Otherwise you'll clearly get DMCA because Blizzard has long history of banning any project even remotely copying their products no matter if it's done for fun or whatever. PS: It's also affect repository name, etc.
- gloomyson 11y agoMuch thanks for you recommend, I make this game just because I love this old StarCraft game so much and want to realize it in web browser, no plan for make money, and it's much weaker than the original Blizzard game
- Tomte 11y agoGreat. Blizzard won't care. But if you like living a risky life, go on. (And yes, I'm blown away by what you have achieved there)
- deleted 11y ago[deleted]
- jvzr 11y agoI'm pretty sure she/he meant: "Blizzard won't care that you did this because you liked the game, and are not making any money out of it," not "Blizzard won't care about this project and thus won't take you down."
- Kiro 11y agoHe's not from the US so what exactly is he risking here apart from the repo being taken down?
- kzrdude 11y agoYou haven't noticed the global reach of US copyright law yet? If it doesn't reach there yet, they keep trying to extend it (see free trade treaties).
- tallerholler 11y agothis is awesome! please continue and get multiplayer but also don't get busted by blizzard...
- gloomyson 11y agoThank you, please don't tell blizzard my game, hope it can live longer in github
- artmageddon 11y agoThey'll find it pretty quickly. You'll want to move fast to protect yourself.
- iopq 11y agoAs someone who still plays the game sometimes, this will take way too much effort to reproduce satisfactorily. Cursors need to change on mouseover, or when a command is selected. There need to be hotkeys, ctrl groups, etc. Not sure if you're going to finish this, because it is going to be quite hard to polish.
- MasterScrat 11y agoLooks very interesting :D I'm currently doing the same with Baldur's Gate engine. I am using Mootools, I want to study your code more to see if Dojo would be better (Mootools introduces overhead with constructors) Basic demo here: http://lumakey.net/labs/battleground/demo1/ http://lumakey.net/labs/battleground/demo1/ For multiplayer I'm making tests with Firebase... Also I'm looking into WebGL for some animations (explosions etc) probably it could help performance in your case as well.
- gloomyson 11y agoVery glad to hear that; for dojo, functions in dojo/_base/lang and require.js attract me; and can you share your github URL then i can also watch your project? PS: Are you afraid if game company accuse you pirating their assets? Their words make me nervous
- MasterScrat 11y agoI have not yet published the code publicly but I plan on doing it soon. With Mootools I like the classical inheritance style. Something else that looks interesting is TypeScript, when you reach ~10k lines of codes pure javascript gets really tricky to debug/refactor. Yes I am worried about company reaction, I wouldnt publish game assets on a public repo. What I am considering is publishing my game engine along with the scripts I use to process the game resources into suitable web formats.
- galenko 11y agoThis is awesome, but as others have said, the Blizzard legal team will come knocking on your door very soon. If I were you and if you're serious about continuing working on this, I would take this down immediately, get in touch with their legal team and see if you can work something out with them to get their blessing on this. They're not evil, it's their job to protect copyrighted assets, without them Blizzard would be out of pocket and SC2 might not have been created, from my experience, there are some really friendly people there, but you have to get on their good side and I'd say you've already gone about this the wrong way (by githubbing their copyrighted stuff).
- gloomyson 11y agoI made this game because i love Blizzard and their game, i'll be very sad if they accuse me, now i'm not feeling good...
- moonshinefe 11y agoThis is great work and you should feel good about it. I've never seen Blizzard pursue a massive lawsuit on an individual without giving them a chance / warning first to take things down.
- gloomyson 11y agoI made this game because i love Blizzard and their game, i'll be very sad if they accuse me, now i'm not feeling good...
- gloomyson 11y agoI made this game because i love Blizzard and their game, i'll be very sad if they accuse me, now i'm not feeling good...
- SXX 11y agoPretty sure contacting Blizzard legal team would be dumbest thing ever because you'll never get an answer or just get youself in trouble. Best solution is to remove current repository (or make it private) and then create new repo without copyrighted stuff.
- vegancap 11y agoAmazing work! Red Alert next??
- gloomyson 11y agoTo replace sprite images and sounds in my game will easily change it to another RTS like Red Alert, but i'm nervous about the copyright now, I just want to produce my own game for fun so if I make RedAlert, will not upload to github again
- kzrdude 11y agoYou don't need to be nervous. Blizzard asking you to take down your copy of their assets is inevitable. No need to sweat it more than that, it's a fact of life. Here's something interesting, an open source Warcraft II style engine https://en.wikipedia.org/wiki/Stratagus https://en.wikipedia.org/wiki/Stratagus You'll have to adapt the same strategy as they do, or any other engine remake: Host and share your engine, require the user to themselves supply the original game installation. That way your project is just a mod. Another example of a great engine remake is "RttR" http://www.siedler25.org/ http://www.siedler25.org/ a remake of the Settlers II engine. They require a separate installation of the original game to play.
- ponytech 11y agoSee also https://www.openttd.org https://www.openttd.org a remake of Transport Tycoon Deluxe.
- Mchl 11y agoWhich over the years and thanks to a massive effort of contributors have managed to create its own set of graphical and sound assets and is now a stand-alone game. (Still some copyright issues remain)
- SXX 11y ago> That way your project is just a mod. Little correction needed. "Mod" usually mean derivative work of original game, but open source engine projects are not derivative work. So it's just an engine that have nothing to do with original game or it's copyright holder.
- jpatokal 11y agoAnybody got this running without downloading the whole lot and hosting it locally? http://htmlpreview.github.io/?https://github.com/gloomyson/StarCraft/blob/master/index.html http://htmlpreview.github.io/?https://github.com/gloomyson/S... loads up to the splash screen but no further.
- kaoD 11y agoWorked for me whitelisting the site in Disconnect.
- thomasahle 11y agoAmazing work! I put this in full screen, and at times, playing the 'Protect Athena' level, I even forgot it wasn't the real thing. Must have taken you a lot of tuning :)
- gloomyson 11y agoI suggest you use cheat code "full recovery" or "power overwhelming" or "the gathering", or finish this level is mission impossible
- hitekker 11y agoFor those wishing to play without downloading: Open http://htmlpreview.github.io/?https://github.com/gloomyson/StarCraft/blob/master/index.html http://htmlpreview.github.io/?https://github.com/gloomyson/S... in FF (or Chrome without its security stuff on)
- deleted 11y ago[deleted]
- niutech 11y agoThanks for promoting my project ;) I hope it will serve you well.
- mentos 11y agoAre there any Html5 game frameworks that this could/should have been built on top of? I feel like there are a bunch of games that could be made with an html5 client...
- S4M 11y agoIs it just me, or it's the "gather" function to mine resources is not working? Really nice apart from that.
- gloomyson 11y agoThe "gather" function is just not added into game by now, the code is not done, you can use cheat "show me the money" to easily get resources as much as you want.
- songgao 11y agoEven the cheat codes still work!
- gloomyson 11y agoYes, to check cheat code list, you can check cheat.js by itself, they're all listed in switch~case expression
- hvidevold 11y agoGood job gloomyson! I've been working on HTML5 version of Starcraft 2, see https://www.youtube.com/watch?v=PoPNrz2LUG0 https://www.youtube.com/watch?v=PoPNrz2LUG0 , https://www.youtube.com/watch?v=EvhUteDp3o8 https://www.youtube.com/watch?v=EvhUteDp3o8 , and source is at https://github.com/emnh/rts https://github.com/emnh/rts . Only free assets are included in github repository submodule, same separation strategy as Stratagus.
- j_s 11y agoCheck out the StarCraft AI competition if you need some ideas: https://news.ycombinator.com/item?id=8884694 https://news.ycombinator.com/item?id=8884694
- Plishar 11y agoI make games all the time for myself, sometimes using copyright protected images. But I can't share the source code or publish the game in Google Play if I do that. If I want to share or publish, I have to use free stuff or make it myself. If I want to use copyright material and publish it, I need permission and a contract with the owner of the IP, a license or agreement of some sort to use their stuff. All this applies to everyone, not just the US, if you want to do business. If it's just for fun that's fine but you can't distribute it in anyway, including github.
- jlebrech 11y agoI would commit a change that removes the assets and see what pull request you get. or even better i'd make it load assets from a theme then anyone can theme it.
- Mizza 11y agoCool. Anybody looking for an HTML5 Startcraft-esque multiplayer game might want to check out http://littlewargame.com http://littlewargame.com
- xytop 11y agoPlay it online here: http://shvelo.github.io/StarCraft/ http://shvelo.github.io/StarCraft/ (fork with gh-pages added)
- david_p1 11y agoWell nice game, few days ago I found something very interesting, html5 game that is a combination of starcraft and clash of clans, with much better graphic and real time AI, but the game doesn't seems to be ready yet... http://ageofsalvation.com/ http://ageofsalvation.com/ It is the most advanced html5 game I have seen though.