Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature fun #2

Open
wants to merge 7 commits into
base: development
Choose a base branch
from
Open

Feature fun #2

wants to merge 7 commits into from

Conversation

dev-oiram
Copy link
Owner

@dev-oiram dev-oiram commented Oct 4, 2021

Introduction

In this update it has been created a more like Game enviroment to make it fun 🥇

Features

  • The ball is finally a circle
  • Added new Game Music to feel adrenaline in the moment you start playing
  • Added sound effects when the ball bounces and when players score a point.
  • When ball bounce off pallet the speed increase but also the players speed increase to get more stamina.
  • Added new Game background instead of the empty white screen.
  • And also moved players more to the center of the screen to leave the goals space visible

VideoDemo

Demo.mp4

create new RoundBall class node and add radius propertie
Remove the square ball and increase speed of players paddle
Add Net Node Class, create textsize varibles for main and second
Add Sound class and implement Game Music
Add bounce and point-score sound effects
Add background, remove body margin and adjust some of objects colors
When players hit the ball their speed also increase
@@ -90,11 +100,13 @@ app.onUpdate = function(time){

app.pause = function(){
if(state == 'GAME'){
music.pause() // Pause Game Music
Copy link
Collaborator

@demiculus demiculus Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

music.pause() isn't descriptive enough so you added // Pause Game Music to make sure the code reader understands right? :D

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, yes I define the "music" object and added some comments when I invoke the methods

}

if(keyName == ' '){
if(state == 'GAME' || state == 'PAUSE')
if(state == 'GAME' || state == 'PAUSE'){
Copy link
Collaborator

@demiculus demiculus Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a typo and the game breaks
maybe you shouldn't use strings huh?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know how to use enum?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, I haven´t use enum before but I can change it and not use strings

@@ -3,17 +3,17 @@
class Player {
constructor(id,app,color,playerNum) {
this.initialY = app.height/2
this.speed = 8
this.speed = 10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ever heard of magic numbers?

You're a true magician putting magic all over the code :D

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You´re right, I should create some constants for those values to be easy to track.

@demiculus
Copy link
Collaborator

  1. Do you have linkedin? If not can you attach your CV or a blurb about your past.
  2. You're missing a lot of simple stuff as I posted above.
  3. I want to see how well you learn before moving forward. Since you've got a lot to learn. Any idea how we should gauge your learning?
  4. Any extra information on top of your linkedin/cv would be beneficial. Like where you are, what you do etc..

@dev-oiram
Copy link
Owner Author

  1. Do you have linkedin? If not can you attach your CV or a blurb about your past.
  2. You're missing a lot of simple stuff as I posted above.
  3. I want to see how well you learn before moving forward. Since you've got a lot to learn. Any idea how we should gauge your learning?
  4. Any extra information on top of your linkedin/cv would be beneficial. Like where you are, what you do etc..

Hi, I don´t have a linkedin account but I can tell you about myself.

  • I live in Mexico and I´m 33 years old
  • I currently work developing web apps for some clients to create and manage their quotations.
  • Me and a friend created a society call DoCode to present ourselves with the clients to start develope their apps
  • We use Django framework for the backend and Vue for the frontend
  • I have spend some time checking game development videos and tutorias and been working with pixijs, phaser and unity

Languages

  • This are some of the languages I´ve worked as developer
  • C++
  • C#
  • Java
  • Python
  • JavaScript
  • TypeScript

´I have always adapted to the language that is require, is true that I´m missing on some of the good practices on coding and to be really honest this is the first time somene review my code, I´ve always reviewed someone else apps functionality and make some code adjustment because of the deadlines to the clients´

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants