Hello. Im creating a simple 2d game with a moving ...
# gamedev
m
Hello. Im creating a simple 2d game with a moving pawn and obstacles. Simple geometry. Have no experience with opengl. I think ill use surfaceview and canvas. Does any1 have a simple tutorial that could help me? Thanks in advance
j
Canvas should be good enough for simple stuff. To get started you need an update loop in which you step the game state and a canvas in which you perform your draw calls. The details of how you go about that depend a lot on what your experience and expectations are! I had a go at doing this in a highly inefficient way within Jetpack Compose using an MVVM-style architecture in this grave-yarded side project, but you’d be better off googling something like this, checking discussions on reddit, looking into korge or potentially going through the “first application” flow with an engine like LittleKT.
👍 1