Skip to content

Commit

Permalink
level-0 package
Browse files Browse the repository at this point in the history
  • Loading branch information
jnovikov committed Dec 8, 2023
1 parent 3ced69b commit 191ae79
Show file tree
Hide file tree
Showing 21 changed files with 12 additions and 986 deletions.
132 changes: 0 additions & 132 deletions internal/boss/boss1.go

This file was deleted.

38 changes: 0 additions & 38 deletions internal/damage/bullet.go

This file was deleted.

2 changes: 0 additions & 2 deletions internal/dialog/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ func (sp *StandardProvider) Get(id string) (Dialog, error) {
switch id {
case "test-npc":
return NewDummy("Hello, I'm a test NPC!\n 2 + 2 = ?", "4"), nil
case "wise-tree-task":
return NewWiseTree(), nil
default:
return nil, fmt.Errorf("unknown dialog id: %s", id)
}
Expand Down
71 changes: 0 additions & 71 deletions internal/dialog/wise.go

This file was deleted.

16 changes: 0 additions & 16 deletions internal/engine/collisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,11 @@ func (e *Engine) Collisions(r *geometry.Rectangle) []object.GenericObject {
}
}

for _, t := range e.InvWalls {
if t.Rectangle().Intersects(r) {
result = append(result, t)
}
}

for _, t := range e.NPCs {
if t.Rectangle().Intersects(r) {
result = append(result, t)
}
}

if e.BossV1 != nil && e.BossV1.Rectangle().Intersects(r) {
result = append(result, e.BossV1)
}

for _, t := range e.EnemyBullets {
if t.Rectangle().Intersects(r) {
result = append(result, t)
}
}

return result
}
Loading

0 comments on commit 191ae79

Please sign in to comment.