Search the Community

Showing results for tags 'game'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 562 results

  1. Our game is a runner, which has portals that sends you to a different time period and place when you run into them. I've made it so when you get in a portal, the code goes from one state to the other and create the world over again with different textures. But I have this issue that the player gets super speed after the portal. Like, I can run 10000px in the matter of 2 seconds speed. I have not been able to find out why so far, but with a couple of console logs I've notice both the old state and then new state updates are both running. So thought removing the run function in the new world state would work, but didn't make a difference This is the PlayState that the game starts in after you click play. var cursors; var playState = { create: function() { console.log("Play kjørte"); var mapLen = 10000; // Velg lengden av banen (i pixler) var posX = 0; // Make game here game.physics.startSystem(Phaser.Physics.ARCADE); game.world.setBounds(0, 0, mapLen, 600); bg = game.add.sprite(mapLen/2, 300, "sky"); bg.scale.setTo(1,1); bg.anchor.setTo(0.5,0.5); platforms = game.add.group(); platforms.enableBody = true; while (true) { var ground = platforms.create(posX, 535,"ground"); ground.scale.setTo(1,1); ground.anchor.setTo(0,0) ground.body.immovable = true; posX += 150; if (posX > mapLen) { console.log("posX mer enn mapLen, avbryt laging av ground"); break; } } player = game.add.sprite(100, 500, "character"); player.anchor.setTo(0.5, 0.5); player.scale.setTo(1,1); game.camera.follow(player); game.physics.arcade.enable(player); player.body.gravity.y = 800; player.body.collideWorldBounds = true; player.animations.add("right",[0,1,2,3,4,5], 16, true); player.animations.add("jumpRight",[2], 1, true); player.animations.add("jumpLeft",[0], 1, true); player.animations.add("left",[0], 20, true); enemies = game.add.group(); enemy = game.add.sprite(8000, 505, "umbrellaGirl"); enemy.anchor.setTo(0.5, 0.5); game.physics.arcade.enable(enemy); portal = game.add.sprite(600, 500, "portal"); portal.anchor.setTo(0.5,0.5); portal.scale.setTo(0.8,0.8); game.physics.arcade.enable(portal); tBuilding = game.add.sprite(9700, 535, "targetBuilding"); tBuilding.anchor.setTo(0, 1); tBuilding.scale.setTo(0.8,0.8); game.physics.arcade.enable(tBuilding); var timer; timer = setInterval(this.run, 10); cursors = game.input.keyboard.createCursorKeys(); }, run: function() { //console.log("run kjørte"); player.body.velocity.x = 520; }, //Function to make camera follow character lockonFollow: function() { game.camera.follow(player, Phaser.Camera.FOLLOW_LOCKON); style = 'STYLE_LOCKON'; }, update: function() { // code to for example, kill, move player and jump game.physics.arcade.collide(player,platforms); game.physics.arcade.overlap(tBuilding, player, this.win, null); player.body.velocity.x = 0; if (game.physics.arcade.collide(enemy, player)) { player.kill(); game.state.start("lose"); } if (game.physics.arcade.collide(portal, player)) { this.game = null; this.state.start("ancientGreece",true, false); } //if (cursors.right.isDown) { if (player.body.touching.down){ player.animations.play("right"); } //} else if (cursors.left.isDown) { player.body.velocity.x = -400; if (player.body.touching.down){ player.animations.play("left"); } } else { player.animations.stop(); player.frame = 12; } // Jump if (cursors.up.isDown && player.body.touching.down) { player.body.velocity.y = -400; player.animations.play("jumpRight"); if (cursors.up.isDown && cursors.left.isDown) { player.animations.play("jumpLeft"); } } }, win: function() { game.state.start("win"); //"win" was an invisible sprite the player collided with to trigger the jump to win.js }, } And this is the state where the world textures become Ancient Greece textures (after you hit the portal). var cursors; var greeceState = { create: function() { console.log("Greece kjørte"); var mapLen = 10000; // Velg lengden av banen (i pixler) var posX = 0; var timer; //game.physics.startSystem(Phaser.Physics.ARCADE); //game.world.setBounds(0, 0, mapLen, 600); bg = game.add.sprite(mapLen/2, 300, "sky"); bg.scale.setTo(1,1); bg.anchor.setTo(0.5,0.5); platforms = game.add.group(); platforms.enableBody = true; while (true) { var ground = platforms.create(posX, 535,"groundSand"); ground.scale.setTo(1,1); ground.anchor.setTo(0,0) ground.body.immovable = true; posX += 150; if (posX > mapLen) { console.log("posX mer enn mapLen, avbryt laging av ground"); break; } } player = game.add.sprite(100, 500, "character"); player.anchor.setTo(0.5, 0.5); player.scale.setTo(1,1); game.camera.follow(player); game.physics.arcade.enable(player); player.body.gravity.y = 800; player.body.collideWorldBounds = true; player.animations.add("right",[0,1,2,3,4,5], 16, true); //timer = setInterval(this.run, 0.10); cursors = game.input.keyboard.createCursorKeys(); }, /* run: function() { console.log("run kjørte"); //player.body.velocity.x = 520; },*/ update: function() { //console.log("update Greece"); // code to for example, kill, move player and jump game.physics.arcade.collide(player,platforms); game.physics.arcade.overlap(tBuilding, player, this.win, null); //player.body.velocity.x = 0; if (player.body.touching.down){ player.animations.play("right"); } /* if (player.body.position.x > 9000) { game.state.start("play"); }*/ } } My apologies if I could snip the code down a little, I wasn't sure what would be relevant to show or not with the issue I have. The game looks like this before and after portal: DemolitionDavid.rar
  2. My last game, Faraon, created live, about 35 hours of video.Playable from any browser, smartphones, iphones, mac, pc, tablets etc...Rescue your friend through the dangerous rooms hidden in the pyramid of Pharaoh.Test your skill in this fun platform game, Are you a hero? Prove it.Funny and fast platform game.- 55 levels.- 3 different finishes.- Easy to play, one-touch control.- Many traps and enemies await you in the pyramid.- Great and original soundtrack.- Adapted for keyboard and touch screen.- Playable from any device.- Pixelated graphics. Faraon trailerPlay on Itch.IO: Faraon Itch.ioPlay on my Web: Faraon
  3. Hi, guys. I Sell my html 5 games (non-exclusive) Engine: Scirra Construct 2 1. https://www.scirra.com/arcade/racing-games/retro-speed-2-hot-roads-6949 2. https://www.scirra.com/arcade/racing-games/retro-speed-6950 3. https://www.scirra.com/arcade/racing-games/save-rocket-6951 4. https://www.scirra.com/arcade/action-games/dont-drop-the-white-ball-6970 5. https://www.scirra.com/arcade/action-games/dont-drop-the-white-ball-2-6973 6. https://www.scirra.com/arcade/action-games/jump-ninja-hero-6988 7. https://www.scirra.com/arcade/action-games/tap-10-sec-6995 8. https://www.scirra.com/arcade/action-games/switch-dash-6997 9. https://www.scirra.com/arcade/action-games/saws-8917 10. https://www.scirra.com/arcade/puzzle-games/he-likes-the-darkness-8925 11. https://www.scirra.com/arcade/action-games/circle-flip-10015 12. https://www.scirra.com/arcade/action-games/falling-bottle-challenge-12608 13. https://www.scirra.com/arcade/action-games/mannequin-head-jumping-challenge-12746 Contact Us: contact@takenewgames.com
  4. Hello everyone, I love to make games, but unfortunately i don't know how to make graphics for my games. This is the main reason of incomplete games. Is there anyone knows how to solve this? I am not looking for making "the best" graphics, but i just want to achieve moderate quality. Do you think can i learn some basic concept of computer graphics? Or must i outsource graphics design completely?
  5. Hi, guys. Try my new game! Simply flip the bottle into the air and score points by falling between the tables! Compete with players around the world! Play Online: https://www.scirra.com/arcade/action-games/falling-bottle-challenge-12608 Download for IOS: https://itunes.apple.com/us/app/falling-bottle-challenge/id1176246722?mt=8 Download for Android: https://play.google.com/store/apps/details?id=com.takenewgames.fbc Features: - 10 bottles - Simple One Touch Control - Online leaderboard - Endlesss Gameplay Gameplay: - Tap to Flip - Don't touch on tables - Collect diamonds to unlock new bottles Follow Us: — http://www.facebook.com/takenewgamesofficial — http://twitter.com/TakeNewGames — http://plus.google.com/+TakeNewGames — http://vk.com/takenewgames — http://www.pinterest.com/takenewgames — http://www.youtube.com/c/TakeNewGames More Games: — http://www.takenewgames.com
  6. Hi, I'm trying to make a version of the Guess Who guessing game. I'm struggling with how to write the code so that the computer and human take alternate turns. Is there anyone that would be prepared to have a look at my code and help me. Im a student and only been coding a few years. This is my first post so apologies for any etiquette mistakes in the context of the forum.
  7. game

    It's been about 3 long years since the last release, while the prototype broke shortly after. While this version is not yet ready for the mainstream, it is a very important long awaited step forward. Hope to get you hooked, more is coming! Here's what's HOT! The list of changes is quite extensive, but I don't like to bore you with any details unless you are really craving for those. Anyway, here's the summary: The prototype has been finally fixed! All existing units have been revamped! 5 new playable creatures added, fun! Check a more detailed changelog on the blog and give the game a go after :-)
  8. Hi, guys. Try my new game Play on Scirra Arcade: https://www.scirra.com/arcade/action-games/mannequin-head-jumping-challenge-game-12746 Download for Android: https://play.google.com/store/apps/details?id=com.takenewgames.mcjh Download for IOS: https://itunes.apple.com/app/mannequin-challenge-game-jumping/id1178329270 Description The Mannequin Head - Jumping Challenge Game is realy hot new challenge! Come Join To Play! The Mannequin Head - Jumping Challenge is taking over the world! Play Now! Features: - 10 characters - Simple One Touch Control - Online leaderboard - Endlesss Gameplay Gameplay: - Tap to jump - Don't touch on horizontal platform - Collect diamonds to unlock new characters Follow Us: — http://www.facebook.com/takenewgamesofficial — http://twitter.com/TakeNewGames — http://plus.google.com/+TakeNewGames — http://vk.com/takenewgames — http://www.pinterest.com/takenewgames — http://www.youtube.com/TakeNewGames?sub_confirmation=1 More Games: — http://www.takenewgames.com
  9. DA QUIZ Android: https://play.google.com/store/apps/details?id=com.donrifgames.daquiz iOS: https://itunes.apple.com/us/app/da-quiz/id1178665864 Hey everybody! I just released "Da Quiz" on the App Store & Google Play, it's a trivia / quiz word game with up to 900 questions to answer! There are 6 categories (Sports, Cinema, Music, Video Games, History and Geography) and I intend to make updates to add questions and categories frequently! It was made in Construct 2 and exported using the Phonegap build! Construct 2 is a very powerful tool and looks like Construct 3 will be a lot better! I hope you'll give it a shot and your feedback is highly appreciated! Thanks again and Quiz on!
  10. I have not complicated 2D game platformer with two levels, with simple platforms My character can jump, run and fall I want to teach him to hanging on the ledge on arms (i have sprite to animate this), and to stand up on platform. Hanging on arms - see picture below. Please, help me with some advice. I will add code if you will need to. In advance, thank for answer.
  11. First, let me introduce myself. I'm Drew. I have created several games using flash and I'm ready to move to HTML5. I'm looking to create a golf game. Nothing terribly fancy, in fact, think PGA Tour 96-ish. So, with that in mind, I'm looking for any thoughts to point me in the right direction of where to get started. Is there a development package that might be better for this type of application? First thing that comes to your head.... OK, go.
  12. Hi, I'm currently in the middle of setting up the base of my game with the use of Phaser game engine but I'm having issue with the sprite colliding with the world bounds. I've used Tiling to create the backdrop and the ground etc. But I need help understanding how to define what the sprite should be colliding with. How do I collide with the ground, which is part of the whole tile. Please see the attached 2 images, the sprite falls through the game as expected. this.world.setBounds(0,0, 400,300); console.log("in Game screen"); //sprite width - 180px, height 247.5px map = this.add.tilemap('level'); map.addTilesetImage('MyTile', 'tiles'); layer = map.createLayer('Tile Layer 1'); console.log("Json and sprite loaded"); sprite = this.add.sprite(this.world.centerX, this.world.centerY, 'character'); sprite.anchor.setTo(0.5,0.5); sprite.scale.setTo(0.2, 0.2); console.log("Character Loaded"); this.physics.startSystem(Phaser.Physics.ARCADE); this.physics.enable(sprite, Phaser.Physics.ARCADE); sprite.body.gravity.y = 500; console.log("Physics added to sprite"); The above code is in the create function, I am using state management, as you can see I've added set world bounds, when adding this the sprite dissapears, I've tried numerous different dimension but I've still not come to a solution. Any help would be much appreciated. Thanks
  13. My first version of a game inspired from a hardware game "Magic Mirror (M.C. Escher)" : Mirror-Cubes Because the game itself isn't so easy to play, you can use some hidden buttons (1-5) to complete the level... Technically the game is almost finished but I'm very interested about your opinion, suggestion and so on to complete the "gaming" part. BTW, its time for me to thank Mr. Deltakosh in place of all guys bringing their effort to this forum, Best Regards javalang Forgotton to say: best viewed with Google-Chrome
  14. Hi, new to Phaser. I am having a little difficulty understanding the concepts of the Stage vs the World, which one controls what is rendered, and why they apparently don't match my Game dimensions. I am using Phaser 2.6.2. I create a Game with width 607 and height 1080 (16:9 portrait, would be pixel-perfect in fullscreen), and in my boot script I set scale mode to SHOW_ALL and set pageAlignHorizontally to true. In my first level, I set the game.stage.backgroundColor, and I create a group of buttons, and I set the buttonGroup.alignIn(this.game.world.bounds, Phaser.BOTTOM_CENTER). As expected, I see what appears to be the correctly sized rectangle, scaled down slightly to fit within my non-fullscreen browser window, with a row of buttons at the bottom. However, I noticed that there seems to be an "edge" in my game where rendering stops. I added a debug rectangle set to the bounds of my button group, and I didn't see it. I then set the y value to be bounds.y -100, to push it "up", and this is what I see: You can't see the pointer, but you can see the pointer debug location, the y value is 919, and the pointer is a the bottom edge of the visible part of the green debug rectangle (that should be the height of the buttons). And you can also see that rendering is getting cut off on the right, before the right edge of the Game (as seen by the background color). But yet - the buttons are still visible, and they are below the point where the rendering seems to be getting cut off? I then did some logging, and found out that the bounds of the World and the Stage do not match the dimensions of the Game (these are numbers for game.world.getBounds() and game.stage.getBounds()): world x: -156 world y: 0.5 world height: 75 world width: 920 stage x: -156 stage y: 0 stage height: 920 stage width: 920 Now, the 920 height of the Stage seems to match where the rendering is getting cut off at y = 920 in the screenshot. The World numbers make no sense to me at all, and I can't figure out what corresponds to the right side edge of the rendering. I was under the impression that without explicitly resizing the World, it would be the same dimensions as my Game? So my questions are: What is causing the rendering to cut off where it is? Does the World bounds define what gets rendered, or does the Stage bounds define what gets rendered? Why aren't my Stage and World dimensions the same as my Game, considering I did not explicitly size or resize either one? Why are the buttons still visible even though they appear below the line where rendering is getting cut off? If the Stage bounds do not match the dimensions of my Game, why did game.stage.backgroundColor appear to correctly color in the the background of what I expected the Game dimensions to be? Bonus question: The answer here: Says that you can put UI elements in the Stage.. should I be adding my buttons to the Stage? How exactly do you do that? I had added them by adding a group to the Game, then adding the Button objects to the group. Does that mean they live in the World? Or the Stage?
  15. Just released this puzzle game. Try to flood the board with one color by tapping the buttons on the bottom of the screen. Feedback appreciated Play in browser! Android app!
  16. phaser

    Hi! The last few months we worked really hard on our game - “Heroes of Myths”. We decided to try our hand on Steam Greenlight. Please support us and vote for the game on Greenlight - http://steamcommunity.com/sharedfiles/filedetails/?id=870933198&tscn=1488471355 Thank you very much!
  17. I built a 1st release of entity system with typescript. You can find the library at https://github.com/francoagusto/entities and here an example with a quick developed game shooter (crimson like): https://github.com/francoagusto/entities-example I hear suggestions.. Thanks
  18. Hi Everyone, I am developing a multi player 3D motion sensor game' Air Table Tennis', in which mobile is acting as a racket, I am using Quaternion for rotation of mesh, problem is that how to calibrate mobile motion with the mesh in the BJS, though it's moving but its not calibrated. How to set some origin or something that when game start racket on my game screen will be in same position as i am holding my mobile. Sorry for my bad English! Thanks in advance
  19. spacegame

    My latest game. Built with phaser from a tutorial. I then built on the tutorial by adding access to the localstorage api. Here is the link Positive criticism is much appreciated as well as tips for improvements Thanks Pheaset
  20. Hey guys, here's my first post. I made this game around a year ago in 2 days as a demo for someone. The game is the classic old connect 4 game you'd play with siblings in long car rides. It features score keeping, two player mode and an AI that you can play against. Any feedback is greatly appreciated https://sprite-storm.com/game/connect-4/ P.S There is also a link to the github repo on the page above.
  21. Let me introduce my first browser game called Erased. The plot is simple. The black eye monster overshadowed the sun and you must save it. While coloring the picture by the pencils, you are dragged into your drawing where you should jump from one scetch box onto another to reach the boss. Your solar blaster helps you to transform grey boxes into solid yellow ones. Good Luck! http://www.supercoloring.com/erased-puzzle-game
  22. localstorage

    hey guys I'm currently after completing a tutorial at http://zenva.com . I have been working on my knowledge with phaser. anyways, after finishing the tutorial i decided to polish the game. I am new to the localstorage api and was looking for some help. here is my code for the highscore. it currenly doesnt work with localstorage and im not sure why. Any help is much appreciated init: function(score) { var score = score || 0; localStorage.setItem("score", this.highestScore); this.highestScore = this.highestScore = localStorage.getItem("score"); this.highestScore = Math.max(score, this.highestScore); if(this.highestScore === null) { localStorage.setItem("score", "0") this.highestScore = localStorage.getItem("score"); } }, Here is the full file. Just incase its needed var SpaceHipster = SpaceHipster || {}; //title screen SpaceHipster.MainMenu = function(){}; SpaceHipster.MainMenu.prototype = { init: function(score) { var score = score || 0; localStorage.setItem("score", this.highestScore); this.highestScore = this.highestScore = localStorage.getItem("score"); this.highestScore = Math.max(score, this.highestScore); if(this.highestScore === null) { localStorage.setItem("score", "0") this.highestScore = localStorage.getItem("score"); } }, create: function() { //show the space tile, repeated this.background = this.game.add.tileSprite(0, 0, this.game.width, this.game.height, 'space'); //give it speed in x this.background.autoScroll(0, 10); //start game text var text = "Tap to begin"; var style = { font: "30px Arial", fill: "#fff", align: "center" }; var t = this.game.add.text(this.game.width/2, this.game.height/2, text, style); t.anchor.set(0.5); //highest score text = "Highest score: "+this.highestScore; style = { font: "15px Arial", fill: "#fff", align: "center" }; var h = this.game.add.text(this.game.width/2, this.game.height/2 + 50, text, style); h.anchor.set(0.5); }, update: function() { if(this.game.input.activePointer.justPressed()) { this.game.state.start('Game'); } } };
  23. Hey I am currently polishing off my Breakout or Brick-Breaker game (whichever you prefer to call it). I am trying to add music to the game when the start button is pressed and then sound effects every time a brick is destroyed. Unfortunately Phaser keeps saying Key "Sample" is not found in cache. I have tried using Phasers examples and basing the music off that but to no avail. I am new to programming with Phaser and would really appreciate the help. When the game is finished i will post a link. Thanks in Advance Pheaset here is my code var game = new Phaser.Game(480, 320, Phaser.AUTO, null, { preload: preload, create: create, update: update }); var firework;; var music = Phaser.Sound; var lives = 1; var livesText; var lifeLostText; var ball; var paddle; var bricks; var newBrick; var brickInfo; var scoreText; var score = 0; var playing = false; var startButton; function preload() { game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.stage.backgroundColor = '#eee'; game.load.image('ball', 'ball.png'); game.load.image('paddle','paddle.png'); game.load.image('brick', 'img/brick.png') game.load.spritesheet('ball', 'img/wobble.png', 20, 20); game.load.spritesheet('button','button.png', 120, 40); game.load.audio('Good-Riddance', 'Good-Riddance.mp3'); } function create() { game.physics.startSystem(Phaser.Physics.ARCADE); startButton = game.add.button(game.world.width*0.5, game.world.height*0.5, 'button', startGame, this, 1, 0, 2); startButton.anchor.set(0.5); music = game.add.audio('Good-Riddance') this.music = this.add.audio("Good-Riddance") this.game.sound.setDecodedCallback(["Good-Riddance"]); if(playing === true) { music.play() }else{ music.mute = false; }
  24. Game Gurus is expanding again and looking for reliable developers experienced in HTML5 game development. Ideally you would be experienced with: Phaser, PandaJS, CocoonJS and creating iOS apps from HTML5 When applying please send your resume to html5job@gamegurus.com and include "HTML5 Developer" in the subject. Also include your portfolio and expected monthly rate. ------------------- www.GameGurus.com From concept to creation, Game Gurus is a full stack developer of games for smartphones, tablets, and all connected devices. We’ve built games for players to learn about Newton’s laws, corporate leadership, anatomy, or just shoot some hoops. Our experienced team are passionate about combining visually impressive art with highly engaging gameplay to immerse players in exciting new worlds.
  25. Hi everyone, We released the 1st official Grumpy Cat mobile game about 2 months ago and has been downloaded over 3M times on iOS and Android! It has been made in our own game engine called Bento, which is based on HTML5/ JS. You can download it on: iOS Android Here's the trailer: https://youtu.be/7XMuyBoVQzs <iframe width="560" height="315" src="https://www.youtube.com/embed/7XMuyBoVQzs" frameborder="0" allowfullscreen></iframe>