Jump to content

Search the Community

Showing results for tags 'barrier'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 2 results

  1. Play the game! Video Trailer Snake Runner is a fast paced top-down endless runner game inspired by the classic Snake game. It introduces a new gameplay concept based on a single tap control movement scheme. Your goal is to move the snake through an endless dungeon trying to survive as long as possible. You need to eat all food on your way and avoid all deadly obstacles such as walls, barriers, electric fields and so on. To control the snake just press space bar or left click to turn the snake 90 degree's towards the closest pickup!
  2. Hi.I am in a bit of a pickle and need some advice please.I need to complete a project but I do not have much knowledge in Javascript.Help needed with: 1. LEFT and RIGHT need to rotate the ant 90 degrees in the specified direction without changing the position of the insect. 2. The ant cannot fall off the table (Invisible barrier maybe?)Current code:<!DOCTYPE HTML><html lang="en-US"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /><title>Ant Movement</title><style type="text/css">#container {height: 500px;width: 500px;position: relative;font-size: 14px;} #guy { position:absolute; height:50px; width:50px; padding:20px;}body {background-image: url(Page not found – Boxmazebackground-repeat: no-repeat;}</style></head><body><div align="center" id="container"><div id="guy"><img alt="The Pulpit Rock" height="60" id="myImg" src="http://boxmaze.co.za/derivco/images/insect.png" width="43" /></div></div><script type="text/javascript">var guy = document.getElementById("guy"); var container = document.getElementById("container"); var guyLeft = 0; var y = 0; function anim(e) { if (e.keyCode == 39) { guyLeft += 1; guy.style.left = guyLeft + "px"; } else if (e.keyCode == 37) {guyLeft -= 1; guy.style.left = guyLeft + "px"; }else if (e.keyCode == 40) {y += 1; guy.style.top = y + "px"; }else if (e.keyCode == 38) {y -= 1; guy.style.top = y + "px"; }} document.onkeydown = anim;</script><p></p></body></html>
×
×
  • Create New...