alphaparticlecode / block-a-saurus Goto Github PK
View Code? Open in Web Editor NEWA Gutenberg block that lets users play the T-rex game from Chrome right within a post!
License: GNU General Public License v2.0
A Gutenberg block that lets users play the T-rex game from Chrome right within a post!
License: GNU General Public License v2.0
Right now there are classes like .icon
which could conflict with other things on a given site.
Potentially this could be solved by just making it SCSS and nesting everything inside .wp-block-blockasaurus-blockasaurus
.
If the user is currently jumping, another jump action should not be allowed to fire.
In Safari, the AudioContext variable seems to be undefined.
Currently, clicking anywhere in the post seems to trigger a game start.
This will save people from loading our JS file on every page.
We need to make sure that the assets are using the real path of WordPress instead of just using /wp-content/plugins/...
Currently
return (
<img src="/wp-content/plugins/block-a-saurus/dino-cover.png" alt="" />
);
Should really be imported via the file loader, but couldn't figure out how to get the full plugin path on the first pass.
Make sure the dino fills the maximum space available to the icon in the block selector in the editor.
This would essentially invert the colors: dark background, outlines of all the sprites white.
This might require generating a new sprite sheet just for this.
Game should only be able to be started and restarted on click
Once game is activated, capture the space bar event so that the browser can't scroll the post.
Once the game has ended, release the space bar event so the browser once again has control.
Maybe add saving high scores as a toggle option in the inspector
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.