1. Eu To Java?
- Posted by Mike The Spike <mtsreborn at yahoo.com> Feb 02, 2001
- 415 views
Well, I was bored (like always..) so I started coocking up miniature graphic sprites.. One was Santa in a wheel chair, shaking his walking stick (lol!). I thought: "Hey! Let's make a cool MTS-quality game out of this!". MTS-quality meaning a game like you have never played before. So I started coding this in Euphoria. Basically, you are Santa Claus who's in a wheel chair, driving off a snowy cliff. After a few seconds of moving around, a duck flies by and breaks the silense with a 'QUACK! QUACK!', and then drops a turd on you, wich you must seek to avoid. Following the duck is not a flow of other ducks, but a few hundreds war army heads, UFO's and guided missles, all at once blazing through your screen trying to take you out. You as Santa must, offcourse, defend yourself by waving your walking stick in the air while cursing. Crazy ass game huh? Well, it's crappy to release such a game to the net as a DOS or Windows app, no one will play it, but it'd be nice if I'd set up a wab page with all kinds of crazy games written in Euphoria, AS JAVA APPLETS. I thought this was possible using David's Eu To Java translator, but apparantly he's taking the same path Rob took (ie. finally create a Eu To Foo translator, and then don't tap into Foo's supperior native features over Eu). So David, Java is so great because you can plug any Java app into your web page and your browser will execute it. If only we could code Eu programs, translate to Java, and stick it in a web page. Speed don't matter that much, but functionality does. I'm gonna have to hand-port the translated program to run into a web page right now, and that's hard to do for a Java analphabeth. Mike The Spike
2. Re: Eu To Java?
- Posted by David Cuny <dcuny at LANSET.COM> Feb 02, 2001
- 405 views
MTS wrote: > So David, Java is so great because you can plug any > Java app into your web page and your browser will > execute it. Change line 2570 from: printf( handle, "class %s {\n", {class} ) to: printf( handle, "import java.applet.Applet\n\n", {} ) printf( handle, "public class %s extends Applet {\n", {class} ) Instant Java applet. As for missing functionality, it's easy enough to interface the code to Java. Take a look at EJ.TXT for a description of the conversion routines. For example, WIN32LIB.EW creates an interfaces ej to Swing. You can write your own wrappers to Java routines in a similar manner. -- David Cuny
3. Re: Eu To Java?
- Posted by Mike The Spike <mtsreborn at yahoo.com> Feb 02, 2001
- 418 views
Thanks man! That's a good sollution to my problem. Maybe you should include a 'how to' with the translator package? 'How to create a Java applet using EJ' or 'How to wrap Java functions to Euphoria' or something like that. Would be cool. Mike The Spike --- David Cuny <dcuny at LANSET.COM> wrote: > MTS wrote: > > > So David, Java is so great because you can plug > any > > Java app into your web page and your browser will > > execute it. > > Change line 2570 from: > > printf( handle, "class %s {\n", {class} ) > > to: > > printf( handle, "import java.applet.Applet\n\n", > {} ) > printf( handle, "public class %s extends Applet > {\n", {class} ) > > Instant Java applet. > > As for missing functionality, it's easy enough to > interface the code to > Java. Take a look at EJ.TXT for a description of the > conversion routines. > For example, WIN32LIB.EW creates an interfaces ej to > Swing. You can write > your own wrappers to Java routines in a similar > manner. > > -- David Cuny > >
4. Re: Eu To Java?
- Posted by David Cuny <dcuny at LANSET.COM> Feb 02, 2001
- 411 views
MTS wrote: > Maybe you should include a 'how to' with the > translator package? Some time when it's out of beta. -- David Cuny