Jump to content

CodedGames

Members
  • Content Count

    31
  • Joined

  • Last visited

1 Follower

About CodedGames

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://www.codedgames.com
  • Twitter
    @CodedGames

Profile Information

  • Gender
    Male
  • Location
    Lakewood
  • Interests
    Coding, writing blog posts, other game dev things.

Recent Profile Visitors

1322 profile views
  1. 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. 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. 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. 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(w
  5. 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.
  6. So I went through the basic platformer tutorial and one thing I don't like is that everything is thrown into the create an update methods. I'd like to clean that up a bit by breaking the player into it's own class: /** * Created by Robert on 1/4/18. */ /** * Create the game and define the size of the window. * * Phase.AUTO will use WebGL if the browser supports it * otherwise uses HTML5 canvas. * * @type {Phaser.Game} */ var game = new Phaser.Game(800, 600, Phaser.AUTO); /** * Create the game state. * * Preload: Where you load assets. * * Create: Called once at start. *
  7. 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 ful
  8. 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 th
  9. 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. 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 po
  11. I found the problem. Like Antriel suggested, I asked for a URL, immediately opened the console and found a few 404 errors.
  12. I did, they said there wasn't which is very strange. That's the whole reason I made this topic.
  13. What do you mean localization stuff because that potentially could be a problem. Could you go into a bit more detail about that?
  14. 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
×
×
  • Create New...