Re: Penumbra vs. LibGDX

2013-07-19 Thread Jonathan Fischer Friberg
While I haven't tried libgdx myself, you should be able to do something
like this:

1. Create a global namespace (or similar), which should contain global
variables
and/or functions that should never be reloaded. In this namespace you
essentially
put the things that there can only be one of - the app that you're
talking about.

2. Use https://github.com/clojure/tools.namespace to reload your code. With
this,
as long as you don't change the global namespace, the app will never be
reloaded.

Again, I don't know if this will work for libgdx, but it sounds like it
might. It's also
not very idiomatic to use a global app, but since you can only have more
than
one, it should never be a problem. Of course, you will have to make sure
that
the old state is removed when restarting, but that should be manageable.

Jonathan


On Thu, Jul 18, 2013 at 5:19 AM, JvJ kfjwhee...@gmail.com wrote:

 1) Phonegap seems like it just makes HTML5.  So, does it work with
 android, IOS, and desktop?
 2) I haven't done much clj-script development.  What's the REPL situation
 like with that?
 3) Nice job using PITA in that sense.


 On Wednesday, 17 July 2013 16:30:08 UTC-7, Chris Bui wrote:

 I haven't worked with Penumbra, but I've tried getting LibGDX to work
 with Clojure and it's just a PITA. Totally agree that you lose the REPL
 with LibGDX.

 I'm writing another game now, although much if it is server side. I did
 however, discover that you can use Phonegap to write HTML5 applications and
 deploy them to Android, iOS. And if you can do that, you can write games
 with Clojurescript using the canvas. Also, there are Box2d libraries for
 javascript that you can use. Just throwing another option out there.

  --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Penumbra vs. LibGDX

2013-07-17 Thread JvJ
Lately, I've been working on games with Clojure and LibGDX.  However, many 
of the advantages of interactive development are not present, because 
LibGDX apps are built around Java development, and don't work well if you 
try to run multiple apps within a single program (i.e. from the REPL).

Penumbra has this ability, but doesn't seem to be portable to other 
platforms (i.e. Android, HTML5), and doesn't have built-in Box2D support 
(although it can be added).  If anyone has worked with one or both of these 
systems, can they suggest the pros and cons of using each.  Furthermore, is 
it possible to use both?  (i.e. have apps implemented in either penumbra or 
libgdx, but using the same opengl/box2d code in both)


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Penumbra vs. LibGDX

2013-07-17 Thread Chris Bui
I haven't worked with Penumbra, but I've tried getting LibGDX to work with 
Clojure and it's just a PITA. Totally agree that you lose the REPL with 
LibGDX.

I'm writing another game now, although much if it is server side. I did 
however, discover that you can use Phonegap to write HTML5 applications and 
deploy them to Android, iOS. And if you can do that, you can write games 
with Clojurescript using the canvas. Also, there are Box2d libraries for 
javascript that you can use. Just throwing another option out there.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Penumbra vs. LibGDX

2013-07-17 Thread JvJ
1) Phonegap seems like it just makes HTML5.  So, does it work with android, 
IOS, and desktop?
2) I haven't done much clj-script development.  What's the REPL situation 
like with that?
3) Nice job using PITA in that sense.

On Wednesday, 17 July 2013 16:30:08 UTC-7, Chris Bui wrote:

 I haven't worked with Penumbra, but I've tried getting LibGDX to work with 
 Clojure and it's just a PITA. Totally agree that you lose the REPL with 
 LibGDX.

 I'm writing another game now, although much if it is server side. I did 
 however, discover that you can use Phonegap to write HTML5 applications and 
 deploy them to Android, iOS. And if you can do that, you can write games 
 with Clojurescript using the canvas. Also, there are Box2d libraries for 
 javascript that you can use. Just throwing another option out there.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.