Help me to choose the best API

I want to make my own game engine “Slang”, but I don’t know how I can make it because:

  • I don't know what language will be the primary in my engine.
  • I don't know what API for drawing I can use.

Hi @NataliaKazakiev can you give some more information about what kind of games you are looking to create? This might help others suggest some ideas.

2D cross-platform desktor games

Thanks. Have you tried pygame?

PyGame is a completed game framework, but I want to make new game engine using any drawing API

I would recommend you p5js, I’ve made several games with it. It’s fast and easy to use.

Hmmmmmmmmmmmmmmmmmmm? :confused: :thinking:
“Slang” – can you elaborate?

Not a game framework or library

p5js is a drawing api.

But I want desktor game

I think that this is what you want, it’s Java’s drawing api https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Graphics2D.html

Please mark it as the solution :smiley: to your question.

Sorry I disconnected

I have a question
Can java.Graphics2D render .png images?

Yes : https://docs.oracle.com/javase/tutorial/2d/images/drawimage.html

1 Like

But if I was you I will learn this api with a tutorial on youtube.

This post was flagged by the community and is temporarily hidden.

Stop
Why I can’t mark your answer as “solved”?

I don’t know, but it’s probably because this topic is in the general categorie and not in help.

You cannot mark a post in #general as solution.

3 Likes