I have ported an actionscript Matrix3D example from Bit-101 blog to C#.
MatrixStuffExample |
![]() |
The code:
I have ported an actionscript Matrix3D example from Bit-101 blog to C#.
MatrixStuffExample |
![]() |
The code:
You are in the command of a machine gun tower and you are raided by mad sheep and enemy warriors. Your mission is to shoot them down.
Instructions: Aim at the enemy unit and hold down the mouse until the unit is terminated by gunfire.
Game published on Nonoba.
Game published on Multigames.
Game published on Newgrounds.
View older blog post or video post..
A month has passed and $0.20 money has been made. I published this project to try this new trend to monetize your flash game I’ve read about on Emanuel’s blog. My idea is simple – use c# (view source) for coding, translate the project to a actionscript equivalent via jsc and draw yourself some graphics for the game. So far so good. I am now a member of GameBalance, MochiAds and Newsground where you can even visit my profile.
You are in the command of a machine gun tower and you are raided by mad sheep and enemy warriors. Your mission is to shoot them down.
Instructions: Aim at the enemy unit and hold down the mouse until the unit is terminated by gunfire.
You can see the stats for MochiAds and Newsground below:
What do you think I should add as a next feature? I’ve already read some of the suggestions and am considering adding them.
Visit older blog post here.
Update: Game published on Nonoba. View my profile.
Update: Game published on Multigames. View my profile.
This example demostrates how would an isometric javascript game look like in your browser. You can see landscape from Transport Tycoon and the characters are from Wolfenstein 3D and Doom.
| ThreeDStuff[/source] | ![]() |
Update:
The map is now a little bit larger, you can drag the map around. The dudes can now be selected and ordered to move.
Updated version. And the menu for developers like me. There is also a poll in the openttd forums.
Update: Mentioned by Ondra.
| ConsoleWorm | ![]() |
Designed to work with AmiNET110 on your TV.
Pause – P on keyboard or Pause on remote control
Change Zoom Level – Page Up or Down
Enter – To add new apples or respawn
Arrows – Change Direction
New example added.
Demonstrates scrolling, zoomable, draggable text and xml serialization support.
| TextScreenSaver | ![]() |
Two new examples to release – both are really not there yet. But you can see where the road is going to.
| VectorExample |
|
| FormsExample |
|
PS. There seems to be some issues with system colors – even deprecated in CSS3 ?
Here be dragons!
This weekend me and my girlfriend made some figures from plasticine. Other than that you can now also command a unit from wolf3d and doom. Wheee!
Maybe someday there will be a full blown RTS coming… who knows!:D
If you just happen to run a store with a few employees and work from clock to clock you need to maintain and create work schedules. Luckily for I have made such a project.
This Application lets you manage the workschedule of your workers. You can add or remove workers on the left, specify how many workers must be present at any given day at the bottom, which days are free days, when to come later and when to go earlier. It also calculates total workhours on the right. You can use your mousewheel or just click on the buttons.
This time it utilizes localization – based on a locals.xml document you can switch between languages.
Localizing your application is now as simple as this: “year”.Localize().
This ScriptApplication was tested with following browsers:
Safari 3.0.3
Opera 9.24
Netscape Navigator 9.0.0.1
FireFox 2.0.0.8
Internet Explorer 7.0
Long time no see. I still have ~8 months to serve in the army.
In the meanwhile visual studio 2008 beta 2 has been released. I have updated the ScriptCoreLib framework, but anonymous types are now not supported due to the internal changes (can be fixed tho).
Also no new binary downloads have been set up – svn has the latest source!
Everybody knows the duke nukem 3d. This time you can move him around your browser. See it for yourself! I am thinking of a free multiplayer RTS duke game. What you think?
Mousewheel works now with IE, FireFox and Safari. Did you know that each of them use separate event names?
Demo can be found here below.
| MouseWheel |
|
I have made two new examples. One will display differend qoutes like a typewriter and the other will utilize Google Gears client side database to store information about postcards.
| TextRotator 1, 2 |
![]() |
| Google Gears | ![]() |
This is the second part of my web link dump.
| 1. | DateInput | |
| 2. | Arkanoid | |
| 3. | Editor | |
| 4. | Controls | |
| 5. | Controls | |
| 6. | Fonts | |
| 7. | Controls | |
| 8. | Example Web | |
| 9. | Icon Paint | |
| 10. | Tween | |
| 11. | Maze | |
| 12. | Chess | |
| 13. | Example Portal | |
| 14. | Controls | |
| 15. | Controls | |
| 16. | Controls | |
| 17. | Controls | |
| 18. | TextEditor in Colors | |
| 19. | Java 4K | |
| 20. | Controls | |
| 21. | Lemmings | |
| 22. | Controls | |
| 23. | Menu | |
| 24. | Effects | |
| 25. | Desktop |
to be continued…
I have gathered a fair ammount of links, which represent all the goodies of the web today that i have bookmarked and I have decided to put them here on my blog. So here it goes.
| 1. | Control Timeline | |
| 2. | Controls | |
| 3. | Javascript SOAP | |
| 4. | DRAW | |
| 5. | GOD – The Story | |
| 6. | Slideshow | |
| 7. | Fancy menu | |
| 8. | Hive7 – Adventure | |
| 9. | Widg – Texteditor | |
| 10. | MIDI Ringtones | |
| 11. | Aflax – Flash via Javascript | |
| 12. | WebFX Controls | |
| 13. | Javascript 3d | |
| 14. | Javascript Effects | |
| 15. | Flash Warcraft | |
| 16. | Animator | |
| 17. | Flash Sound | |
| 18. | Animation 2 | |
| 19. | Animation 3 | |
| 20. | Controls | |
| 21. | Effects | |
| 22. | Colors | |
| 23. | DOM Tool | |
| 24. | WebChat | |
| 25. | Controls | |
| 26. | Controls | |
| 27. | Animation | |
| 28. | Window | |
| 29. | Paint | |
| 30. | Goodies | |
| 31. | Gallery | |
| 32. | SVG, VML, Canvas |
To be continued…
Yet another example is out of the door. Soon there will be a compiler and framework update, and initial windows forms support will be added. Thats right. You can then write a .net usercontrol that runs both on desktop and on html.
This new example demonstrates the use of custom cursors, map, area, timed animation, cookies and a custom dialog.
Today i found out that you actually can generate style rules on the fly
To demostrate what can be done with dynamic styles and png 24′s i have made the following example:
The example works with latest netscape, opera, firefox and ie7. (ie6 will probably crash)
Update:
These two examples have been ported to run on Windows Presentation Framework.
It took no less than 2 years and 2 months to do so
Here i present you the card games from the past. They were originally coded within c# at july 2006. Now they are included in the svn
| FreeCell |
|
| Spider (easy, medium, hard) |
|
It just occurred to me that jsc:javascript can benefit from the Active Desktop.
So I have decided to make a manual tutorial.
In this short tutorial I will add an active desktop item of the Space Invaders.
Step 1. Right-click on the desktop and select properties.
Step 2. Click the button ‘Costumize Desktop’ and select the tab ‘Web’.
Step 3. Now click on the ‘New’button and add the location:
Step 4. Confirm the action.
Step 5. Wait for the synchronization to complete and close the dialogs by clicking on the ‘OK’ or ‘Apply’ button.
Step 6. Resize and move the new windows and enjoy the web application on your desktop.
This reminds a bit something what Appolo is trying to do doesn’t it?
Now only if I would repeat the steps with other examples:
I am also aware that once could do this automatically in the Internet Explorer. It didn’t work on my box at the moment. What a shame.
![]()
It looks like I am able to host my jsc:javascript demos at google pages. Have a look at jsc.games page.
So I was going through my old source code and found yet another jsc:javascript project. Years ago when I started programming I tried to make a game in visual basic 6. The mission was to take the cargo off the cargo ship with your crane. There is a slim chance that it has survived on a old 486 machine up in the attic. Anyhow, so in December 2005 the jsc compiler was in its early stages and the ScriptCoreLib is now twice as big as it was back then. One weekend it was really bad weather and me and my girlfriend sat down to make a cartoon-ish mockup of such a game. I was suprised that it did recompile with the current version of the jsc. I really think developing applications with the jsc will be fun for everybody:)
And yes all the graphics is really done by me with the adobe photoshop.
Give it a look what one could do with javascript.
The collection of example projects done with jsc framework has once again grown – Space Invaders.
See it in action or browse in the source code.
Why did I do it? Well I found an implementation by Kris . So I thought how hard could it be. Well just so you know I spent a whole Saturday developing it.
I also linked it within youOS.
And if you are into monad/powershell give a shot at Adrian’s implementation.
And there is yet another javascript implementation. See labpixies.
A flash version by Neave.
OpenGL version at sourceforge.
See also:
1 using ScriptCoreLib;
2
3 using ScriptCoreLib.Shared.Drawing;
4 using ScriptCoreLib.Shared;
5
6 using ScriptCoreLib.JavaScript;
7 using ScriptCoreLib.JavaScript.Runtime;
8 using ScriptCoreLib.JavaScript.System;
9 using ScriptCoreLib.JavaScript.DOM;
10 using ScriptCoreLib.JavaScript.DOM.HTML;
11
12 namespace ITKBrowser.source.js
13 {
14
15 [Script]
16 class SubSquare
17 {
18
19 IHTMLDiv Base = new IHTMLDiv();
20
21 Timer timer = new Timer();
22
23 int value = 0xFF;
24
25 Rectangle Location;
26
27 public SubSquare(Rectangle size)
28 {
29 Location = size;
30
31 Base.style.SetLocation(size);
32 Base.style.backgroundColor = Color.White;
33
34 timer.Tick += new EventHandler<Timer>(timer_Tick);
35
36 Base.onmouseover += delegate { if (value > step) timer.StartInterval(40); };
37
38 Base.onmouseout += delegate { timer.Stop(); Base.style.backgroundColor = Color.FromGray(value); };
39
40 Base.attachToDocument();
41 }
42
43 const int step = 5;
44
45 void timer_Tick(Timer e)
46 {
47 if (value > step)
48 {
49 Console.WriteLine(“tick”);
50
51 value -= step;
52
53 Base.style.backgroundColor = Color.FromRGB(0xFF, 0xFF – value, 0xFF – value);
54
55 if (value <= step)
56 {
57 Console.WriteLine(“// we are done”);
58
59
60
61 timer.Stop();
62
63 this.Base.style.backgroundColor = Color.Red;
64
65 WorkPool p = Fader.FlashAndFadeOut(this.Base, 200);
66
67
68 p += delegate
69 {
70 new SubSquare(
71 Rectangle.Of(Location.Left, Location.Top, Location.Width / 2, Location.Height / 2)
72 );
73
74 new SubSquare(
75 Rectangle.Of(Location.Left + Location.Width / 2, Location.Top, Location.Width / 2, Location.Height / 2)
76 );
77
78 new SubSquare(
79 Rectangle.Of(Location.Left + Location.Width / 2, Location.Top + Location.Height / 2, Location.Width / 2, Location.Height / 2)
80 );
81
82 new SubSquare(
83 Rectangle.Of(Location.Left, Location.Top + Location.Height / 2, Location.Width / 2, Location.Height / 2)
84 );
85
86 this.Base.Dispose();
87 };
88 }
89 }
90 else
91 timer.Stop();
92 }
93
94 static SubSquare()
95 {
96
97 Native.Spawn(“Web.ss”,
98 delegate(IHTMLElement e)
99 {
100 new SubSquare(Rectangle.Of(8,8, Native.Document.body.clientWidth – 16, Native.Document.body.clientHeight – 16));
101
102
103 e.Dispose();
104 }
105 );
106
107 }
108 }
109 }
Time has come to make a decent text editor. Every site uses one nowadays. Even the wordpress does:)
Here is a screenschot. See the real deal.
I need to add color dropdowns and font dropdowns. But this will be built on the menu framework.
PS. The it does take some time to load:) And the contents you see is the actual source file.
UPDATE: 1.02.2007, see version 2
And yes it may take 30 sec to be loaded. The ScriptCoreLib is 300kb at the moment.
To be optimized eventually.

Update 3: The text editor is now in version 3. Users can now set fore and back color. The source code is also now in svn:)
Update 4: Also font name and font size can now be selected.
The javaME library has now been jsc’ized and c#’ized which means you can start producing valid j2me applications from within c#.
I donot have any installation instructions published yet. soon i will.
Watch the sceencast.
Oh and i added another example, rather old but still nice
Update:
For those who know what youOS is then there are two more “games” for you. Try searching for warcraft (direct) and spider (direct).
I couldn’t add the solitaire tho – seems it has some sort of load issues under iframe…
Theme: Shocking Blue Green. Blog at WordPress.com.