remove bin
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,43 +0,0 @@
|
||||
# mob will travel around a given rectangle -- think like in early stages of metroid
|
||||
# territory === given rectangle
|
||||
def mob_travel_around_rectangle_ai(mob, territory, speed, clockWise):
|
||||
fullBounds = mob.getFullBounds()
|
||||
rightBounds = mob.getRightBounds()
|
||||
leftBounds = mob.getLeftBounds()
|
||||
topBounds = mob.getTopBounds()
|
||||
bottomBounds = mob.getBottomBounds()
|
||||
|
||||
top = territory.getTop()
|
||||
right = territory.getRight()
|
||||
left = territory.getLeft()
|
||||
bottom = territory.getBottom()
|
||||
|
||||
if clockWise:
|
||||
if fullBounds.intersects(right) and not fullBounds.intersects(bottom):
|
||||
mob.setVelocity(0, speed)
|
||||
mob.setX(territory.pos.x + territory.getWidth())
|
||||
mob.setY(restrict(mob.getY(), territory.getY() - 2))
|
||||
elif fullBounds.intersects(top):
|
||||
mob.setVelocity(speed, 0)
|
||||
mob.setY(territory.pos.y - mob.getHeight())
|
||||
mob.setX(restrict(mob.getX(), territory.getX() - 1))
|
||||
elif fullBounds.intersects(left) and not fullBounds.intersects(top) and not topBounds.intersects(bottom):
|
||||
mob.setVelocity(0, -speed)
|
||||
mob.setX(territory.pos.x - mob.getHeight())
|
||||
elif fullBounds.intersects(bottom):
|
||||
mob.setVelocity(-speed, 0)
|
||||
mob.setY(territory.pos.y + 2 + mob.getHeight())
|
||||
else:
|
||||
if fullBounds.intersects(right) and not fullBounds.intersects(top):
|
||||
mob.setVelocity(0, -speed)
|
||||
mob.setX(territory.pos.x + territory.getWidth())
|
||||
mob.setY(restrict(mob.getY(), territory.getY() - 2))
|
||||
elif fullBounds.intersects(top) and not fullBounds.intersects(left):
|
||||
mob.setVelocity(-speed, 0)
|
||||
mob.setY(territory.pos.y - mob.getHeight())
|
||||
elif fullBounds.intersects(bottom) and not fullBounds.intersects(right):
|
||||
mob.setVelocity(speed, 0)
|
||||
mob.setY(territory.pos.y + mob.getHeight() + 2)
|
||||
elif fullBounds.intersects(left):
|
||||
mob.setVelocity(0, speed)
|
||||
mob.setX(territory.pos.x - mob.getHeight())
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,46 +0,0 @@
|
||||
### Java standard library imports
|
||||
from java.lang.Math import *
|
||||
from java.lang import Integer, Float, Double
|
||||
|
||||
### engine imports
|
||||
from sjgs.core import Engine as Engine
|
||||
from sjgs.core import Camera as Camera
|
||||
from sjgs.core import Handler as Handler
|
||||
|
||||
import sjgs.core.input.Mouse as Mouse
|
||||
|
||||
import sjgs.enums.Facing as Facing
|
||||
import sjgs.enums.TickRate as TickRate
|
||||
import sjgs.enums.Type as Type
|
||||
|
||||
from sjgs.graphics.Colors import *
|
||||
from sjgs.graphics import Colors
|
||||
|
||||
from sjgs.base_objects import *
|
||||
|
||||
import sjgs.sound.SoundPlayer as SoundPlayer
|
||||
|
||||
import sjgs.physics.Physics as Physics
|
||||
import sjgs.physics.structs.BoundingBox as BoundingBox
|
||||
import sjgs.physics.structs.CollisionResponse as CollisionResponse
|
||||
|
||||
from sjgs.utils.Utils import *
|
||||
import sjgs.utils.Utils
|
||||
|
||||
import sjgs.utils.tools.Timer as Timer
|
||||
|
||||
import sjgs.utils.encryption.StrongCaesarCipher
|
||||
|
||||
import sjgs.utils.data_structures.Stack as Stack
|
||||
from sjgs.utils.data_structures.shapes import *
|
||||
from sjgs.utils.data_structures.vectors import *
|
||||
from sjgs.utils.data_structures.gaming import *
|
||||
import sjgs.utils.data_structures.shapes.Rectangle as Rectangle
|
||||
import sjgs.utils.data_structures.vectors.Point2f as Point2f
|
||||
import sjgs.utils.data_structures.vectors.SimplePoint as SimplePoint
|
||||
import sjgs.utils.data_structures.shapes.Line as Line
|
||||
|
||||
|
||||
from sjgs.graphics.ui.InventorySystemSlot import EMPTY
|
||||
import sjgs.graphics.ui.InventorySystem as InventorySystem
|
||||
import sjgs.graphics.ui.InventorySystemSlot as InventorySystemSlot
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user