• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

136 Neutral

About savagebeastx

  • Rank
  1. I recommend javascript: 1. Well supported/no plug-ins If you build your game on a library like prototype, jquery, yui, mootools or others, it will run smoothly in most modern browsers without too much hassle. 2. Easy to learn, free and excellent development tools There are plenty of resources available for learning javascript. w3schools.com and sitepoint.com are two good references. Development tools have come along way in the last few years. I recommend using the Firebug extension for Firefox or the Safari Web Inspector. 3. Powerful Check out the physics engine example below. Another good example is http://scripty2.com/demos/cards/, which is only 70 lines of code. 4. Canvas Allows for 2d vector and image manipulation. You don't have to worry about the dom or cross-browser issues. I believe the new firefox has support for 3d. 5. Client-side Database Storage Safari has a javascript client-side database so you no longer have to fetch information from the server. This can be useful for one player games or games whether initially a lot of data needed to start a game. I'm not too sure about support in other browsers though. Apart from the above libraries, a few other resources: Physics Engine: http://box2d-js.sourceforge.net/index2.html Vector and matrix math: http://sylvester.jcoglan.com/ Animation framework: http://mir.aculo.us/2009/11/07/a-50-lines-of-code-javascript-animation-framework-say-hello-to-emile/ Ajaxian.com has some articles that relate to game development I'm working on a small javascript isometric game engine and I haven't had any major hindrances so far in its development.
  2. Quote:PHP can only be updated when you post to the page, unless you are using AJAX. Not entirely true, im building a javascript client for a simple mmorpg. Im using flash with a javascript bridge to connect to the server which is written in php. It requires php to be constantly running but allows for server push(real time) which was the biggest problem in my opinion (apart from speed optimization). Im using a database for storing the game data.
  3. Good idea. I've been looking for one for a while now.
  4. Url of the game : Not public Name of game: The World of the Yellowberry Snowman[Very much a working title] Description: javascript multiplayer tilebased game Type of game: Real-time (Turn based battles) Genre of game: Multiplayer RPG Very early in development. I hope to use server push with flash. I want to develop a simple world where the player can move around and fight others in RPG style battles. Other players can join in fights or just watch. I have a php socket setup with client push but I'm having trouble getting it to push to the client.
  5. [web] Side bar menu question

    You have to use PNGs to achieve this because GIFs only support binary transparency, where a pixel is either transparent or it isn't. Firefox has no problem with transparency in PNGs but you have to use a filter in IE. Lets just say its complicated. Read A List Apart's PNG Opacity Article for more information.
  6. [web] Side bar menu question

    Start with the basic HTML: <ul class="myNavigation"> <li onclick="navigationContent('content1')">News</li> <ul id="content1"> <li><a href="#">Latest news</a></li> <li><a href="#">Archives</a></li> </ul> <li onclick="navigationContent('content2')">Game</li> <ul id="content2"> <li><a href="#">Overview</a></li> <li><a href="#">Credits</a></li> </ul> </ul> Add styling to hide at beginning: <style type="text/css"> ul.myNavigation ul{ display: none; } </style> And finally the javascript javascript: <script language="javascript" type="text/javascript"> function navigationContent( content ) { if(document.getElementById(content).style.display == 'none' ) { // content is hidden document.getElementById(content).style.display = 'block'; } else { // content is shown document.getElementById(content).style.display = 'none'; } } </script> Make sure to add the javascript and css in the head of the html file.
  7. [web] Test out my website

    Pretty nice so far, better than a lot I've seen. In my opinion: 1) The border around the entire content is too thick 2) The titles of news items and 'Quick links' aren't eyecatching enough 3) Missing captial letters in content (though, you seem to be pretty consistant with this so I'm guess its on purpose) 4) Navigation bar links aren't equally spaced 5) Why do you need to put an entirely new html document within each one?
  8. [web] Large-scale Javascript game

    Im not sure but I think it would be possible using something like the Adobe Flex/Ajax bridge. Specifically, Quote:Adobe also mentioned an upcoming “Ajax Client for Flex Data Services” that builds on top of the bridge to make it easy for Ajax applications to do server push (courtesy of the Flash runtime), off-line caching, etc. As to why not to create the entire game in flash. I never really liked the idea and I'm going for a game, where not only the content can change but the game mechanics in realtime (eg. the php files). It's more of an experiment than a commercial aimed game anyway. I'm aiming to make this as cheaply as possible and there is quite a cost to a flash editor.
  9. [web] Large-scale Javascript game

    Would it be possible to create a bridge between javascript and flash and use flash for server push? I know it wouldnt be a completely javascript game but it allow for server push. It might cause some people that dont have flash problems.
  10. I was wondering that since it is possible to create large scale javascript programs like the new Yahoo Mail, would it be feasible to create a 2d game of similarly large proportions. Advantages could include: 1) Errors or problems being fixed without the user having to download patches, etc 2) New content added as you play 3) Easy to interact with other players, like in a MMO 4) Play anywhere with your player Disadvantages: 1) Security, if using publicly viewable javascript 2) Hard to implement cross browser support 3) Hard to code such a large game in javascript? Would the advantages outweigh the disadvantages? Any other potential problems?
  11. [web] URL Renaming

    Thanks for all the help, maybe I could ask a follow on question? I've been trying to change something like http://www.example.com/index.php?go=forum to http://www.example.com/forum/ but it won't let me, heres the .htaccess file RewriteEngine On RewriteRule ^([a-z0-9_]+)/ index.php?go=$1
  12. [web] URL Renaming

    Thanks for the links, they exactly what I'm looking for.
  13. Hi, I was just wondering if it was possible to rename a url with variables like http://www.example.com/index.php?go=forums to something like http://www.example.com/forums/ I've heard you can do this with .htaccess files. If you can is it possible to edit .htaccess files with php and change these. For example: http://www.example.com/index.php?go=article&articleID=12 to http://www.example.com/article/test_article Changing the 12 to test_article and maybe for all other articles on the site. If you submit a new article it is automatically changed to something like the above.
  14. Handling circle collisions

    No, the origin is in the center. I'm using OpenGL. The big circle is at the center.
  15. Handling circle collisions

    So far I have this: xd = ballPosition.x; yd = ballPosition.y; ld = largeCircleRadius - ballRadius; xd *= xd; yd *= yd; ld *= ld; if( xd+yd >= ld ) { dst = sqrt(xd+yd); xd /= dst; yd /= dst; vel = sqrt(ballVelocity.x*ballVelocity.x + ballVelocity.y*ballVelocity.y); ballVelocity.x = xd*vel; ballVelocity.y = yd*vel; } Unfortunately, the bounce only works on the bottom left of the circle.
  • Advertisement