Comments (14)
I have a full project example, fully commented, showing this. You can find it at https://github.com/manbeardgames/monogame-aseprite-demo
from monogame-aseprite.
YOU ROCK!!!
I was assuming there were no examples (this is the case with many many monogame packages) so that's why I was not aware you HAVE good examples.
from monogame-aseprite.
What .net frameworks can be used in combination with monogame-aseprite?
Because when I use .NET 6.0 I get a whole lot of errors while those 3 packages are installed
So it can't find anything here, not even monogame :-S
from monogame-aseprite.
When I first open the solution, I get this error (I'm using .NET 6.0):
I'm no expert in all this. Can you help?
from monogame-aseprite.
The 3.8 version should use the netstandard2.1 package automatically, so shouldn't be seeing issues with NET6.
Can you send me some info so I can try to reproduce this.
- Visual Studio Version
- installed MG templates? Or typicaly use the dotnet cli?
- if installed templates, which version is installed?
Let me look into this and I'll reply back soon
from monogame-aseprite.
Hi
Here is all info. I just opened the solution file and have changed it to .NET 6.0. Nothing else changed.
dotnet --list-sdks
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.505 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.604 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
5.0.100 [C:\Program Files\dotnet\sdk]
6.0.201 [C:\Program Files\dotnet\sdk]
-
I use VS2022 community and the MG templates are not found. So I think they don't exist for VS2022 (only for VS2019).
I used the CLI to make a new desktop openGL project for MonoGame. But this works perfectly for other MonoGame code, also when using other packages like MonoGame.Extended. The MGCB editor was installed this way too. -
So no templates used, because they don't exist for VS2022
from monogame-aseprite.
When I first open the solution, I get this error (I'm using .NET 6.0):
I'm no expert in all this. Can you help?
No problems using .NET 6 here.
AsepriteDocumentImporter. This is related to MGCB - no? Have you added the .dll reference.
Like in my Content.mgcb =>
#-------------------------------- References --------------------------------#
/reference:...............nuget\packages\monogame.extended.content.pipeline\3.8.0\tools\MonoGame.Extended.Content.Pipeline.dll
/reference:...............nuget\packages\monogame.aseprite\2.0.3.3\contentFiles\netstandard2.0\MonoGame.Aseprite.ContentPipeline.dll
from monogame-aseprite.
That must be it!
in the editor, there is a reference but it points to something that doesn't exist.
Where can I find MonoGame.Aseprite.ContentPipeline.dll ?
I don't even have a "packages" folder inside my solution while all packages are installed :-S
I thought normally all nuget packages are in such a folder, but I don't have one.
If you have made a VS2022 solution file using CLI in monogame, are packages installed somewhere else maybe?
I can't find the needed DLL
from monogame-aseprite.
The nuget folder is somewhere under your Windows folder. Do a search. The path should be the same as mine from nuget/packages onwards.
Follow this guide:
https://manbeardgames.github.io/monogame-aseprite/getting-started/monogame38installation
from monogame-aseprite.
Thx! I added it and everything is working :)
from monogame-aseprite.
Hi
I have a question about the example.
Why is this method needed?
private bool KeyPressed(Keys key)
{
return _curKeyState.IsKeyDown(key) && _prevKeyState.IsKeyUp(key);
}
Why you need to check the _prevKeyState to know which key is pressed?
I'm not 100% sure why that's needed.
I hope you can explain. I'm still a beginner using this library (and also aseprite)
from monogame-aseprite.
Checking the previous state here allows you to see if a key is pressed once versus being held down.
If you only check the current state each frame while a key is down, then it returns true for every frame
from monogame-aseprite.
Also, to add, that specific method isn't something specific to the library. It's just general key/button state checking for the example project.
from monogame-aseprite.
Original issue was resolved. For general questions, please use our discord
from monogame-aseprite.
Related Issues (20)
- Using shared AnimatedSprite for multiple characters HOT 1
- Centerbounds on imported sprites' 9patch slices are wrong HOT 2
- Replace your AnimatedSprite with MonoGame.Extended.AnimatedSprite HOT 2
- `TextureAtlas.FromRaw()` crashes when processing slices. HOT 2
- Creating issue to test github to discord feed. HOT 1
- `AnimatedSprite.Update(float)` and `AnimatedTilemap.Update(float)` both assume milliseconds when it should be seconds HOT 1
- `Slice.Origin` is not being set
- Dependency on DesktopGL causes DirectX projects to be forced to use OpenGL HOT 7
- [Feature Request]: Add Support For Aseprite 1.3-rc1 HOT 4
- Documentation lists incorrect `MonoGame.Aseprite.Processors` namespace HOT 1
- Error when building content. Pipeline needs reference to MonoGame.Aserpite assembly HOT 2
- broken links HOT 2
- example HOT 5
- [Feature Request]: aseprite 1.3 rc2 support HOT 2
- Slice rendering HOT 2
- [Feature Request]: support for .ase files HOT 1
- Add link to sample project under the "Getting started" section of the documentation. HOT 1
- `AsepriteFile.TryGetSlice(string, out AsepriteSlice)` Always Returns False HOT 1
- README links are all broken HOT 1
- Tilemap with flipped tiles renders in wrong orientation. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monogame-aseprite.