Feb 16, 2014ProgrammingComments (5)
If the user has scrolled the page that your canvas game is on, or used the browser zoom feature, it can mess up the accurate calculation of the mouse position. An easy solution is to use the getBoundingClientRect method of the canvas object. This returns a rectangle object that gives you the current offset of the canvas relative to the page.
Jan 31, 2014PC GamingComments (1)
This is my first JavaScript Canvas (HTML5) game. It's an endless shoot 'em up where the objective is to stay alive and rack up kills. The game starts off slow, but continually picks up speed. Eventually you will be overwhelmed.
Jan 13, 2014Programming
I was inspired by this blog post by Emanuele Feronato about making a sub-2KB Roguelike Flash game. Using his game as inspiration, I decided to try it out. I used BitmapData to display the game objects instead of TextField and ended up getting it down to 1649 bytes. The game rules are very similar, though it is programmed from scratch. The result is embedded below:
Dec 18, 2013PC GamingComments (21)
Many are receiving this error message when trying to start Just Cause 2 on their PC:
Not enough storage is available to complete this operation
The first solution is to make sure you have enough free storage space and memory (RAM), and close any programs you don't need open. This is often not the real solution to the problem though. The error message may be very misleading.
Not enough storage is available to complete this operation
The first solution is to make sure you have enough free storage space and memory (RAM), and close any programs you don't need open. This is often not the real solution to the problem though. The error message may be very misleading.
Sep 20, 2013MobileComments (5)
Launcher icon badge notifications are available in Samsung TouchWiz devices with Android Jelly Bean. They resemble the badge notifications in iOS. Social, messaging, and email apps can utilize this functionality to display a number showing how many new notifications there are.
Apr 17, 2013ProgrammingComments (1)
Recently I was curious about the performance (in terms of access and assignment time) between class static attributes, object attributes, and array elements. Say if you're wanting to store some information that is accessed regularly, and want to know which method is the fastest.
Apr 15, 2013PC Gaming
There are two ways to disable movies in XCOM. One is to edit the XcomEngine.ini file, which I have had mixed results with, and the other is to physically move the movie files, which I have had good luck with.
Mar 4, 2013Programming
Logging PHP errors and warnings is important on both your production and development servers. Often times these messages go unnoticed, even if you have display_errors on.
To start logging errors, open up your php.ini file. Scroll down to or search for the line that has the error_log variable. It will probably look like one of these:
To start logging errors, open up your php.ini file. Scroll down to or search for the line that has the error_log variable. It will probably look like one of these:
Oct 30, 2012Web and InternetComments (1)
YouTube stores several image thumbnails for every video. These are used for video previews and can be extracted and used elsewhere with one of several different web addresses (URLs).
In each of these web addresses, replace VIDEOID with the eleven character long YouTube video ID.
In each of these web addresses, replace VIDEOID with the eleven character long YouTube video ID.
Oct 30, 2012Web and InternetComments (2)
Note: YouTube has officially done away with this "feature" of YouTube. See the Twitter post explaining their change. The rest of the post will be kept for historical reasons.
----------------------------
The reason YouTube video views get stuck around 301 views has been explained fairly well in this 9 minute YouTube video. In case you don't want to watch a video, here are the basic points:
When a video has less than or equal to 300 views, YouTube counts each view normally, with low validity checking. These videos are usually low-impact videos intended for small audiences like family and friends, so making sure views are legitimate isn't super important.
----------------------------
The reason YouTube video views get stuck around 301 views has been explained fairly well in this 9 minute YouTube video. In case you don't want to watch a video, here are the basic points:
When a video has less than or equal to 300 views, YouTube counts each view normally, with low validity checking. These videos are usually low-impact videos intended for small audiences like family and friends, so making sure views are legitimate isn't super important.
Oct 30, 2012Web and Internet
Installing Adblock Plus on the desktop Google Chrome browser only takes a few clicks. First, go to the Adblock Plus install page while in your Chrome web browser. You must be in Chrome and not Internet Explorer, Firefox, or any other browser.
Aug 3, 2012PC GamingComments (29)
Here is a list of basic Minecraft server commands that you should know to operate a Minecraft server. For a more complete list, see the Minecraft Wiki.
You can enter these commands directly into the server command prompt window or proceed them with a slash (/) in the chat window in-game (as long as you have operator permission).
You can enter these commands directly into the server command prompt window or proceed them with a slash (/) in the chat window in-game (as long as you have operator permission).
Aug 2, 2012Programming
With Flash version 10, Adobe added the Vector class, which is similar to an Array but more strict. Each Vector can only contain data of the same type and its data type must be declared during instantiation. I'm not going to go over the syntax to use Vectors in this post, but they are very similar to Arrays and have a lot of the same methods and properties.
Jul 17, 2012Programming
If you're unfamiliar with object pooling, it is a way to speed up processing time by keeping objects in memory and reusing them, instead of always instantiating new ones and garbage collecting them.
This example uses package and custom class syntax. If you are unfamiliar with these, see my introduction to package and classes post.
This example uses package and custom class syntax. If you are unfamiliar with these, see my introduction to package and classes post.