# CodedGames

Members

31

1. ## Changing game.world.angle doesn't affect Arcade bodies.

So I'm trying to rotate everything using game.world.angle. I thought I would still be able to use the arcade physics system because, even though things are rotating, the underlying coordinate system is never changed. But, as you can see, when I rotate the entire world, arcade bodies remain unchanged. Any idea to get around this other than switch over to the P2 physics system? Update: So I found that the body.rotation variable is changing. I think that is the problem
2. ## phaser Move camera without bounds

So this seems like it should be fairly simple, I want the camera to always follow the player even if they go outside the bounds of the map. How would I do that?
3. ## phaser Rotating walls around the player.

Ok thanks guys I got things fixed. The problem was that I calculated the distance between two points, adjusted the x position, then calculated the distance again when adjusting the y position. This caused things to have their distance from the pivot point changed when it shouldn't. The only thing left is I need to get collisions to work with rotated sprites. Originally I was using the arcade physics but I heard I need to switch over to P2 for rotation to work.
4. ## phaser Rotating walls around the player.

Hello, so I'm trying to make it so that the player can 'rotate' the camera around them. For example when they press E and Q the world rotates and things like walls get repositioned and their angle changes. Here is the code I have written: function rotateWorld(angle) { for (var i = 0; i < walls.getAll().length; i++) { var wall = walls.getAll()[i]; wall.angle += angle; var delta_x = wall.x - player.x; var delta_y = wall.y - player.y; var thetaAngle = Math.atan2(delta_y, delta_x) * 180 / Math.PI; wall.x = player.x + lengthdir_x(distance(wall.x, player.x, wall.y, player.y), thetaAngle + angle); wall.y = player.y + lengthdir_y(distance(wall.x, player.x, wall.y, player.y), thetaAngle + angle); } } function lengthdir_x(length, direction) { return Math.cos(direction * Math.PI / 180) * length; } function lengthdir_y(length, direction) { return Math.sin(direction * Math.PI / 180) * length; } function distance(x1, x2, y1, y2) { return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); } So far this sort of works but objects lose proper positioning after rotating a bit. It seems like they are not rotating around a perfect circle. Any help would really be appreciated and if there is a way to do this that's easier please let me know. Thanks!
5. ## New to Phaser, trying to break the player into it's own class.

Ok awesome, the game will now run. That got rid of that error message. The only problem I'm running into now is that the player is not showing up in the game. Is that valid to call game.add.sprite(this); in the constructor of player? The object is getting instantiated, I can see that it is in the proper position using console.log but it doesn't seem to be affected by gravity and cannot move around. The sprite itself is also not being drawn. Edit: Got it, you have to call game.add.existing instead of sprite.

7. ## Looking for ways to improve

Thanks for the suggestions! I realize my tutorials have always been rather wordy and it is definitely something that I will improve in future games. As for graphics there really isn't too much I can do about that. I don't create my own graphics and don't have much of a budget to hire someone. As for your final suggestion "make the games easier to play on desktop browsers," I'm not exactly sure what you mean by this. What game did you have difficulty playing? Another thing I've considered is just putting my games out there even if licenses aren't that much. I'm not a full time game developer and I'm wondering if I'll make more money selling many low-cost licenses over just a couple high-cost ones. This would apply mostly to my older games that the big publishers are not interested in. I'm not planning on my games becoming my full time job as I'm still in college and don't have a ton of free time to work on this. I honestly just have a lot of fun making games and making money from them is just a bonus.
8. ## Looking for ways to improve

Hey guys, I don't post here all that much but I've been making HTML5 games on and off for around the last 3 years. In that time, I've produced 5 games that I feel are fairly high quality. I'm looking for suggestions on how to improve my games and monetize them best. I've done the usual steps, emailed publishers looking for non-exclusive licenses and have sold a couple. Right now I feel like I'm sort of in a rut where I've contacted everyone on my mailing list and don't know what to do from there. I've gotten many offers for revenue shares but have turned all of them down as I've never found them to work in the past. I've considered listing my games on websites like MarketJS, FGL, Clay.io and possibly the Evato Market, do these websites work well? Anyways, here is the webpage with all of my games: http://codedgames.com/buy-html5-games/ Any suggestions would be greatly appreciated.
9. ## iOS 10 Beta 2 causing strange rainbow graphics

