Menu icon Foundation
Using Foundation for an HTML5 game

Hi all,

I've used foundation with success in the past to do standard websites, but I am venturing in to new territory and would like some advice with respect to making a responsive site for an HTML5 game. I am already making heavy use of AngularJS in the game.

It's a 2d HTML5 game which mainly uses a series of absolute positioned elements layered on top of each another with alpha compositing. At the moment there are three large canvases for the terrain, items and fog-of war, and several small canvas for each mobile (players and npcs) making up the main game area. The map can scroll in any direction, and can theoretically be any size, although only the visible map is drawn to the canvases.

Additional to the main game area there is an inventory management system, a mini-map (another canvas), and a chat window.

When playing the game in a standard desktop configuration I would expect all the components to be present, and if the user were to expand the window more of the map would be visible rather than the map appearing larger.

When playing on a mobile device with a small screen I would like to have the main game area take up 100% of the screen and have the other components enter as off-screen canvases in response to a swipe gesture.

In either case I would expect the screen to have neither horizontal nor vertical scrollbars, and zooming in should be disabled.

I have prototyped this in JS+CSS without Foundation and it runs in at about 600 lines of very ugly fragile code, which works well about 90% of the time. I'd like to move to foundation as I'd like to make good use off-canvas menus for the components, tabs for the inventory menus, and probably other various parts. I would likely use visibility classes for arranging the game components.

My question is, does this make sense for me to use Foundation for this at all or should I just abandon the idea and invest my time into refactoring the prototype.

canvasAngularJShtml5game

Hi all,

I've used foundation with success in the past to do standard websites, but I am venturing in to new territory and would like some advice with respect to making a responsive site for an HTML5 game. I am already making heavy use of AngularJS in the game.

It's a 2d HTML5 game which mainly uses a series of absolute positioned elements layered on top of each another with alpha compositing. At the moment there are three large canvases for the terrain, items and fog-of war, and several small canvas for each mobile (players and npcs) making up the main game area. The map can scroll in any direction, and can theoretically be any size, although only the visible map is drawn to the canvases.

Additional to the main game area there is an inventory management system, a mini-map (another canvas), and a chat window.

When playing the game in a standard desktop configuration I would expect all the components to be present, and if the user were to expand the window more of the map would be visible rather than the map appearing larger.

When playing on a mobile device with a small screen I would like to have the main game area take up 100% of the screen and have the other components enter as off-screen canvases in response to a swipe gesture.

In either case I would expect the screen to have neither horizontal nor vertical scrollbars, and zooming in should be disabled.

I have prototyped this in JS+CSS without Foundation and it runs in at about 600 lines of very ugly fragile code, which works well about 90% of the time. I'd like to move to foundation as I'd like to make good use off-canvas menus for the components, tabs for the inventory menus, and probably other various parts. I would likely use visibility classes for arranging the game components.

My question is, does this make sense for me to use Foundation for this at all or should I just abandon the idea and invest my time into refactoring the prototype.

Sara Martínez over 2 years ago

I use some websites with games HTML5 and are very interesting.

This article is such a nice and interesting one, I'm very satisfied with the provided contents. I hope more excellent articles would be posted in your website.

http://www.juegosfriv2017.link/

Thank you so much for this and keep sharing.

 

Molly Jordan about 2 years ago

Nice post

victoriakeating about 2 years ago

 

The whole Windows Juggernaut as saw by the overall population isn't situated truly, however just what they see and find out about, which can be exaggerated by Hollywood sorts into anything, including this brilliant, do-it-all without a care on the planet enchantment box.

sidd about 2 years ago

So thanks for the game is gta 5 free money  the good gta 5 money online game.

Giorgi Navas about 2 years ago
Ala Tores almost 2 years ago

The most harmful threat of online Y8 games is nothing more than a game addiction. Dependence is a disease. This is something even similar to alcoholism, smoking and drug addiction. Such diseases require medical care, long rehabilitation and support for a loved one.

