Learn how to make a clip react to the direction keys on the keyboard.
Full code
http://pastebin.bjetdesign.com/index.php?q=143
Doofle Jump Beta… (will only be up for a short amount of time)
Please leave a comment
Something I have been working on recently, a simple particle engine in Actionscript 3
Will be releasing source code soon
Just released version 3 of the Font Controller Wordpress plug-in. Its nice to say that its had over 700 downloads to date
Version 3 has added widget support and an admin control panel. you can now disable the font controller in areas of the page.
Thanks to ‘Benjamin Jancewicz’ for the suggestions for this update (Themes are planned for the next release)
Font controller is a Wordpress plugin that adds a small font size controller into the footer of your blog.
This elegant little Wordpress plugin works with any theme
” Font-Controller places a small font size controller in the footer of your blog, it has three options, increase, decrease and reset. It is based on the Font-Controller jQuery plugin “
You can download the plugin from the Wordpress plugin directory (http://wordpress.org/extend/plugins/font-controller/)
Here is an example of the controller
A while ago i was working on a project in vb that required the use of the webcam. After some research i found that to do this i would have to make some win32 API calls. Additionally i came across this handy class for interfacing with the webcam (http://www.vbforums.com/showthread.php?p=2048466) .
So, all good. Well, not quite the webcam class that i obtained did not include a very good way of grabbing the webcam’s frame. It did have one but it was captured basically by taking a screen capture. I decided to improve on this class and add a function that allows the webcam to be accessed without having to have the application maximized.
So, here it is http://pastebin.bjetdesign.com/index.php?q=104 (to view it)
Or download it here
A handy webcam interface class with a added getBitmap function
Here’s a program i created that uses this class, its a webcam tracking program
Photoshop brushes, pure gold to any Photoshop user, here i have compiled a list of what i think are the best few.
- Kinetic Brushes – Grunge Abstract Brush Pack (Amazing quality grunge brushes)
- Real Smoke – Photoshop Brushes (High quality and so many! )
- Euphoria Brushes (Truly stunning vector brush set)
- Beser Brushes (A nice set of smooth brushes)
- Ecol Brushes (Another set of smooth brushes)
Sharing code around on the internet can be a pain sometimes. Social networking sites have limits on post size, not all forums support the same language tags, making code accessible to everyone can be a problem.
Sometimes a nice, neat and tidy URL for your code can do wonders.
With this in mind I created pastebin, it allows you to post you code, select the language and then get a nice little URL for it…
Try it at pastebin.bjetdesign.com
it even has twitter support to!
Here are some backgrounds I made in Photoshop CS4…
Enjoy!
(all of the backgrounds are 1280X800)
First post on my blog… YAY…
So, what have i got for you, well its a jQuery plugin, Font Controller allows you to add a little font changer widget to your site…
So, how do we use it, firstly if you haven’t done so already go down to the jQuery website and download the latest copy of jQuery, since this is a plugin we will be needing that first.
Using the plugin is simple, first we must import jQuery into our html… this is done like this…
<script src="pathtojquery/jquery.min.js" type="text/javascript"></script>
Thats the first step done, now where are going to have to import the font controller jJQuery plugin. You can download this plugin from the jQuery plugins website… or just click here Now that we have to plugin… great, we can move on. The next step is to include the jQuery plugin in the html… this is done like so…
<script src="pathtoplugin/jquery.fontsize.js" type="text/javascript"></script>
so now so far we should have something like this…
<html > <head> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.fontsize.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Page</title> </head> <body> </body> </html>
Note that the jQuery library is included before the plugin, this is essential as the plugin requires jQuery to work… its dependent on it.
Right, the next step. The plugin works by transforming an element into the font controller, the controller then gives the user control over the desired font size.
What we need to do is to add a div element (this doesn’t have to be a div element but it makes good sense for it to be one)
<div id="fontholder" align="centre"></div>
Now, we have the font holder div all set up all there is left to do is to add the JavaScript that makes all the magic happen.
$(function(){
$("#fontholder").fontsizemanager();
});
… and wallah, the magic happens.. simple hu?
But for those of you who are still trailing behind a bit, or just scrolled to the bottom in desperate hope of having a full code for you to copy over… here it is! or visit the demo page here…
<html >
<head>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.fontsize.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Page</title>
<script type="text/javascript">
$(function(){
$("#fontholder").fontsizemanager();
});
</script>
</head>
<body>
<div id="fontholder" align="centre"></div>
</body>
</html>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html xmlns=”http://www.w3.org/1999/xhtml”><head><script type=”text/javascript” src=”js/jquery.fontsize.js”></script><script type=”text/javascript” src=”js/markitup/jquery.markitup.pack.js”></script><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /><title>Untitled Document</title></head><body></body></html<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html xmlns=”http://www.w3.org/1999/xhtml”><head><script type=”text/javascript” src=”js/jquery.fontsize.js”></script><script type=”text/javascript” src=”js/markitup/jquery.markitup.pack.js”></script><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /><title>Untitled Document</title></head><body></body></html>









