Skip to content

Commit

Permalink
Vector is setup and a little bit of entity setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Oct 9, 2023
1 parent 5770b9a commit 16934db
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webzen/entity/entity.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//go:build js && wasm
// +build js,wasm

package entity
13 changes: 13 additions & 0 deletions src/webzen/vector/vector.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//go:build js && wasm
// +build js,wasm

package vector

type Vector2D struct {
x int
y int
}

func NewVector2D(x, y int) Vector2D {
return Vector2D{x, y}
}

0 comments on commit 16934db

Please sign in to comment.