diff --git a/samples/HelloWorld/Assets/lime.svg b/samples/HelloWorld/Assets/lime.svg new file mode 100644 index 000000000..0e20a1c77 --- /dev/null +++ b/samples/HelloWorld/Assets/lime.svg @@ -0,0 +1,54 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/HelloWorld/HelloWorld.hxproj b/samples/HelloWorld/HelloWorld.hxproj new file mode 100644 index 000000000..6d1b7c5aa --- /dev/null +++ b/samples/HelloWorld/HelloWorld.hxproj @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/HelloWorld/Source/Main.hx b/samples/HelloWorld/Source/Main.hx new file mode 100644 index 000000000..ffb616044 --- /dev/null +++ b/samples/HelloWorld/Source/Main.hx @@ -0,0 +1,50 @@ +package; + + +import lime.app.Application; +import lime.graphics.RenderContext; + + +class Main extends Application { + + + public function new () { + + super (); + + trace ("Hello World"); + + } + + + public override function render (context:RenderContext):Void { + + switch (context) { + + case CANVAS (context): + + context.fillStyle = "#BFFF00"; + context.fillRect (0, 0, window.width, window.height); + + case DOM (element): + + element.style.backgroundColor = "#BFFF00"; + + case FLASH (sprite): + + sprite.graphics.beginFill (0xBFFF00); + sprite.graphics.drawRect (0, 0, window.width, window.height); + + case OPENGL (gl): + + gl.clearColor (0.75, 1, 0, 1); + gl.clear (gl.COLOR_BUFFER_BIT); + + default: + + } + + } + + +} \ No newline at end of file diff --git a/samples/HelloWorld/project.xml b/samples/HelloWorld/project.xml new file mode 100644 index 000000000..d95e0b946 --- /dev/null +++ b/samples/HelloWorld/project.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file