fix bugs with various error messages

This commit is contained in:
MitchWeaver
2016-10-14 16:42:26 -05:00
parent 6e5b0ca6fa
commit 329f11cec0
7 changed files with 8 additions and 5 deletions

0
README.md Normal file → Executable file
View File

Binary file not shown.

0
build/sjgs.jar Executable file
View File

0
dep/JMP3-README.txt Normal file → Executable file
View File

0
license.txt Normal file → Executable file
View File

View File

@@ -60,10 +60,10 @@ class __PhysicsDemonstration extends Engine {
for(int row = 1; row < map.length+1; row++)
for(int col = 1; col < level_width+1; col++)
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 '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 'p': player = new ExamplePlayer(TILE_SIZE*col, TILE_SIZE*row, TILE_SIZE, TILE_SIZE*1.5f); 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 '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;
}
}

View File

@@ -18,7 +18,10 @@ from sjgs.graphics import Colors
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.structs.BoundingBox as BoundingBox