Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ update
Method
update
assets/js/shooting_game.js:114–121 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
112
}
113
114
update() {
115
this.draw()
116
this.velocity.x *= friction
117
this.velocity.y *= friction
118
this.x = this.x + this.velocity.x
119
this.y = this.y + this.velocity.y
120
this.alpha -= 0.01
121
}
122
}
123
124
//expansão do especial
Callers
nothing calls this directly
Calls
1
draw
Method · 0.95
Tested by
no test coverage detected