background preloader

TUTORIALS

Facebook Twitter

HTML5 Game Development: Using sprite sheets for better performance (and protecting your server) When I started developing the HTML5 version of Command and Conquer, I never expected more than a few close friends to look at the game. (Based on the experience with my last game, Breakout). So while I spent a lot of time making the game look as close to the original Command and Conquer as possible, I never spent much time optimizing the code. Most of my development and testing was on my own Macbook, and I didn’t pay attention to the image loading time or network traffic. Unfortunately, this game uses a lot of images. Each unit can face 32 different directions.

Buildings need a whole set of images for each state – under construction, regular – with different sets of images for healthy and damaged buildings, and for any additional states (like ‘unloading a harvester’). As a result, when the game loaded, it made nearly 1,000 HTTP requests to load all the assets (including images and sounds). Sprite sheets store all the sprites for an object in a single large image file. Moral of the story? Command and Conquer – Programming an RTS game in HTML5 and Javascript.

ANNOUNCEMENT: My Book, Pro HTML5 Games is out!!!

Command and Conquer – Programming an RTS game in HTML5 and Javascript

A lot of people have been asking me for details on how I built the HTML5 version of Command and Conquer. Based on my experience developing this game, I have just written a book showing readers how to build a complete RTS game in HTML5. My book, Pro HTML5 Games takes readers through the process of building two complete games – a Box2D Engine based Angry Birds clone and a realtime strategy (RTS) game with multiplayer support. This book is now available for purchase at Amazon (Pro HTML5 Games on Amazon), Barnes & Nobles (Pro HTML5 Games on Barnes & Noble) as well as the Apress Site (Pro HTML5 Games on Apress). If you are interested in building professional looking HTML5 games, you should check the book out.

Apple aprueba dos juegos hechos en Javascript que no necesitan el navegador para ejecutarse. Crafty.js workshop. HTML5 Game Dev Tutorials. iOS 7.1 - minimal-ui is anything but minimal for HTML5 game developers Posted 15:16PM on March 20 2014 by Pascal Rettig This is a guest post from Odobo CTO Peter Mareš.

HTML5 Game Dev Tutorials

As the developer program for real-money gaming, we assess the impact that any new software update is likely to have on our developer community. The positive news with iOS 7.1 is that this version presents a great opportunity for all HTML5 game developers and full screen app producers. The most exciting addition is a modification to how Safari handles web apps: it makes development easier, improves the look of games and enhances the player experience.

In this article, we cover some iOS 7.0 history, prior solutions, and the future ahead with 7.1. iOS 7.0 Safari: a brief history In iOS 7.0, Mobile Safari hid the address bar and changed the behaviour of both full-screen browsing and full-screen mode. HTML5 as a gaming platform. Hype The Markup Language HTML5 is the new shiny thing, and there's a lot of evangelism going on about it.

HTML5 as a gaming platform

The improvement process is rapid (too much so? That's another blog post), and browser vendors are trying to get the game makers in bed with them, some with means of money, some with fame. The web is evolving, so is the documentation of related technologies, but it's hard to keep up with everything that's going on, and developer tools for JS are still a bit in their infancy. However, HTML5 games keep popping out like mushrooms on rain. Sublime Text 2 Tips and Tricks (Updated) Sublime Text 2 is one of the fastest and most incredible code editors to be released in a long time!

Sublime Text 2 Tips and Tricks (Updated)

With a community and plugin ecosystem as passionate as this one, it just might be impossible for any other editor to catch up. I'll show you my favorite tips and tricks today. Sublime Text 2 is currently available for all major platforms: OS X, Linux and Windows. 1 - Bleeding Edge Versions Sublime is in active development. Download a dev build of Sublime 2 here. 2 - Get a Better Icon Update: here is a better icon. In its defense, Sublime Text 2 is still in a beta state.

To integrate it, you need to replace the existing "Sublime Text 2.icns" file with this new one. Please take note of the fact that, if you're using the frequently updated development version of Sublime Text, with each update, the icon will be removed. 3 - Access the Command Palette Similar to TextMate, we can use Sublime's command palette by accessing the Tools menu, or by pressing Shift + Command + P, on the Mac. 8 - Alignment.

PixelFonts · starmelt/craftyjstut Wiki. Important Note: There is a separate github repository for the SpriteText component: If you want to use SpriteText for your projects, make sure you you take it from there, as I will not merge enhancements/updates/bugfixes from there back into the tutorial version.

PixelFonts · starmelt/craftyjstut Wiki

The tutorial version is meant to explain the basic idea and should remain simple. PixelFonts There are some very nice looking Pixel Fonts out there, coming from the Amiga or Atari demo scenes, for example. So how about using them in your Crafty game? What are PixelFonts PixelFonts are basically Sprites for letters. Create super-efficient SVG characters with localStorage.

Create a mobile version of Snake with HTML5 canvas and JavaScript.