end3r / gamedev-canvas-workshop Goto Github PK
View Code? Open in Web Editor NEWLearn how to build 2D HTML5 Breakout game with pure JavaScript
Home Page: https://breakout.enclavegames.com
License: Other
Learn how to build 2D HTML5 Breakout game with pure JavaScript
Home Page: https://breakout.enclavegames.com
License: Other
Hello @end3r
I was reading the Mozilla page and it is says MDN content is under CC-BY-SA (https://developer.mozilla.org/en-US/docs/MDN/About#Copyrights_and_licenses) and the code is public domain, however your repo doesn't also have this license.
Can you add a CC and PD license to your repo as well so people can legally use your repo and the MDN page together?
In the keyDownHandler
and keyUpHandler
the KeyboardEvent.keyCode
API is deprecated.
See details here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
Would you accept a PR that changes the deprecated KeyboardEvent.keyCode
calls to the recommended KeyboardEvent.code
?
From MDN
In Setting up the brick variables section, you wrote " It will contain the brick columns (c), which in turn will contain the brick rows (r)...".
However, in Brick Drawing Logic, you wrote "Each brickX position is worked out as brickWidth + brickPadding, multiplied by the row number, c, plus the brickOffsetLeft; the logic for the brickY is identical except that it uses the values for column number, r, brickHeight, and brickOffsetTop."
For the latter, shouldn't it be "multiplied by the column number, c... ... row number, r..."? Because in your loop definition, when c=0, (ie. you're drawing the first column), then r=0, then r=1, r=2, the x's and y's that are returned are: [(30,30), (30,60), (30,90)]
As I understand it, columns go left to right, therefore describing things in the horizontal position, ie. the x values, and rows go up to down, therefore describing things in the vertical position, ie. the y values.
Please ignore this if I understand it wrong.
When the ball hits the bottom wall the game over alert pops up infinitely in chrome and the ball sinks into the bottom wall with each alert.
Didn't check in firefox if the issue persists there.
Where to edit the movement speed of the ball?
Hello wonderful people,
I am working on Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=514294
I was wondering if I could use your game to include as an example. For this to be used inside Eclipse Open Source, the licensing must be clear. Is this open-source, and if so, what is the license?
I propose we refactor the code to introduce ternary operators into this workshop.
keyDownHandler(e)
and keyUpHandler(e)
could easily be refactored. Maybe just refactoring one for comparison purposes, and leave the other the way it is.
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.