Skip to main content

Posts

SVG as level description file

If you ever wanted to use svg as a level editor for your HTML5 games.. here is the basic code you can use. Obviously you have to make sure that your svg file is using only rects instead of any other type if you want to use this code as is.. But its' a good basic start for getting you started. I've used the color of the rects in svg to determine how it behaves in game.. you could offload it to the editor (i.e inkscape in my case) to add properties to the rects which can be read and used to determine properties. $.get("drawing.svg", function(res){                 //loading the data from an svg file.                 blocks = [];                 user = null;                 ball = null;                 var $layer = $(res).find('g').first();             ...

ramblings about android apps

i got a galaxy nexus recently and as you can imagine i was very excited and began downloading a the popular games most of them behaved fine but there were some apps and games which had services eunning in rhe background even though the app was killed.i had to go to the settings and stop them. i wouldnt bother too much if the battery wasnt effected but from what i have seen it does. i wonder why the developers would so thia on a phone app. i prefer the apps that update when i ask them to. i really hope people stop doing this service atarting frenzy in their apps.

SpaceGame 48-hr GameJAM

I've participated in my first 48hr gamejam. I've technically spent a lot less time but i've managed to get a prototype up and running and im' pretty happy with the way it turned out. I would have liked to add more things but time is running out so i had to cut corners. Here are the things i wanted to accomplish: 1) Bring out the tangential learning about Gravitation. 2) Make use of the gravity (since it's a space theme). 3) Wanted to do something different with the art. The concept came pretty quickly once i just drew up a mock up screen.. The rest of it was to get the mechanics right.. I used the CAAT engine so i can focus on the game itself, and bother less about the rendering. Which did help, but i also had to spend time looking around the documentation to figure out if there was a better way of doing something i would have just coded straight.. but it did payoff.. I got a playable prototype very soon. I tried to get some artwork done with inkscape base...

Online Leaderboards

Iv'e been on a look out for easy to use online leaderboard services for a while now. Scoreoid.net is the latest one i came across. The best feature of using this service?.... you can use it through absolutely any platform.. and they have good documentation for all the important things http://wiki.scoreoid.net/ . I've been working on a lot of html5/javascript based games. I could have used any of the standard javascript libraries to use the scoreoid service (since it uses the cgi based implementation) but i didn't want to bring in a whole library for just a simple ajax request. So i wrote a simple javascript function to make it easy to use the service.. Following is the code for the function. And assuming most people use JSON for response type while in js realm i've forced the function to use JSON. Using it is just making a function call and you should provide callback to handle the returned json object. You can know the details of what to send as parameters t...

Side Scrolling RTS

A Couple of years ago one of my friends asked if it would be nice / possible to implement a 2D RTS game as a course project. I thought that was a cool idea. but never got around to finding what happened. Why am i talking about this now?.. well ive' come across the swords and soldiers game and its' just like that. I've not played it but it sure does look good. I loved the art style and the animations so much. I wanted to try and design something similar just as an exercise.. but i needed some concept art to start off.. so i worked on making some concept art for it.. im' not sure if ill' ever get around to making the actual game.. but am sure excited about making a simple rts for the experimental gameplay project "Economy" theme.. rough design for characters

Color World (in progress)

Work in Progress It's true what they say about how 80% of the work gets done in 20% of the time and the rest is spent trying to get the project done. I had a prototype of a simple puzzle game over a weekend. Then i just left it in the dark. I really liked this game because it was born out of my love for "tripple town" a simple but addictive game. I realized this was quite similar to another game i wrote SQUARED   for the mozilla game dev contest. At the time i was really happy with the "art style" but now not so much.. but i did still enjoy the gameplay. With some tweaks it could be a fun game on the "touch enabled" devices. I've been working on and off this weekend on getting one of my prototypes to a presentable state.. here is a comparison.. Prototype in game Screenshot Ive spent a lot of time today trying to find the right service for getting the leaderboard up. I was using playtomic.com but with my perceived notion of their un-availa...

Download onClick

Ajax requests to server are always expected to return text output and for some reason the Content-disposition: attachment; doesn't cause the browser to show the save dialog. I searched for a while and found a jquery plugin which does it but i kept looking anyway. One interesting solution was to include an iframe in the page and set its' location to the url which would download the file when that didn't work i just used the var url = "cgi-bin/getreffile.py?" + $.params({qo:"LDS", sv:["dk", "df"]}); window.location = url And surprisingly this worked well atleast on the browsers that i checked with.. (chrome, ff ).