Welcome
This is my DevBlog...Links
Ads
Raphaël – JavaScript library
Raphaël is a JavaScript library for creating SVG graphics.
Processing.js
In this post I am experimenting with adding javascript to a WordPress post to generate content.
Clock example from (and using) Processing.js
Publicerat i Uncategorized Lämna en kommentar
Call of Cthulhu survival horror game prototype
This is a prototype (or proof of concept) of a survival horror game. The source is heavily inspired by this excellent tutorial.
Enjoy!
This movie requires Flash Player 9
Move with the arrow keys, use the mouse to point the light and try to find the portal to the next level.
Syntax Highlighter Test
Test of the WordPress- plugin Syntax Highlighter.
Det här är Java:public class HelloWorld{ public static void main(String [] args) { System.out.println("Hello world!"); } }Det här är Actionscript:
package { import flash.display.DisplayObject; import flash.display.MovieClip; import flash.events.Event; import flash.events.ProgressEvent; import flash.utils.getDefinitionByName; /** * ... * @author JKW */ public class Preloader extends MovieClip { public function Preloader() { addEventListener(Event.ENTER_FRAME, checkFrame); loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); // show loader } private function progress(e:ProgressEvent):void { // update loader } private function checkFrame(e:Event):void { if (currentFrame == totalFrames) { removeEventListener(Event.ENTER_FRAME, checkFrame); startup(); } } private function startup():void { // hide loader stop(); loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress); var mainClass:Class = getDefinitionByName("Main") as Class; addChild(new mainClass() as DisplayObject); } } }
Publicerat i Uncategorized 2 Kommentarer
Bureau of Public Roads
A widely used volume delay function is the Bureau of Public Roads function from 1964. The function is given by the expression:
where π0 is the free-flow travel time, V is the traffic volume and the constant K is the road capacity.
This small flash prototype is coded in FlashDevelop using Open Flash Chart 2.
This movie requires Flash Player 9

