Code Monkey home page Code Monkey logo

game-off-2021's Introduction

Game off 2021 entry

Main Tech

  • Haxe
  • HaxeFlixel
  • Echo Physics

Dev Tech

  • Lix
  • NPM
  • Concurrently
  • Watchman
  • Http Server

Controls

  • A, Left arrow: Move right
  • D, Right arrow: Move left
  • W, Up arrow, Spacebar: Jump
  • Shift: Push objects
  • R: Reset to last checkpoint
  • ESC: Pause

Dev Notes

js.Browser.console.log(); js.Lib.Debug();

Installing Echo-Flixel with Lix

lix install gh:AustinEast/echo-flixel

Adjusting player deadzone helper

final deadZone = new FlxSprite(((FlxG.camera.width - (player.width)) / 2) - 200, ((FlxG.camera.height - player.height) / 2 - player.height * 0.25)).makeGraphic(Std.int(player.width), Std.int(player.height), 0xFF000000);
add(deadZone);
var a = 35;
var b = 237;
var y = [[71, 138], [125, 88.5], [205.5, 48], [275, 33], [350, 39.5], [418, 65.5], [445.5, 88.5]];
var newY = y.map(x =>  [x[0] - a, x[1] - b]);

fixing safari issue with sound

static public function playTargetSound(path:String, [other sound args]) {
  #if web
  FlxG.sound.play(path+".mp3", [other sound args]);
  #else
  FlxG.sound.play(path+".ogg", [other sound args]);
  #end
}

Todo

  • Finish adding sounds
  • Add text prompts
  • Pause screen
  • Fix pixel mode

Post Jam changes

  • Gamepad controls
  • Screen shake if player jumps too high
  • Climb down ability
  • Add shadow
  • Roll animation for jumping off high points
  • Increment deaths

game-off-2021's People

Contributors

richardbray avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.