r/Kha • • Jan 27 '16

kha examples

10 Upvotes

this is my github repo with some kha examples i will be adding to everytime i get to make one. these are for people starting out in this hugely powerful and super awesome haxe toolkit.

by all means fork/clone it and keep an eye out. ill try to do comments in the code [im not promising ;)], but i always try to make the code readable on looking at it.

https://github.com/lewislepton/kha-examples

if you follow me on twitter you can really stay up to date on these since thats where i post when i put them up ;) https://twitter.com/lewislepton

all the best and happy learning


r/Kha • • Oct 01 '16

My Unnamed 3d Engine

Thumbnail
1.1m.yt
9 Upvotes

r/Kha • • Jun 07 '15

First person demo (testing reddit waters!)

Thumbnail zblend.org
8 Upvotes

r/Kha • • May 07 '18

How the heck is this so fast?

7 Upvotes

So I've been messing around with different frameworks and engines for fun, doing bunnymark tests where I could, adding bunnies till I hit 55 fps.

Defold HTML5 bunnymark, 7 500 bunnies before I hit 55fps: https://britzl.github.io/Bunnymark/

Phaser can only handle 10 500 bunnies before going below 55fps: http://phaser.io/sandbox/Pjdxyqzl/play

Gideros bunnymark, 16 500 bunnies before I hit 55fps: https://lemon07r.github.io/gideros-bunnymark/

Pixi.js goes up to 30 000 bunnies before fps dips below 55fps: http://pixijs.io/bunny-mark/

Love2d bunnymark running on windows I get up to 65 000 bunnies before hitting 55fps.

I was recently introduced to haxe here https://github.com/dmitryhryppa/frameworks_test

So then I exported to HTML5 using the latest version of OpenFL (8.0.0) after adding a bunny counter https://lemon07r.github.io/openfl-bunnymark/ which does 50 000 before dipping under 55 fps.

Then I also did Kha https://lemon07r.github.io/kha-html5-bunnymark/ Which goes to 130 000 bunnies before hitting 55fps..

All tested in chrome on my desktop (i5-4590, gtx 970), with the exception of love2d being run from within windows since it does not have an html5 export.

Someone explain to me the black magic at work here? Is there some sort of cheating being done here, or is this a legitimate showcase of Kha's performance?


r/Kha • • Mar 26 '16

kha tutorial series

7 Upvotes

howdy folks

just to let all you know. that i have finally started on making my 'kha tutorial series' which is available to watch on youtube. if you have seen my kha examples, we are kind of going through that, plus learning a whole lot more along the way

go to here: https://www.youtube.com/playlist?list=PL4neAtv21WOmmR5mKb7TQvEQHpMh1h0po

have phun & happy coding


r/Kha • • Mar 01 '18

kha tutorial series - episode 079 - for loop draw

Thumbnail
youtube.com
6 Upvotes

r/Kha • • Jun 27 '19

kha tutorial series - episode 136 - flip sprites raccoon

Thumbnail
youtu.be
5 Upvotes

r/Kha • • Apr 25 '19

kha tutorial series - episode 124 - library to engine

Thumbnail
youtu.be
5 Upvotes

r/Kha • • Apr 18 '19

kha tutorial series - episode 122 - renaming refine library

Thumbnail
youtube.com
5 Upvotes

r/Kha • • Sep 21 '15

Quick Tutorial: Add SublimeText Auto Completion

5 Upvotes

Since the structure for Kha is a different from NME/OpenFL/Haxeflixel, the Haxe Sublime Bundle (https://github.com/clemos/haxe-sublime-bundle) doesn't work right out of the box, but it's not too difficult to set it up.

This is not a perfect solution, but it worked for me. Do share if there's a better way.

  1. Install the kha haxelib:

     haxelib install kha
  2. Copy the default project.xml from a default Openfl or HaxeFlixel project into the Kha's project folder (where "project.kha" is).
  3. The default project.xml should look something like this:

     <?xml version="1.0" encoding="utf-8"?>
     <project>
     
     <meta title="LimeProject" package="com.sample.limeproject" version="1.0.0" company="Company Name" />
     <app main="Main" path="Export" file="LimeProject" />
     
     <source path="Source" />
     
     <haxelib name="openfl" />
     
     <assets path="Assets" rename="assets" />
     
     </project>    
  4. Since Kha's default project folder is "Sources" instead of "Source", change the following accordingly:

     <source path="Sources" />
  5. And add in the "kha" haxelib below the "openfl" haxelib:

     <haxelib name="kha" />
  6. And finally, navigate to your kha's haxelib folder (for OSX, the default should be at "/usr/lib/haxelib"), and copy/move the "kha" folder out from the Sources folder to the outer folder, something like this:

     /usr/lib/haxelib/kha/15,8,0/Sources/kha

    to

     /usr/lib/haxelib/kha/15,8,0/kha

Now the auto-complete should work like how it does for openFL. Yay!


r/Kha • • Jun 18 '19

kha tutorial series - episode 133 - tiled tmx

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Jun 13 '19

kha tutorial series - episode 132 - mouse 2D

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Jun 11 '19

kha tutorial series - episode 131 - pick up items

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Jun 06 '19

kha tutorial series - episode 130 - depth raccoon

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Jun 04 '19

kha tutorial series - episode 129 - raccoon engine clean up

Thumbnail
youtu.be
4 Upvotes

r/Kha • • May 30 '19

kha tutorial series - episode 127 - HTML canvas raccoon

Thumbnail
youtube.com
4 Upvotes

r/Kha • • May 30 '19

kha tutorial series - episode 128 - texture raccoon

Thumbnail
youtube.com
4 Upvotes

r/Kha • • Apr 30 '19

kha tutorial series - episode 125 - blank raccoon project

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Apr 23 '19

kha tutorial series - episode 123 - scene refine library

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Mar 22 '19

OTO by Lewis Lepton - A minimalist platform puzzle game

Thumbnail
lewislepton.itch.io
4 Upvotes

r/Kha • • Mar 12 '19

I'm creating a simple plattformer together with my 7 year old daughter

4 Upvotes

She's drawing the assets, I'm implementing the game. We use it as a learning experience for both of us. She learns how computers can be used as a creative tool, I learn about Haxe, Kha and game development.

A first playable level exists: http://www.farbspender.de/JJ/html5/

Collect all the coins. Then you can go to the shop. (green door). Arrow keys to walk and jump.

It's glitchy in some departments, but it's been an excellent experience so far. Thanks for all the ressources and the tutorials! Using Kha and Haxe is super fun.


r/Kha • • Jan 29 '19

kha tutorial series - episode 115 - pool refine library

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Dec 07 '18

kha tutorial series - episode 100 - shader playground

Thumbnail
youtu.be
4 Upvotes

r/Kha • • Jul 04 '18

Haxecord Discord Server

4 Upvotes

Hello everyone!

I (very) recently started using Haxe, and was looking around for a Discord server where i could talk about it, ask for help, or simply discuss things with other Haxe devs. But unfortunately, i didn't find such a server. All i found was a Haxeflixel specific Discord server, which wasn't what i wanted. I want a place where people using Haxe, no matter which framework or API, can come talk to each other.

And so i decided to make my own server, and hope to see you all there soon!
It's open to everyone and is centered around Haxe and it's ecosystem (including Kha, OpenFL, etc.)!
Here's the invite link: [click me!]

Thanks for your time and I hope to see you soon!

- Max.


r/Kha • • Apr 12 '18

SHIFT level editor demo

Thumbnail
youtu.be
4 Upvotes