ZFGC

Projects => Discussion => Topic started by: Heartless on January 15, 2016, 09:20:31 am

Title: Build a Zelda fangame with HTML5 + Javascript
Post by: Heartless on January 15, 2016, 09:20:31 am
I'm interested in creating a zelda game with HTML5 and Javascript. Seems like a capable platform to me plus it can be played on Android and iOS devices. Are there limitations or things to look out for?


Update: Started experimenting with the Phaser engine.
(http://i.imgur.com/BLgad9Am.png)
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: LorentzChronon on January 15, 2016, 03:26:10 pm
It's definitely possible, but on mobile you definitely have to make sure you consider how the player will control the protagonist.
I can suggest phaser as a web framework for making games, it a good free one: http://phaser.io/
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: Heartless on January 15, 2016, 05:46:23 pm
It's definitely possible, but on mobile you definitely have to make sure you consider how the player will control the protagonist.
I can suggest phaser as a web framework for making games, it a good free one: http://phaser.io/
I was thinking of remaking the first zelda game(not much buttons needed. ;)) but in a different style. And I was already experimenting with phaser, it's indeed a good and free engine.
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: Heartless on January 17, 2016, 01:51:47 pm
It's definitely possible, but on mobile you definitely have to make sure you consider how the player will control the protagonist.
I can suggest phaser as a web framework for making games, it a good free one: http://phaser.io/
(http://i.imgur.com/BLgad9Am.png)
I got the movement done and the shield is a separate object, I'm about to add Link's sword. I would love to divide all the code in different Javascript files, instead of having all the code in 1 Javascript file. Do you have experience with this? (while using Phaser)
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: LorentzChronon on January 17, 2016, 06:59:20 pm
It's definitely possible, but on mobile you definitely have to make sure you consider how the player will control the protagonist.
I can suggest phaser as a web framework for making games, it a good free one: http://phaser.io/
(http://i.imgur.com/BLgad9Am.png)
I got the movement done and the shield is a separate object, I'm about to add Link's sword. I would love to divide all the code in different Javascript files, instead of having all the code in 1 Javascript file. Do you have experience with this? (while using Phaser)
I have not personally used phaser for a complete project yet, but yes it is very possible to organize the code into different files. Using vanilla JS you could create global objects, or if you don't like globals (like me) you could look into using angularjs or requirejs for handling separately organized components. One example of an article using angular+phaser is the following: http://www.ng-newsletter.com/posts/building-games-with-angular.html
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: Heartless on January 18, 2016, 02:02:15 pm
It's definitely possible, but on mobile you definitely have to make sure you consider how the player will control the protagonist.
I can suggest phaser as a web framework for making games, it a good free one: http://phaser.io/
(http://i.imgur.com/BLgad9Am.png)
I got the movement done and the shield is a separate object, I'm about to add Link's sword. I would love to divide all the code in different Javascript files, instead of having all the code in 1 Javascript file. Do you have experience with this? (while using Phaser)
I have not personally used phaser for a complete project yet, but yes it is very possible to organize the code into different files. Using vanilla JS you could create global objects, or if you don't like globals (like me) you could look into using angularjs or requirejs for handling separately organized components. One example of an article using angular+phaser is the following: http://www.ng-newsletter.com/posts/building-games-with-angular.html
Thanks! I will definitely take a close look to angular. :)
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: Starforsaken101 on January 18, 2016, 06:29:42 pm
It doesn't matter if you have barely any controls - you still have to figure out how it's going to work on mobile. Are you going to put a joystick and buttons on the screen? If so, how are you going to adapt the world to not be completely covered by said controls, since you can't make the controls too small on the screen?
Title: Re: Build a Zelda fangame with HTML5 + Javascript
Post by: MaJoRa on January 27, 2016, 10:56:41 am
It's more than possible with Phaser. It's what I'm using for my GetToGohma engine right now. I'm using that combined with Electron to make it a cross platform desktop application (which I'd advise).

You do need to consider mobiles if you are going to have this on a website instead of as an app. On screen buttons work for the most part, however you might find that you are better off creating intuitive touch screen controls for the movement. I've found this to be tediously difficult though.

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved