Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  converting java to "C" or "Unity"  (Read 599 times)
0 Members and 1 Guest are viewing this topic.
Offline TFDizzy
« Posted 2014-05-21 23:53:23 »

So, I'm trying to upload my Java game that I'm coming up on finishing. It has roughly 4,500 lines of code, 6 classes, and future updates to come.

The site only accepts C or Unity, of course I could hand convert the code to C, but that'd be a lot of work LOL. I tried a few online Java -> "C" convertors but they don't really work that well. They break my classes down, and make it annoying.
Offline CTucker1327
« Reply #1 - Posted 2014-05-21 23:59:27 »


So what's your question?
Offline TFDizzy
« Reply #2 - Posted 2014-05-22 00:00:32 »

Is there any easier way to convert Java to C or Unity.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #3 - Posted 2014-05-22 00:12:27 »

C does not support classes or any fancy stuff, so any Java->C converter is going to be messy.

As for Unity, I don't think you even have a chance.

The question is, what kind of site only allows C/Unity anyway?
You're better off looking elsewhere.

Offline TFDizzy
« Reply #4 - Posted 2014-05-22 00:14:42 »

I'm trying to upload my game to kongregate, a fairly large gaming ground..
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #5 - Posted 2014-05-22 00:41:51 »

Step 1:
Learn C.

Step 2:
Port Java code to C.

 Wink

Online Rayvolution

JGO Kernel


Medals: 186
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #6 - Posted 2014-05-22 00:53:47 »

Step 1:
Learn C.

Step 2:
Port Java code to C.

 Wink
^ this Cheesy

Once you become fairly decent at java, it's not too terribly hard to port a small game/program to another language. Just a little time consuming.

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline Agro
« Reply #7 - Posted 2014-05-22 00:54:43 »

lol those language converters are lulz

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2014-05-22 01:15:32 »

It doesn't even make sense for Kongregate to accept C source code in the first place. Are you sure that's what they require?

A quick look at their FAQ gives me this: http://www.kongregate.com/pages/help#uploading-q-2
Quote
What format of games can I upload?

We support Flash (swf) files, HTML5, Java, and Unity game files. We do not have any plans to support executables (exe). We also support additional files through an iframe.

 Additionally, games have a maximum file size of 20MB and a maximum width of 800 pixels. There's not a hard height limit but please keep it reasonable to make sure your game is still playable.

Online Rayvolution

JGO Kernel


Medals: 186
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #9 - Posted 2014-05-22 01:15:54 »

lol those language converters are lulz

yeah, there are some that kinda-sorta work, but the irony is half the time you have to pretty much know how to port it manually anyway to fix all the errors. .. and sometimes the errors are so numerous that you'll probably port it faster manually too. Cheesy

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Apache

Senior Newbie


Projects: 1



« Reply #10 - Posted 2014-05-22 02:56:34 »

Well Unity allows for C# scripts which is almost syntactically identical to Java.

Also, Microsoft has an article showing what you'd do in Java and how to do it in C#.

http://msdn.microsoft.com/en-us/library/ms228358(v=vs.90).aspx
Offline PaulReeves

Senior Newbie





« Reply #11 - Posted 2014-05-22 11:36:35 »

As they accept HTML5 the simplest route may be a port to libGDX and then just build the html5 version?
Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (16 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (34 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (31 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (44 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!