ggvicviper Posted March 14, 2013 Share Posted March 14, 2013 So, hello to everyone, I'm new here. I found this site, and figured it would be a great place to talk about what I'm trying to create. So, after developing my first game in HTML5/JS, I found too much boilerplate that I didn't like, as I'm sure we all have. The game is called Huoli Arcade. and it's a revised game I originally wrote in C about 1.5 years ago. You can check it out here: http://www.brooklyncodebits.com/index.php/software-games/158-huoli-arcade-2013-version After I was finished, I was (and still am) eager to start work on another arcade shoot em up game. However, I couldn't help but think that things would be easier to develop with (for me) if things were a little more down and dirty. Things like if the loop wasn't so annoying to create (unlike a simple do/while and vsync), or some of the time-eating scope lookup that JS has, or creating a nice fullscreen effect, or getting straight data from input without having to always rel on the even handlers, and other problems. Well, I started on a solution that gives a little more of a traditional game-programming feel. I'm calling it WebcadeJS, and it's specifically for 2D games. It will ease a lot of nonsense off the markup, but will still retain much of how you use the very direct HTML5-JS API. Working on it pretty well, and I'm hoping that maybe some people would also find it useful, too. It will handle:Page SetupGame LoopDisplay/Canvas (including fullscreen and stretched fullscreen modes, canvas & context will be direct HTML5/JS access)Input (Keyboard, Mouse, Touch and Joystick)Audio (via Audio element only as of right now, will be direct HTML5/JS access)Video (will be direct HTML5/JS access) Quote Link to comment Share on other sites More sharing options...
Ezelia Posted March 18, 2013 Share Posted March 18, 2013 There are already many JS engines that handles all this for you take a look here : https://github.com/bebraw/jswiki/wiki/Game-Engines Quote Link to comment Share on other sites More sharing options...
ggvicviper Posted March 20, 2013 Author Share Posted March 20, 2013 Ezelia, there are libraries and engines all over the place for all sorts of languages. Programmers can use these libraries that do different things. Yet libraries continue to pop up based on different people's needs and requirements. Please don't invalidate what I'm trying to accomplish here - I'm NOT looking to make another engine that does all the work for you, such as scenes, labels, game objects, physics and other things. I'm creating a lean library that's very dirty for programmers who like writing their own code. My objective is to take some of the browser-based boilerplate out of setting up the system, and giving the programmer the raw stuff in a quicker way with a few added features. I was doing some game programming in C and Allegro/SDL before moving to JavaScript, and I wanted to replicate that experience for engineers who prefer things to be a bit more raw, but want to bypass the cross-browser problems and get immediate access to what HTML5 APIs they'll ultimately be using. I haven't seen much about people using the WIP Gamepad API either, so this could be useful too. I've also developed two different ways to run the loop - a more standard way that uses frameskipping if necessary, and something I like to call SmartRate. Some work better on certain platforms than others - for instance, at 60FPS, IE seems to play more nicely with SmartRate, but Safari might be better suited to the standard loop. There are plenty of options that I feel that I can expand on here - I'm glad to be working on this too. Quote Link to comment Share on other sites More sharing options...
ggvicviper Posted June 5, 2013 Author Share Posted June 5, 2013 I'm just about finished writing version 1.0.1 of the library. You can see the documentation here: http://www.brooklyncodebits.com/webcadejs-api/ Quote Link to comment Share on other sites More sharing options...
ggvicviper Posted June 13, 2013 Author Share Posted June 13, 2013 WebcadeJS will also feature rudimentary iCade support. I don't think this has been done before. 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.