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
377ae54e
Commit
377ae54e
authored
Aug 28, 2020
by
ah3472
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of gitlab.cci.drexel.edu:ah3472/cs375_project into map_stuff
I still dk what this thing is
parents
66db942d
7da96cb4
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
+10
-0
10 additions, 0 deletions
homepage_html/game.js
with
10 additions
and
0 deletions
homepage_html/game.js
+
10
−
0
View file @
377ae54e
...
@@ -50,6 +50,14 @@ let mobList = [];
...
@@ -50,6 +50,14 @@ let mobList = [];
let
bounds
;
let
bounds
;
let
playerCollided
;
let
playerCollided
;
let
score
=
0
;
let
something
=
"
Score:
"
+
score
;
let
txt
=
new
PIXI
.
Text
(
something
,{
fontFamily
:
"
Arial
"
,
fontSize
:
15
,
fill
:
"
#FFFFFF
"
});
txt
.
x
=
app
.
view
.
width
/
10
;
txt
.
y
=
app
.
view
.
height
/
4
;
txt
.
anchor
.
set
=
0.5
;
app
.
stage
.
addChild
(
txt
);
let
nextX
;
let
nextX
;
let
nextY
;
let
nextY
;
...
@@ -430,6 +438,8 @@ function bulletCollider(delta){
...
@@ -430,6 +438,8 @@ function bulletCollider(delta){
app
.
stage
.
removeChild
(
map
.
currentRoom
.
enemies
[
j
].
sprite
);
app
.
stage
.
removeChild
(
map
.
currentRoom
.
enemies
[
j
].
sprite
);
map
.
currentRoom
.
numOfEnemies
--
;
map
.
currentRoom
.
numOfEnemies
--
;
map
.
currentRoom
.
enemies
.
splice
(
j
,
1
);
map
.
currentRoom
.
enemies
.
splice
(
j
,
1
);
score
+=
100
;
txt
.
text
=
"
Score:
"
+
score
;
}
}
}
}
}
}
...
...
...
...
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
sign in
to comment