Those trapped in a network of such traps become prisoners of their own ailment. Initially, everything seems quite harmless: just an option to rest and distract from problems. But not for long, in order to wallow in this marsh forever. Dependence on computer games is a serious matter. Igroman does not need more in the real world, there is no desire to break off into sleep, food and even personal hygiene. The colors of the environment fade away. I want to plow the unexplored expanses, forgetting about family and worldly problems. This is fatal for people of any age.

herbalwalatra over 1 year ago

The right solution for treating tonsils of tonsils, as well as eradicating viruses and bacteria that cause tonsillitis. 100% Safe Without Side Effects. click  obat herbal amandel
obat herbal amandel bengkak
obat amandel paling ampuh

Ala Tores over 1 year ago

"Mobile games will someday beat other segments of online games due to the availability and prevalence of smartphones," says Gevorg Hakobyan. So, in the market smart phones specially for games are already developed. For example, the American startup Wonder plans to release a "hybrid of a powerful smartphone and game console." http://www.y7gamer.com/

 

The investors of the project are Grishin Robotics Foundation Chairman of the Board of Directors and co-founder of Mail.Ru Group Dmitry Grishin, Chinese electronics corporation TCL (produces smartphones under the brand Alcatel), footballer Gerard Piquet, singer Shakira and other investors. Plans for the release of a powerful 10-core gaming smartphone were also in the Taiwanese company Acer. http://www.y8games.center/ 

 

"The development of the hardware capabilities of mobile devices gives developers more and more opportunities for experiments. The success of games like Pokemon Go, Minecraft: Pocket Edition and War Robots, shows that in the next few years more genres will appear on the mobile market, some of which were previously claimed only on desktops or consoles, "says Vasily Maguryan. http://iogames.center/ 

 

 

 

The development of the online computer games market primarily affects the expansion of the PC user base, which positively affects the industry, says Acer's CEO in Russia Dmitry Kravchenko. http://www.girlsgogamess.org/

According to him, on gaming laptops in Russia already now account for about 10% in pieces and 20% in money from laptop sales in general, and this share is growing. "Among gamers there are many who want to play with a good picture and without delays, so they buy specialized gaming desktops and laptops," says Kravchenko. http://www.friver.org/

The growth of the online games market definitely has a positive impact on the development and promotion of e-sports, says Nikita Bokarev, head of the media management department at the ESforce holding company. http://www.frivcom4.com/

"With the growth that mobile games have shown over the past few years, we can expect a significant expansion in the number of mobile games presented in e-sports, as well as in the quantity and quality of competitions conducted according to these games," says Bokarev. http://www.friv3-games.com/

Despite the fact that the dynamics of revenue growth from mobile games is great, 9% growth for the entire online games market is not a very impressive result.  http://www.y9gamer.com/

"In addition to obvious economic factors, market growth is hampered by the fact that during a year no product appeared that would become a leader in an already existing niche or create a new one," said Gevorg Hakobyan. - In addition, the revenue from the most popular client and mobile games is gradually falling - this is inevitable. Players lose interest and switch to new projects. "

 

novemberrain over 1 year ago

All nice shares ! 

thanks ! phòng khám đa khoa đại đông

Alix55 over 1 year ago

http://www.al3absporta.com/, This is my website i use script on wordpress and HTML5 too. I will apply all my games on HTML5 soon good luck.

Michael Lee over 1 year ago

Not all Windows Juggernauts do not see the crowds true, but what they see and discover, buy research papers online Hollywood can cancel objects, including spectacular plant protection. 

ritycovo over 1 year ago

Friv Games: Solve fun puzzles, build a business empire, and go to war in one of our many free, online Friv games on http://www.kizifan.com/ ! Pick A Free Game, and Have Fun!

firmax3lagi over 1 year ago

In either case I would expect the screen to have neither horizontal nor vertical scrollbars, and zooming in should be disabled - kem firmax3 - firmax3 giá bao nhiêu