Re: Code structure/design problems

2011-07-29 Thread msappler
action. On Jul 29, 8:50 am, Laurent PETIT wrote: > Hi, > > 2011/7/29 msappler > > > I am also developing a clojure rpg and have open sourced the last > > alpha version: > > >https://code.google.com/p/clojure-rpg/ > > > ~ > > > Basically I am

Re: Code structure/design problems

2011-07-28 Thread msappler
I am also developing a clojure rpg and have open sourced the last alpha version: https://code.google.com/p/clojure-rpg/ ~ Basically I am using an atom for every entity in the game (monster, player, projectiles, explosions...) and for every cell in the grid of the map. There are a lot of functio

Advanced keyword function

2011-05-30 Thread msappler
Hey, I developed a macro called defnks. I wrote a blogpost about it here: http://resatori.com/advanced-keyword-function You can look at the code here: https://gist.github.com/999256 --- It works like clojure.contrib.def/defnk but also asserting obligatory & optional keys and being able to inp

Re: Order a sequence of maps with {:type :before [types]}

2011-05-09 Thread msappler
some others; most of them dont care about order. I thougt about the best way to do is, is introducing an :after key and a type. So after the gui is initialized, i can add frames for example. On 9 Mai, 07:07, Ken Wesson wrote: > On Sun, May 8, 2011 at 10:56 PM, msappler wrote: > > I want

Order a sequence of maps with {:type :before [types]}

2011-05-08 Thread msappler
I want to order a sequence of maps with keys: obligatory :type optional :before [types]; which means the types should occur before this element in the sequence. I tried to use a custom java.util.Comparator but it only compares adjacent elements. This is my example: (defn- comes-after? "checks

Re: Cyber Dungeon Quest Alpha 1

2011-04-14 Thread msappler
cdq.jnlp >         at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection > 1436) >         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java: > 379) >         at > com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRe

Re: Cyber Dungeon Quest Alpha 1

2011-04-14 Thread msappler
.executeMainClass(Launcher.java:1847) > at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1609) > at com.sun.javaws.Launcher.run(Launcher.java:138) > at java.lang.Thread.run(Thread.java:680) > > > > On Thu, Apr 14, 2011 at 8:09 PM, msappler wrote: > > Thanks. That was a last minute change

Re: Cyber Dungeon Quest Alpha 1

2011-04-14 Thread msappler
Thanks. That was a last minute change of the jnlp file location. Should work now. On 14 Apr., 13:39, Alfredo wrote: > Very cool! > But how to play with it? With Chrome, it downloads the .jnlp file but > if I click on it, an error raises: > > com.sun.deploy.net.FailedDownloadException: Unable to

Re: Cyber Dungeon Quest Alpha 1

2011-04-14 Thread msappler
Thanks. That was a last minute change of the jnlp file location. Should work now. On 14 Apr., 13:39, Alfredo wrote: > Very cool! > But how to play with it? With Chrome, it downloads the .jnlp file but > if I click on it, an error raises: > > com.sun.deploy.net.FailedDownloadException: Unable to

Cyber Dungeon Quest Alpha 1

2011-04-14 Thread msappler
My RPG Game in clojure! Play it here via Java Web Start: http://resatori.com/cyber-dungeon-quest-alpha-1 -- 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 a

I understand metadata now!

2011-03-25 Thread msappler
Never used metadata until now. I had an insight yesterday that I want to share with you: http://resatori.com/metadata-insight -- 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 pos

Re: Entity component system

2011-03-16 Thread msappler
I do. > > In any case, great work!! > > Dan. > > On 16 March 2011 15:09, msappler wrote: > > > Finally I launched my little website:http://resatori.com > > > You can see a short video of my game there ;) > > > Fraps only allows 30 seconds so nothing more to s

Re: Entity component system

2011-03-16 Thread msappler
Finally I launched my little website: http://resatori.com You can see a short video of my game there ;) Fraps only allows 30 seconds so nothing more to see :( Entity Component Post will follow this week. On 6 Mrz., 16:24, Daniel Werner wrote: > Himsappler, > > On Jan 12, 12:27 pm

Re: Entity component system

2011-01-12 Thread msappler
No i do not mind. A blog is being planned for promotion of my game and sharing. Only have to find a domain name which i like. On 12 Jan., 01:32, Daniel Kersten wrote: > Thanks for sharing! > > Entity component systems are something I'm very interested in and > something I have tinkered with in t

Entity component system

2011-01-09 Thread msappler
Hey for the lasts 6 months I am developing an action RPG game in clojure (and learning the language). For this game I developed an entity component system which is a way of using composition to create entities in the game. I also use slick2d for the 2d engine. Here I posted some examples for def

Converting a AS3 Cave Generator to Clojure

2010-08-05 Thread msappler
Hi I am having trouble with converting this cave generator to clojure. Basically how would you implement the generateCave method with pop and push in a functional style? Here is a description to the algorithm: http://properundead.com/2009/03/cave-generator.html And here you can download the AS3 s

Re: Newbie: Finding performance bottlenecks

2010-04-30 Thread msappler
120ms to > update 150 "boids". This version can do it in about 6-8ms. > > I also note that you're not type-hinting your math, but I'm unsure how much > that plays into the perf you're seeing. > > David > > On Fri, Apr 23, 2010 at 4:55 AM, msappler

Newbie: Finding performance bottlenecks

2010-04-23 Thread msappler
Hi this is my first clojure application: http://pastebin.com/Vv7xr6Uj (Code Criticism welcome!) I am porting my hack'and'slay game from java to clojure. It is using slick2d and rendering and moving bodies (rectangles) on a 2d collision map. - I created a computationally intensive situation with

update-proxy doc - what is "this" ?

2009-11-01 Thread msappler
user=> (doc update-proxy) - clojure.core/update-proxy ([proxy mappings]) Takes a proxy instance and a map of strings (which must correspond to methods of the proxy superclass/superinterfaces) to fns (which must take arguments matching the corresponding method, plus