viso Posted February 5, 2017 Share Posted February 5, 2017 Latest version always here Play only with keyboard and mouse. Without a name or a proper design document i started to create an diablo clone in browser. I am working alone, i didn't use any framework but instead used scala.js which compiles to javascript. Its just a side project, working on this on weekends and nights (if i dont play something else haha ). Image assets are mostly from this guy http://opengameart.org/users/clint-bellanger Its probably not the typical html5 game Not 100% sure if i finish it (at least at some degree) but it will be for free anyway. I am planing to do a rich skill tree, no inventory, stats boost drops, skills acquired from boss enemies. The hero is a mage + necromancer. At this point its kind of playable but everything is in test state (one test enemy, one test npc, one test map ... ) let me know if you have performance problems ( if so, mention your OS and browser ) Also what do you think about the idea. Thx Viso. jpdev 1 Quote Link to comment Share on other sites More sharing options...
viso Posted February 6, 2017 Author Share Posted February 6, 2017 so i updated the map, has now stone walls, is also bigger, i can tell there are now more performance problems :/ you may still try diablo-forever.s3-website-us-east-1.amazonaws.com Quote Link to comment Share on other sites More sharing options...
Milton Posted February 6, 2017 Share Posted February 6, 2017 Impressive work. I don't understand the loading time though? PS. Thanks for pointing me to scala.js. Very interesting. Quote Link to comment Share on other sites More sharing options...
viso Posted February 6, 2017 Author Share Posted February 6, 2017 52 minutes ago, Milton said: Impressive work. I don't understand the loading time though? PS. Thanks for pointing me to scala.js. Very interesting. Hi, thx, the loading time has 2 parts, first its loading all the images that may be big. Second i am generating the map, lets say 100x100 that takes some time, while it has atleast 2 layers, the background and the artefacts (like trees and stones). There is actually more to it, i definitely need a progress bar yes scala.js is amazing, typesafe functional language makes thinks easier. Quote Link to comment Share on other sites More sharing options...
Milton Posted February 6, 2017 Share Posted February 6, 2017 There's something wrong though. It takes so long that Chrome asks me if I want to Kill the Tab. From what I see, it actually shouldn't take any time to load. Unless you have some amazing graphics loaded that aren't shown... Quote Link to comment Share on other sites More sharing options...
viso Posted February 6, 2017 Author Share Posted February 6, 2017 12 minutes ago, Milton said: There's something wrong though. It takes so long that Chrome asks me if I want to Kill the Tab. From what I see, it actually shouldn't take any time to load. Unless you have some amazing graphics loaded that aren't shown... damn, i need to look into that, i am trying to get all images into variables so that later i can have them on demand. Hm i checked, its mostly the map that is build that takes so much time (its not about the images really). There is some logic for example for the water, that takes some time, basically it depends on the water/grass positioning to determine what image should be selected, that takes some time also. Quote Link to comment Share on other sites More sharing options...
viso Posted February 6, 2017 Author Share Posted February 6, 2017 alright last update for the day (to me its 10:40 pm (in New Zealand)) i improved the performance in game, the game loop is now not calling the update for static artefacts (like 1200 trees/stones/walls ..), game plays now again smother http://diablo-forever.s3-website-us-east-1.amazonaws.com/ next is going to be the loading progress bar, just to see (for me also) what is taking time etc. Man i already feel tired to wake up for work tomorrow, See you, Viso. Quote Link to comment Share on other sites More sharing options...
viso Posted February 6, 2017 Author Share Posted February 6, 2017 alright i could not sleep and realized what is wrong in the algorithm, i made it very fast again i had places with O(n^3) algorithms but i could have it close to O(n) so i did that few seconds load is fine, don't need a progress bar again. http://diablo-forever.s3-website-us-east-1.amazonaws.com/ still s**t load of work to do. Quote Link to comment Share on other sites More sharing options...
Milton Posted February 6, 2017 Share Posted February 6, 2017 Much better Now get some sleep! Quote Link to comment Share on other sites More sharing options...
viso Posted February 11, 2017 Author Share Posted February 11, 2017 Hi all, i choose to remove the minotaur as an ally, i keep him in the game as enemy. I found some free assets here http://www.reinerstilesets.de/2d-grafiken/2d-monsters/ (search for lava troll) and use he lava troll as an ally that you can cast. The problem is it was not with transparent background (which i am solving in code) and its also not png but bmp (it would take more space 10MB, i changed it all to png with this tool http://www.xnview.com/en/xnconvert/#downloads) It was also harder to build the sprite collection, since i was using so far this guys images http://opengameart.org/users/clint-bellanger?page=2 and he had it always in one large png, so it was easier, the lava troll has like 500 individual images. Enough talk try it with the new golem (i will call him that instead of troll) http://diablo-forever.s3-website-us-east-1.amazonaws.com/ Hope the load time wont be too bad. I think the golem is too light for this game, guess i will make him darker soon. Maybe its not even a good choice at all. You can also find the old minotaur as an stronger enemy (at the bottom of the map with the zombie). I made also few fixes but they are not obvious. hmm i think i should make the sprite timeframe shorter (faster image change), looks so slow when they die. Quote Link to comment Share on other sites More sharing options...
viso Posted February 12, 2017 Author Share Posted February 12, 2017 i bought a real domain http://diablo-forever.com added monsters so its now actually somewhat a game, there is not much to it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.