mirror of
https://github.com/genxium/DelayNoMore
synced 2025-10-09 08:36:52 +00:00
Fixes for backend collision handling.
This commit is contained in:
@@ -86,7 +86,7 @@ type Game struct {
|
||||
func NewGame() *Game {
|
||||
|
||||
// stageName := "simple" // Use this for calibration
|
||||
stageName := "simple2"
|
||||
stageName := "richsoil"
|
||||
stageDiscreteW, stageDiscreteH, stageTileW, stageTileH, playerPosMap, barrierMap, err := parseStage(stageName)
|
||||
if nil != err {
|
||||
panic(err)
|
||||
|
@@ -46,7 +46,9 @@ func NewWorldColliderDisplay(game *Game, stageDiscreteW, stageDiscreteH, stageTi
|
||||
}
|
||||
|
||||
barrierLocalId := 0
|
||||
for _, barrier := range barrierList {
|
||||
for _, barrierUnaligned := range barrierList {
|
||||
barrier := AlignPolygon2DToBoundingBox(barrierUnaligned)
|
||||
|
||||
var w float64 = 0
|
||||
var h float64 = 0
|
||||
|
||||
@@ -99,7 +101,7 @@ func (world *WorldColliderDisplay) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
}
|
||||
|
||||
// world.Game.DebugDraw(screen, world.Space)
|
||||
world.Game.DebugDraw(screen, world.Space)
|
||||
|
||||
if world.Game.ShowHelpText {
|
||||
|
||||
|
Reference in New Issue
Block a user