Hi,
Just wondering...
Has anyone tried using BulletML (http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html) with Cocos2D?
:D
A fast, easy to use, free, and community supported 2D game engine
Hi,
Just wondering...
Has anyone tried using BulletML (http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html) with Cocos2D?
:D
Not yet, but I think I'll add it to my list :)
Check this out, it has a link to the c++ parser with example project for xcode:
http://thejustinwalsh.com/articles/bulletml
@CJ: yeah :D Thanks for the link :D
Sorry for being a noob, but how do I compile C++ files in Cocos2D, I did the converting file names to .mm thing, but I still get a lot of errors on C++ syntax stuff >.<
Any help would be veyr much appreciated.
What does bulletML do? I just gave it a quick look so I may be missing something, but is it for reading in flat files of bullet descriptions which you then use to populate your game world?
I still get a lot of errors on C++ syntax stuff
It may be easier to just subclass CCSprite with a creation method that uses all of the parameters: position, direction, speed, acceleration, etc and have it return a bullet sprite with CCActions on it. Then you could hard code bullet definitions directly in Obj-C or make your own simple flat text file and parser and never have to touch C++. You'd also be able to create random bullets, of course.
Taken from the following link, http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html
BulletML is the Bullet Markup Language. BulletML can describe the barrage of bullets in shooting games. (The storm of Progear, Psyvariar, Gigawing2, G DARIUS, XEVIOUS, ...) There are many advantages for using BulletML.
* BulletML can describe the complicated barrage of bullets in recent shooting games easily.
* BulletML demo applet is available. Write BulletML document, and check it on this applet.
* BulletML is XML-based language. It offers data portability and reusability.
I like the idea of using a simple vocab to be able to build up a complex barrage and then try them out in the applet, a bullet version of particle designer. Part of the fun with something like particle designer is the odd effects you often come across when playing, I can see similar things happening with bulletML
Ah ok. So if it is just XML than you can use NSXMLParser to read it. No C++ required.
You could do but once you parsed it you need something to interpret and render the bullets, something akin to a particle engine. I've not had enough time to have a play with it yet but I believe that's what the code that CJ linked to above does.
edit: I can see where the earlier confusion came in if you were looking at this simply as a proposed markup rather than an implementation.
Converting the XML to .plist format would be better.. NSXMLParser is rather terrible though I come from easy mode Flash ActionScript 3.0 xml parsing background and NSXMLParser just reminds me of the hell ActionScript 2.0 was to parse XML properly.
-Robert
@Robert Payne AS2's XML parsing bring back some bad memories :( I built a MathML renderer around 7 years ago that ended up requiring a shed load of extra code to handle all the namespace stuff that the AS2 implementation couldn't. Throw in no XPath and you can imagine how much fun that project was.
I think the whole point of BulletML is that it is XML, you can pass it around and use your BulletML in someone elses game, or try it out in the applet http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml_applet_e.html etc
I believe the c++ project linked to above has an implementation that handles the parsing and rendering (I've still not had time to check this but I'm pretty sure that its the case).
For anyone finding this thread while searching for XML, Xpath etc there's a nice article by Ray at;
http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project
For anyone who is interested, there's an English ReadMe for libbulletml http://shinh.skr.jp/libbulletml/README.en.txt.
I haven't finished integrating mine yet though :(.
After much more Googling, I found think link: http://www.fallenfeathersoftware.com.au/category/bulletml/ BulletML and Bullet Physics on the iPhone by Fallen Feather Software
I got it working-ish, the problem I have now is getting C++ to play even more nicely with Objective C. So now I have set up the libBulletML, those codes I left as .cpp, and then the files that call them are in .mm, the Objective C files play with .cpp fine, but when I want the .cpp files to reference Objective C files, well I can't (I get tons of errors).
How can I draw stuff from C++? Using CCSprite? Or rather, can I draw stuff from C++?
@purplelilgirl Finally got back around to looking at this, 10 months! Which version did you get working in the end? The one you followed here http://shinh.skr.jp/libbulletml/README.en.txt.?
@purplelilgirl Finally got back around to looking at this, 10 months! Which version did you get working in the end? The one you followed here http://shinh.skr.jp/libbulletml/README.en.txt.?
Hi has anyone had any luck with this, I can get the source to compile however I don't understand the step that states to create a pointer for the type Bullet, as there is no such type in the library. Is that an abstract example?
Any sample snippet would really help!
You must log in to post.