File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " elpy" ,
3
- "version" : " 1.1.15 " ,
3
+ "version" : " 1.1.16 " ,
4
4
"description" : " 2D JavaScript game engine." ,
5
5
"author" : " space2pacman" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class EngineObject {
50
50
custom : options . custom || null ,
51
51
color : options . color || 'black' ,
52
52
image : {
53
- src : ( typeof options . image === 'object' && options . image !== null ? options . image . path : options . image ) || null ,
53
+ path : ( typeof options . image === 'object' && options . image !== null ? options . image . path : options . image ) || null ,
54
54
repeat : ( typeof options . image === 'object' && options . image !== null ? options . image . repeat : false ) || false ,
55
55
rendering : false ,
56
56
cached : null
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ class Engine {
267
267
return new Promise ( resolve => {
268
268
const image = new Image ( ) ;
269
269
270
- image . path = url ;
270
+ image . src = url ;
271
271
272
272
image . addEventListener ( 'load' , ( ) => {
273
273
if ( state ) {
You can’t perform that action at this time.
0 commit comments