So I noticed that since updating to iOS 10 Beta 2 my HTML5 games get this strange graphical bug that weirds out the colors wherever transparent/partially transparent pixels would be. Anyone have an idea of what would be causing this or do you think it's just a bug in iOS that will (hopefully) be fixed? I make all of my games in GameMaker Studio.
10. ## DRAW!! - Western Themed Card Game

Description: DRAW!! is an western themed card game where you are tasked with building different decks to defeat the many different outlaws! Each enemy has unique decks and mechanics so you must construct your deck to capitalize on their weaknesses. Features: 10 different Outlaws to battle. 16 unique cards to collect. Thousands of deck combinations! What still needs to be done: The game is completely finished other than that it needs music and sound effects. Since those are not vital to the gameplay I thought that it was a good time to post about it and get some feedback. Play in your browser: www.codedgames.com/games/draw Any feedback would be greatly appreciated.

Yes, I did.
12. ## Mysterious things that cause games to not work

I found the problem. Like Antriel suggested, I asked for a URL, immediately opened the console and found a few 404 errors.
13. ## Mysterious things that cause games to not work

I did, they said there wasn't which is very strange. That's the whole reason I made this topic.
14. ## Mysterious things that cause games to not work

What do you mean localization stuff because that potentially could be a problem. Could you go into a bit more detail about that?
15. ## Mysterious things that cause games to not work

Hey guys, So I'm in the process of selling one of my games; I got everything working in Chrome, Safari, Opera, IE, Edge, Firefox, Android Browser, Safari on iOS, and the company's own game runner. Sounds like everything is good right? I even set my Android VM to the lowest possible specs when trying their game runner. My game still ran fine. Well I send my game to the company and they say that the game never starts with screenshots of a blank screen. I ask them if they get any error messages in the console and they say they got none. So do you guys have any idea of what mysterious things could cause a game to work fine for me but not for them? Any help is really appreciated.
16. ## Wonders in Math Land - memory game

The voice naration is amazing. 10/10, it's a masterpiece I completed the whole game.
17. ## Cube Fall

Cube Fall is now available on Newgrounds and Kongregate! Newgrounds: http://www.newgrounds.com/portal/view/645511 Kongregate: http://www.kongregate.com/games/CodedGames/cube-fall-remastered
18. ## Cube Fall

Cube Fall A remastered version of Cube Fall with new gameplay mechanics, updated graphics, new features, and smoother gameplay. Tap and drag cubes into rows to increase your multiplier, start a combo, and score tons of points! Clear the board and place cubes in power bars to score massive points! For the best experience play Cube Fall on your mobile device! Play Cube Fall Please post any feedback bellow! It's highly appreciated.
19. ## Developing on a tablet

Don't forget Windows tablets will support pretty much any USB keyboard/mouse so if you wanted to use an actual keyboard/mouse you could.
20. ## Developing on a tablet

I'd suggest a Windows 8 tablet simply because it would be running full windows.

18
22. ## Welcome!

Hello! My name is Robert, and I have been making my own games for fun for around 5-6 years now. Recently, I got into making HTML5 games with Game Maker: Studio. I also regularly write in my blog about pretty much everything gaming and game dev related. Check out my blog! To share my games I created my own video game website called Coded Games (www.codedgames.com). There you can play several of the games I have created, read my blog, and chat with some other gamers in my forum. Check out Coded Games! Well that is everything important that I have done! Thanks for reading!
23. ## Jump Drive

Haha can't please everyone
24. ## Jump Drive

Ok thanks for clarifing and for the tips. I'm not really working on this game anymore since I first made it a few years ago. I may create a sequel to it and use some of your ideas.
25. ## Jump Drive

I don't think I really labeled the difficulties right. Easy should have been hard, and hard should have been impossible. I still have never beat hard and I made the game. :/ Thanks for playing! May I ask what you mean by static? I'm not sure how that describes games.