Mike Posted March 28, 2013 Share Posted March 28, 2013 Hi to all, I present you port of the Artemis Entity System framework to TypeScript Before you start dive in the code go check the Artemis documentation and examples, cause they are 99% the same as this TS framework THE CODE: https://github.com/MikeMnD/ArtemisTS SOME WORDS: This is alpha release, and i didn't make any game yet, but i share the project and code because: 1. Its open source2. It's a core framework (no things like rendering, input, collisions or physics)3. It's TypeScript (which is still in development) but if you see the compiled JavaScript i think you're liked it3. There was some struggles in the process of porting so i\ll be more than happy if some folks help me withcode reviews, and suggestions also there is some changes to be expected when TypeScript add the generics feature4. Some custom solutions for classes like Hashmap, BitSet, and ImmutableBag they are array based and there is a big chancethat something is buggy More technical info about use: VisualStudio is used as IDE in my project and every .ts file is build to .js (but you can compile it with what you want)the AMD module pattern to load classes, also i've made an App class in which for testand probably for future use i included the: dat.gui as example how can other JS libraries can be imported. STARTING THE GAME (the app or whatever) Well if you download the github code it should just work try open the index.htmland check if the console output something like this: document ready App.ts:68app started App.ts:34construct a logger So if all is ok without errors you could type: mg and hit enter and it the console should print you the Game object which is supposed to be singletone. SOME MORE WORDS: It,s 2 am and I'm going to sleep, I've been working on this for several weeks (I'm new to TypeScript, and also new to entity component design but i think i love both) So I hope more developers are interested in this and with the help of the community to make a solid game framework on which anyone could build his own game specific engine. I'm going to write more about the feature and also my plan is to expand the code in new project which will be fully featured game engine but based on ArtemisTS so ArtemisTS is going to be relative small and just a core. Also there is a DART port of Artemis which even has two examples, I've been looking closely to their structure so my goal is to make one example for ArtemisTS too. soybean 1 Quote Link to comment Share on other sites More sharing options...
deis Posted March 28, 2013 Share Posted March 28, 2013 Thankyou very much, I will be looking into ArtemisTS! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.