Giter Site home page Giter Site logo

greggman / rockfall Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 2.0 16.18 MB

Rockfall. A game where rocks fall

Home Page: https://greggman.github.io/rockfall/

License: Other

JavaScript 72.74% HTML 5.39% C 21.87%
game games gamedevelopment game-development game-dev boulder-dash boulderdash boulder-dash-game

rockfall's Issues

Fix PC version

Probably need to draw characters with center/middle alignment?

Add Exit

Let player actually complete level

Split Screen Multi-Player

The code already handles 2 players. The tiler can draw multiple sections of the map. Maybe we could split the screen into N pieces (not sure what if any limit for N)

Use a seeded random?

That way you could provide the seed and get the same level? Kind of scary in that if you add anything it will change the outcome. Meaning, adding this would add the responsibility that changing the code and/or adding a new feature does not change what level is generated for a given seed.

Fix Scroll Speed

Because game runs at 10fps and scroll speed is set to 10% that means for each of the 6 displayed frames of a game frame the screen scrolls at 6 different rates.

In other words, lets say the screen needs to scroll 32 pixels (one tile)

It might scroll 32 * 0.1 pixels on frame 1 or 3.2px to position 3.2
Then it would scroll 28.8 * 0.1 pixels on frame 2 to 6.08
Then it would scroll 25.92 * 0.1 pixels on frame 3 to 8.672
As you can see each frame is slower but then jumps up when the player moves further
At frame 6 a game frame ticks and now it's target is 64 pixels.

This stutter is noticeable.

A simple solution is probably just a max velocity of tilesSize / frameRate

Try to add smooth motion

The game is tile based but maybe we could make tiles slide by adding some extra state that the shader can use to draw

Go fullscreen on Android?

seem like I don't want to go fullscreen on desktop (though maybe an icon to do it since most users probably don't know they can do it themselves).

Should I force landscape orientation on android?

Should I force the game to landscape period? I can't force it landscape on iOS but I can detect if the screen is in landscape or portrait and if portrait then draw the screen rotated 90 degrees to tell users to turn the screen

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.