Author Topic: Which language should I use?  (Read 5010 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Which language should I use?
« on: October 16, 2011, 04:42:12 pm »
I had an idea for a computer game (it can't really be made for calculators that I have :(), I won't give many details, but I can say the following:

* It's a maze game;
* It's a strategy/thinking game;
* It requires a tilemapping system;
* It requires colours and images;
* It requires sound;
* Close source is a +, unlike all of my other software;

So I thought of the following ways of making it:
- Use the playn library so that I can code it in Java and have it released for Android, HTML5, Java and Flash;
- Use C/C++ with SDL and have it released for all operating systems;
- Use Java and have it released both as a Web App and a desktop App;
- Use HTML5/Javascript; (too complicated)

It's basically Java vs C++... With C++ I can make sure it's closed source and make it fast. But if it were Java, I could distribute Web Applications, and that would be cool, so that people don't have to make downloads. Oh! And I can use Java with playn or Java without playn, that's also a problem.

What do you think? Thanks!
« Last Edit: October 16, 2011, 04:42:38 pm by ephan »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Which language should I use?
« Reply #1 on: October 16, 2011, 04:44:51 pm »
How much speed do you actually need? Java can produce somewhat fast games like Minecraft if you're willing to devote enough CPU to it and you can obfuscate the compiled bytecode to prevent [simple] reverse engineering to make it closed source.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Which language should I use?
« Reply #2 on: October 16, 2011, 04:45:58 pm »
How much speed do you actually need? Java can produce somewhat fast games like Minecraft if you're willing to devote enough CPU to it and you can obfuscate the compiled bytecode to prevent [simple] reverse engineering to make it closed source.

Not much speed. I need 2D Graphics based on images, no 3D, and pretty much is based on images. Oh and there's also the downside that people need Java to run my game, but that's not a big issue these days, is it?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Which language should I use?
« Reply #3 on: October 16, 2011, 04:47:01 pm »
Given that, Java seems like the way to go, since it really is a universal standard on almost all devices with any sort of CPU.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Which language should I use?
« Reply #4 on: October 16, 2011, 04:48:18 pm »
Given that, Java seems like the way to go, since it really is a universal standard on almost all devices with any sort of CPU.

Hm... Do you have any recommendation on what library I should use? I know Minecraft uses some library that has OpenGL bindings. However, I'm not sure if I need that. Probably I could just use Swing or AWT with the respective Graphics component.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Which language should I use?
« Reply #5 on: October 16, 2011, 04:51:01 pm »
I would suggest C++ with the SFML library. SFML is actually quite good and developer friendly from what I hear about it between it and SDL.

Oh, and SFML is great for 2D games. :D

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Which language should I use?
« Reply #6 on: October 19, 2011, 12:35:16 pm »
I would suggest C++ with the SFML library. SFML is actually quite good and developer friendly from what I hear about it between it and SDL.

Oh, and SFML is great for 2D games. :D

I just checked out SFML, looks cool, but I think SDL has more documentation, and I prefer SDL because of that.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Which language should I use?
« Reply #7 on: October 19, 2011, 03:38:53 pm »
Are you planning to post updates on the game here if it starts being worked on?  As for java you should probably avoid it unless it's a simple game, though (ie, nothing like Minecraft :P)
« Last Edit: October 19, 2011, 03:39:34 pm by DJ_O »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Which language should I use?
« Reply #8 on: October 20, 2011, 04:12:44 pm »
Are you planning to post updates on the game here if it starts being worked on?  As for java you should probably avoid it unless it's a simple game, though (ie, nothing like Minecraft :P)

I will make a topic on it when I have some progress. I have finished the game design for now. I have to plan the code structure now.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Which language should I use?
« Reply #9 on: October 20, 2011, 09:18:01 pm »
Ah ok. GOod luck :)