Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS375_Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ah3472
CS375_Project
Commits
9fba1fef
Commit
9fba1fef
authored
4 years ago
by
ah3472
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of gitlab.cci.drexel.edu:ah3472/cs375_project into map_stuff
parents
40b07879
c5bf2961
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
homepage_html/game.js
+4
-4
4 additions, 4 deletions
homepage_html/game.js
with
4 additions
and
4 deletions
homepage_html/game.js
+
4
−
4
View file @
9fba1fef
...
...
@@ -81,7 +81,7 @@ function startUpGame() {
nextY
=
p1
.
y
;
p1
.
create_p1
(
app
);
g1
=
new
gun
(
p1
.
x
-
40
,
p1
.
y
-
5
,
p1
.
weapon
,
10
,
50
,
10
);
g1
=
new
gun
(
p1
.
x
-
40
,
p1
.
y
-
5
,
p1
.
weapon
,
10
,
50
,
2
);
g1
.
create_gun
(
app
,
animatedObjects
);
bounds
=
map
.
currentRoom
.
getColliders
(
app
);
...
...
@@ -191,7 +191,7 @@ function randomlySpawnMobs(numMobs) {
for
(
let
i
=
0
;
i
<
numMobs
;
i
++
)
{
let
x
=
Math
.
random
()
*
(
maxX
-
minX
)
+
minX
;
let
y
=
Math
.
random
()
*
(
maxY
-
minY
)
+
minY
;
mob
=
new
Enemy
(
x
,
y
,
5
);
mob
=
new
Enemy
(
x
,
y
,
10
);
mobList
.
push
(
mob
);
map
.
currentRoom
.
enemies
.
push
(
mob
);
mob
.
addToObjectsList
(
animatedObjects
);
...
...
@@ -616,7 +616,7 @@ function pickup(){
g1
.
weapon
=
"
Awp
"
;
g1
.
t_ammo
=
20
;
g1
.
f_ammo
=
5
;
g1
.
dmg
=
2.4
;
g1
.
dmg
=
5
;
wep
.
textures
=
gunAnim
.
awp
;
wep
.
play
();
app
.
stage
.
removeChild
(
box
);
...
...
@@ -625,7 +625,7 @@ function pickup(){
g1
.
weapon
=
"
smg
"
;
g1
.
t_ammo
=
150
;
g1
.
f_ammo
=
25
;
g1
.
dmg
=
1.4
;
g1
.
dmg
=
3
;
wep
.
textures
=
gunAnim
.
smg
;
wep
.
play
();
app
.
stage
.
removeChild
(
box
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment