derouinw / jspong Goto Github PK
View Code? Open in Web Editor NEWIt's pong...in Javascript
It's pong...in Javascript
Just general strangeness with the physics. Since it only checks whether it's beyond the paddle, weird things can happen. I've seen it get stuck behind it for a little bit, have it get hit when the paddle is in front of it, etc.
So, todo would be to make a real collision system!
Now that the project is getting so large and it's finally split up, it should be easier to document this thing. I figure we can put it in the wiki and learn the github text stuff too.
I figure I'll do the bulk of it, but if you guys want to learn how the code works, you can read through it too. Especially for you to help learn, Indran.
I'll do a main example with button.js
Change it from being diff in score to actual being a meter (only in sp ofc)
I'm just looking for new ideas for AI to behave. So far we have one that just follows the ball and one that's similar to tennis: it goes to the middle when not following.
Also, the AI's name is Albert.
Plan:
JSPong - Johann Sebastian Pong
Go thru levels named after Bach songs
You have to capture notes from evil guys
Every bounce plays the song's notes in order
Dif levels of success in each level
Each time you get a point it goes up
Each time you lose it goes down
Like bit trip where sound gets cooler as you progress (Michael)
Certain level on each stage to win
Be forewarned, I wrote this last night on my tablet right before I went to bed because that's when it came to me.
This can be added to pause menu, most likely.
This is especially an issue when two bounces are quick one after another.
It will be even worse when we do bg music.
Need something to stop space from starting game right away. Maybe just change the button :P
I'm just thinking that since when they play together, the "harmony" sound like crap. It would be pretty easy to implement.
More raids.
Also actually end the interval, maybe game over screen. DO SOMETHING
Related to collision weirdness: if that happens near the top, the ball will get stuck and just go back and forth or leave the screen. Haven't had it happen at the bottom, but it probably can.
Michael, this sound is messed up. Should be a quick fix.
After you hit play on two player screen, it shows loading screens from all the single player levels before the game starts as normal.
Basically, they should save locally and be loaded at the beginning.
More options like:
Play computer
Play person
Options
Help
After all the levels are done, have a win state.
For the next small update, I want the sound assets and "score" for two songs. That way, we can see how this mechanic works, as well as changing levels.
I think that in the future, we can have this work on mobile devices. HTML5 works there, so I think that if we can put some buttons on screen for them, it'll work. It'll take a lot of work, but I'm thinking far in the future, like 3.0
I'm thinking that there can be light bg music that corresponds to the current success level.
Michael, you can use the .gitignore file to pick certain extensions to ignore, so you don't have to manually deselect them every commit.
Sometimes, sounds just go silent. @dsmith88 I'd like to know the certain conditions under which this happens.
Mouse control bounces around when close. Need a way to fix this without exploit.
Fix please.
Hey, I want you guys to get a dif avatar so I can distinguish you quickly. It's pretty quick and easy.
Continued pressing of the spacebar will keep resetting the velocity.
In single player, we'll have multiple levels with a screen in between. This should be implemented in the load game state. It could potentially contain story text, load bar (prob not needed) and stats or something.
Hey, I want you guys to get a dif avatar so I can distinguish you quickly. It's pretty quick and easy.
Options:
Add some padding
Change the colors around
Add images
What I'm thinking is that we can have the song reset when you score/lose a point and there's a secondary goal to play it all the way through for a combo. Maybe it could count as a point as well. This would also encourage longer songs. What do you guys think?
At fast speeds, ball can go thru paddle
Really, we just need to make a better system.
either two row or split halves, but a 4 player mode might be cool
Pretty self explanatory.
Ball gets stuck on paddle bouncing rapidly if moved just before hitting the ball. Very precise for bug to occur but still needs fixing
At every paddle hit, HEIGHT_PLAYER gets smaller.
I'm thinking that for the bg music, it will consist of the same sounds that are used by the bounces. I'm thinking that it can switch immediately since I can use currentTime
For the next minor update, I want the sounds for all notes for however many octaves we need for two levels. I want to be able to work with it so we can finally implement this major gameplay element.
Michael, I'm assigning you to this, since you're the sound guy.
We need a team name so I can make an organization that will help a lot.
I was just thinking that along with cooler sounds and bg music, we could have something enhancing in the background, like soft cheering.
The main file is getting pretty big. It's probably smarter to spread it out. It should work with JS.
Boxes for buttons, boxes for menus, boxes for players! Make it look good!
I want the buttons to work differently. Instead of setting their locations manually, they'll be decided by the menu controller.
Working with Bill's idea, we could get a bonus round without an opponent or with a flawless opponent with the goal to volley until the riff is finished. It won't interrupt the game and would provide a nice interlude after a level, as well as give us a chance to link to the song on youtube. It won't distract from the competive level and gives the player a chance to appreciate the music.
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.