Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
projectSane
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
projectSane
Commits
62f3f3ef
Commit
62f3f3ef
authored
Dec 05, 2021
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rows effect
parent
dd51bf73
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
main.js
js/main.js
+13
-0
NPC.js
object/NPC.js
+2
-0
No files found.
js/main.js
View file @
62f3f3ef
...
...
@@ -19,6 +19,19 @@ Game({
clear
();
//if(Math.floor(tfs%2>1)){
render
(
Levels
[
"Game"
]
);
ctx
.
globalCompositeOperation
=
'color-burn'
;
var
scale
=
ctx
.
lineWidth
=
Camera
.
scale
;
ctx
.
strokeStyle
=
'rgba('
+
[
1
,
1
,
1
]
+
', 0.05)'
;
ctx
.
beginPath
();
for
(
var
i
=
Camera
.
transformY
(
Camera
.
position
[
1
])
%
Camera
.
scale
;
i
<
h
;
i
+=
scale
*
2
){
ctx
.
moveTo
(
0
,
i
);
ctx
.
lineTo
(
w
,
i
);
}
ctx
.
stroke
();
ctx
.
globalCompositeOperation
=
'source-over'
;
//}else{
// render( Levels[ "Dialog" ] );
//}
...
...
object/NPC.js
View file @
62f3f3ef
...
...
@@ -47,6 +47,7 @@ class NPC extends GameObject {
padding
:
[
2
,
1
],
offset
:
[
0
,
4
]
});
//this.debug();
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment