<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d13405220\x26blogName\x3dPavan+Podila\x27s+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://pavanpodila.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://pavanpodila.blogspot.com/\x26vt\x3d7258010184004836690', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Friday, February 24, 2006

Polarium Clone v1.0

I think I finally have a functional Polarium clone. The changes since the last build include:
  1. Error handling for invalid level-files
  2. Enabling/Disabling of buttons (Clear, Level)
  3. Polished UI - removed the title bar and replaced with a custom one, changed some graphics
  4. Added a help button on the titlebar, clicking on which takes you to the Polarium Wiki page. This is useful for people who haven't played Polarium before. It will help them learn the rules.
  5. Created 5 stock levels. They are all .pl files in the /Levels folder.
Screenshots:

1. Main window

2. Loading an invalid file


I guess it is now time to sanitize the code!

Update: You can now play this game by downloading the Source and Binaries!