File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " elpy" ,
3- "version" : " 1.1.15 " ,
3+ "version" : " 1.1.16 " ,
44 "description" : " 2D JavaScript game engine." ,
55 "author" : " space2pacman" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class EngineObject {
5050 custom : options . custom || null ,
5151 color : options . color || 'black' ,
5252 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 ,
5454 repeat : ( typeof options . image === 'object' && options . image !== null ? options . image . repeat : false ) || false ,
5555 rendering : false ,
5656 cached : null
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ class Engine {
267267 return new Promise ( resolve => {
268268 const image = new Image ( ) ;
269269
270- image . path = url ;
270+ image . src = url ;
271271
272272 image . addEventListener ( 'load' , ( ) => {
273273 if ( state ) {
You can’t perform that action at this time.
0 commit comments