Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit b3249dd

Browse files
authored
Update README.md
1 parent 8d5d54a commit b3249dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ after display function put this -
6060
if(bulletx[f]<width && bulletx[f]>0 && bullety[f]<height && bullety[f]>0) {
6161

6262
//adds the bulletx and bullety of each bullet
63-
bulletx[f] += (cos(lastTheta[f])*lastx[f])*0.01 // change 0.01 to something else if you want your bullet to be faster or slower
64-
bullety[f] += (sin(lastTheta[f])*lasty[f])*0.01 // change 0.01 to something else if you want your bullet to be faster or slower
63+
bulletx[f] += (cos(lastTheta[f])*40) // change 40 to something else if you want your bullet to be faster or slower
64+
bullety[f] += (sin(lastTheta[f])*40) // change 40 to something else if you want your bullet to be faster or slower
6565
drawPoint(bulletx[f], bullety[f]) // this draws the bullet with a simple point function ( you can make it something else )
6666
}
6767
// remove bullet if goes off screen (or hits astroid later)

0 commit comments

Comments
 (0)