greggman / rockfall Goto Github PK
View Code? Open in Web Editor NEWRockfall. A game where rocks fall
Home Page: https://greggman.github.io/rockfall/
License: Other
Rockfall. A game where rocks fall
Home Page: https://greggman.github.io/rockfall/
License: Other
I've used Tiled in the past but maybe there is an online editor (or maybe I should make one)
Add your levels here
Probably need to draw characters with center/middle alignment?
Let player actually complete level
Maybe just set css
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)
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.
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
The game is tile based but maybe we could make tiles slide by adding some extra state that the shader can use to draw
When loading a level, scan for starting and ending positions. If there's more than 1, pick one at random. If there are zero then use defaults.
Sometimes tiles have edges the shouldn't
Use better graphics instead of emoji
provide some way to load/select levels
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.