Coder Social home page Coder Social logo

slw's Introduction

Super Liam World

-100% original amazing platforming game.

Developing

First you'll want to get everything installed:

$ yarn global add flow-bin gulp-cli    # Flow https://flowtype.org/ & Gulp
$ yarn                                 # The actual thing

# or

$ sudo npm i -g flow-bin gulp-cli      # Flow https://flowtype.org/ & Gulp
$ npm install                          # The actual thing

Then you'll want to start getting the app being built:

$ gulp build    # once
$ gulp watch    # for changes

(With watch, whenever you make changes to the src folder, everything will automatically be rebuilt.)

You also need to run a webserver because of browser security rules. Any of these might work:

$ python2 -m SimpleHTTPServer
$ python3 -m http.server
# or try node-http-server: https://www.npmjs.com/package/node-http-server

Also please run flow decently frequently because it might help you with issues and stuff. (Also it would be nice if no errors came from flow!) (Also you should really just get a flow linter or whatever for your favorite text editor. It hopefully exists.)

Credits for things

slw's People

Contributors

bates64 avatar dekrain avatar towerofnix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dekrain pulljosh

slw's Issues

Editor camera position

ATM the editor camera position is completely different from the player position. I think it'd be more helpful if the editor camera followed the player (only as soon as you enter the editor, though, of course).

Small player spritesheet

We need a spritesheet that we can use for the "small Mario" form - e.g. on the World Map and when a mushroom has not been collected yet. (Whatever is found will probably need recolouring)

World Map

We need an overworld and level selector - this should make other features trivial e.g. the death zone sends one back to map.

Make "camera" follow player

Just modifying getDrawnPosition and let view(start/end)(x/y) should do it.. this is what I was having trouble with earlier, though! :P

Can't build

I'm reproduced steps in README.md, but after gulp build I can't run game ;(

WASD controls

Moving with the arrow keys and space is comfortable - right hand on arrow keys, left thumb on spacebar, easy. But in the editor, you use the mouse. So generally you'd have your right hand on the mouse, and.. your left hand on the arrow keys. That doesn't feel very good. Having WASD controls be supported additionally would solve that - right hand on mouse, left on WASD (you could even still have your left thumb on the spacebar if you prefer).

Physics

Kinda important

  • Floor collision
  • Wall collision
  • Ceiling collision

Level editor?

We've been hinting at this for a while - we need a proper level editor for SLW. Editing a single tilemap layer in src/levels.toml is going to get really ugly and it'd be nice to have anyway.

And as we all know, I ❤️ polish, so if we can make the editor Super Mario Maker-like, it'd be awesome 😄

Level saving

Not sure how to go about doing this. I think that going into the editor and then out should probably reload the level, but I'm not sure how well that'll fare with lag in the future (hopefully shouldn't be a problem..).

Think about the goomba tile. When a goomba tile is created, it's immediately replaced with an air tile, and a goomba is spawned. So how do you place and save a goomba tile? It needs to be stored in some way separate from the main tile list (which will be used for saving/loading)..

Go through pipes

This'll be a bit difficult -- the player needs to be rendered under the pipe tiles..

Uglify removes `debugger`

..Which is really annoying.

I've removed uglify from gulp (commented it out) for the time being (locally). It might not be a bad idea to have yet another build script to uglify things but that could be unnecessary, especially early in this project... I wonder if it should be an argument to the gulp/buildJs call? (think gulp watch --uglify)

Crouching / Ground-pounding

See the crouch branch.

Things left to do:

  • Fix this:
    image
  • Get/add crouch/groundpound sprites for state 0 (small player)
  • Get/add groundpound sprite for state 1 (large player)

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.