fix bugs with various error messages
This commit is contained in:
Binary file not shown.
0
build/sjgs.jar
Executable file
0
build/sjgs.jar
Executable file
0
dep/JMP3-README.txt
Normal file → Executable file
0
dep/JMP3-README.txt
Normal file → Executable file
0
license.txt
Normal file → Executable file
0
license.txt
Normal file → Executable file
@@ -60,10 +60,10 @@ class __PhysicsDemonstration extends Engine {
|
|||||||
for(int row = 1; row < map.length+1; row++)
|
for(int row = 1; row < map.length+1; row++)
|
||||||
for(int col = 1; col < level_width+1; col++)
|
for(int col = 1; col < level_width+1; col++)
|
||||||
switch(map[row-1].charAt(col-1)) {
|
switch(map[row-1].charAt(col-1)) {
|
||||||
case 't': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 0, 0); break;
|
case 't': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 0, 0); break;
|
||||||
case 'l': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 100, 0); break;
|
case 'l': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 100, 0); break;
|
||||||
case 'r': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 0, 100 ); break;
|
case 'r': new ExampleTile(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE, 0, 100 ); break;
|
||||||
case 'p': player = new ExamplePlayer(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE*1.5f); break;
|
case 'p': player = new ExamplePlayer(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE*1.5f); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ from sjgs.graphics import Colors
|
|||||||
|
|
||||||
from sjgs.base_objects import *
|
from sjgs.base_objects import *
|
||||||
|
|
||||||
import sjgs.sound.SoundPlayer as SoundPlayer
|
# NOTE: this is deprecated due to moving sound to JMP3 versus inside SJGS.
|
||||||
|
#### In order to use JMP3 inside of SJGS you will need to import the classes inside
|
||||||
|
#### of your project.
|
||||||
|
#import sjgs.sound.SoundPlayer as SoundPlayer
|
||||||
|
|
||||||
import sjgs.physics.Physics as Physics
|
import sjgs.physics.Physics as Physics
|
||||||
import sjgs.physics.structs.BoundingBox as BoundingBox
|
import sjgs.physics.structs.BoundingBox as BoundingBox
|
||||||
|
|||||||
Reference in New Issue
Block a user