Stigl
Stigl
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
monogame does not
19 replies
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
well you can convert it but stiring it for long time could be bad etc.
19 replies
CC#
Created by Stigl on 12/18/2023 in #help
✅ Problem with SIlk.Net.OpenGL
/close
4 replies
CC#
Created by Stigl on 12/18/2023 in #help
✅ Problem with SIlk.Net.OpenGL
Nevermind, doing gl.Clear(ClearBufferMask.ColorBufferBit); fixed it
4 replies
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
Same applies to things like Draw method inside Bullet etc. you can eighter call the function directly without having to cast it trough the child method, or just redirect it (it should be more optimized) like this public override void Draw(SpriteBatch pSpriteBatch) => base.Draw(pSpriteBatch);
19 replies
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
And also if you can, when you will publish it please replace the TakeDamage method with just making the health public. Calling method is a lot slower
19 replies
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
And also i think using Vector2 for the position is kindof useless since you can use just short (that only matters if you have a large amount of game objects)
19 replies
CC#
Created by Tycho on 12/18/2023 in #help
MonoGame - inheritance implementation.
I think the ChangeScreenSize is uselless, the window should resize automatically
19 replies