This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .idea and macOS junk to gitignore * Update modules * Scale speed system using global scale * Rename character system to action and fix speed * Break character code out of system to util * Rename system to action to reflect this * Fix speed system by using delta only once
- Loading branch information
Showing
24 changed files
with
670 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# Tiled session data can cause weird issues | ||
*.tiled-session | ||
|
||
# build data | ||
bin | ||
|
||
# macOS junk | ||
.DS_Store | ||
|
||
# JetBrains IDE stuff | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package action | ||
|
||
// ActionComponent marks entities for use with a ActionSystem. | ||
type ActionComponent struct { | ||
Schedule | ||
} | ||
|
||
// GetActionComponent provides type safe access to ActionComponent. | ||
func (ac *ActionComponent) GetActionComponent() *ActionComponent { | ||
return ac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package action | ||
|
||
// Animation names for Entities to implement, | ||
// used by ActionSystem to trigger Animations. | ||
const ( | ||
AnimationMoveUp string = "MoveUp" | ||
AnimationMoveDown string = "MoveDown" | ||
AnimationMoveLeft string = "MoveLeft" | ||
AnimationMoveRight string = "MoveRight" | ||
AnimationStopUp string = "StopUp" | ||
AnimationStopDown string = "StopDown" | ||
AnimationStopLeft string = "StopLeft" | ||
AnimationStopRight string = "StopRight" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.