-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
275 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ "frames": [ | ||
{ | ||
"filename": "Normal-0", | ||
"frame": { "x": 1, "y": 1, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "Hover-1", | ||
"frame": { "x": 381, "y": 1, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
} | ||
], | ||
"meta": { | ||
"app": "https://www.aseprite.org/", | ||
"version": "1.3-rc6-x64", | ||
"image": "Button.png", | ||
"format": "RGBA8888", | ||
"size": { "w": 760, "h": 145 }, | ||
"scale": "1", | ||
"frameTags": [ | ||
{ "name": "Normal", "from": 0, "to": 0, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "Hover", "from": 1, "to": 1, "direction": "forward", "color": "#000000ff" } | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,73 @@ | ||
{ "frames": [ | ||
{ | ||
"filename": "Start-0", | ||
"frame": { "x": 1, "y": 1, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "StartHover-1", | ||
"frame": { "x": 381, "y": 1, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "HowToPlay-2", | ||
"frame": { "x": 761, "y": 1, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "HowToPlayHover-3", | ||
"frame": { "x": 1, "y": 146, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "Credits-4", | ||
"frame": { "x": 381, "y": 146, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
}, | ||
{ | ||
"filename": "CreditsHover-5", | ||
"frame": { "x": 761, "y": 146, "w": 378, "h": 143 }, | ||
"rotated": false, | ||
"trimmed": false, | ||
"spriteSourceSize": { "x": 0, "y": 0, "w": 378, "h": 143 }, | ||
"sourceSize": { "w": 378, "h": 143 }, | ||
"duration": 100 | ||
} | ||
], | ||
"meta": { | ||
"app": "https://www.aseprite.org/", | ||
"version": "1.3-rc6-x64", | ||
"image": "words.png", | ||
"format": "RGBA8888", | ||
"size": { "w": 1140, "h": 290 }, | ||
"scale": "1", | ||
"frameTags": [ | ||
{ "name": "Start", "from": 0, "to": 0, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "StartHover", "from": 1, "to": 1, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "HowToPlay", "from": 2, "to": 2, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "HowToPlayHover", "from": 3, "to": 3, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "Credits", "from": 4, "to": 4, "direction": "forward", "color": "#000000ff" }, | ||
{ "name": "CreditsHover", "from": 5, "to": 5, "direction": "forward", "color": "#000000ff" } | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
using NovemberPirates.Components; | ||
|
||
namespace NovemberPirates.Scenes.Menus.Components | ||
{ | ||
internal class SpriteButton : UiTitle | ||
{ | ||
internal Sprite ButtonSprite; | ||
internal Sprite TextSprite; | ||
internal Action Action { get; set; } = () => { }; | ||
} | ||
} |
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,15 +1,22 @@ | ||
using NovemberPirates.Scenes.Menus.Systems; | ||
using NovemberPirates.Scenes.Menus.Components; | ||
using NovemberPirates.Scenes.Menus.Systems; | ||
|
||
namespace NovemberPirates.Scenes.Menus.MainMenu | ||
{ | ||
internal class CreditsScene : BaseScene | ||
{ | ||
public CreditsScene() | ||
{ | ||
|
||
Systems.Add(new MenuSystem()); | ||
|
||
|
||
World.Create(new UiButton | ||
{ | ||
Text = "Back", | ||
Action = () => | ||
{ | ||
NovemberPiratesEngine.Instance.ActiveScene = new MainMenuScene(); | ||
}, | ||
Order = 5 | ||
}); | ||
} | ||
} | ||
} |
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,53 @@ | ||
using NovemberPirates.Scenes.Menus.Components; | ||
using NovemberPirates.Scenes.Menus.Systems; | ||
|
||
namespace NovemberPirates.Scenes.Menus.MainMenu | ||
{ | ||
internal class PauseScene : BaseScene | ||
{ | ||
public PauseScene(BaseScene lastScene) | ||
{ | ||
Systems.Add(new MenuSystem()); | ||
|
||
World.Create(new UiButton | ||
{ | ||
Text = "Resume", | ||
Action = () => | ||
{ | ||
NovemberPiratesEngine.Instance.ActiveScene = lastScene; | ||
}, | ||
Order = 1 | ||
}); | ||
|
||
World.Create(new UiButton | ||
{ | ||
Text = "Settings", | ||
Action = () => | ||
{ | ||
//NovemberPiratesEngine.Instance.ActiveScene = new MainMenuScene(); | ||
}, | ||
Order = 2 | ||
}); | ||
|
||
World.Create(new UiButton | ||
{ | ||
Text = "Main Menu", | ||
Action = () => | ||
{ | ||
NovemberPiratesEngine.Instance.ActiveScene = new MainMenuScene(); | ||
}, | ||
Order = 3 | ||
}); | ||
|
||
World.Create(new UiButton | ||
{ | ||
Text = "Exit Game", | ||
Action = () => | ||
{ | ||
Environment.Exit(0); | ||
}, | ||
Order = 5 | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.