Tag Info

New answers tagged

1

It's definitely possible to have a common code base if you use cross-platform technologies such as Unity or HTML5 frameworks. Though you'll always need some platform-specific work (Facebook app creation, distribution on the app stores, integration with the payment services,...) Choosing the framework highly depends on your skills and preferences. If you ...


0

I strongly suggest you to start working on your first game to get enough skills and global knowledge on video game development before wondering about platforms or selling plans. Read about video game development (through books, internet...). Learn how to make a game. Fail at making a dozen of games. And only then you'll probably be confident and skilled ...


1

As @dreta said there's only one way and it's by using a keypress event handler just like this: var keyInput = document.getElementById("keyInput"); function inputFunc(e) { If (e.keyCode == 82) {// 82 = R //Do Something }; }; keyInput.addEventListener("keypress", inputFunc); You can also visit this website where you can check the keyCode ...


0

To avoid checking collision on the same object you can generate a unique id on every object and then when you are looping over them check so they dont have the same id. Jon is wondering about your objects shapes since a rectangular bbox will in most cases be too large and hence you will detect collision even though objects are not colliding. Can be solved ...


0

It appears your game is 2D; what is the most non-uniform shape you draw? i.e. is everything circles and squares/rectangles?


1

VirtualBox has a fantastic solution to this problem -- they lock your cursor inside the window, if you press the control key, in my case that's cmd. You have proposed this and I would deffinetly advise for it. An example implementation of this would be, the user clicks on the game window and everything else darkens, to create the illusion of them being in ...



Top 50 recent answers are included