Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by nate

The game plays, http://td.wibblz.com and weltmeister loads images but it will not display my entities. You can see I've got two 'tower' entities on the screen as the little marios run by.

Weltmeister doesn't load my towers and when it writes the levels/main.js file it also deletes the current entities that are already in there.

* I'm using Sinatra to run weltmeister
* I've moved the game into a Rails 3.1 app
* The rails project is here https://github.com/wibblz/Tower-Defense
* The impact code is here https://github.com/wibblz/Tower-Defense/tree/master/public/impact
* the weltmeister file is here along with the impact.rb https://github.com/wibblz/Tower-Defense/tree/master/app/views/home
* i've added 2 symlinks in https://github.com/wibblz/Tower-Defense/tree/master/app/views/home to help out and everything is close to working great.

1 decade ago by Hareesun

Do us all a favour and remove the IMPACT files from that. You’ve uploaded a library that people are paying for.

https://github.com/wibblz/Tower-Defense/tree/master/public/impact

Also if you’re going to upload your game and link to it anywhere, you should bake it first.

http://impactjs.com/documentation/baking

1 decade ago by nate

Thanks ... I updated the github repo, it's baked and the impact code is gone now.

Any ideas on how to fix the issue with Weltmeister?

1 decade ago by dominic

Check the browsers console when you load up Weltmeister. I assume there's an error in one of your entities, preventing it from being created in Weltmeister.

The officially supported platform for Weltmeister is Apache/PHP. I don't know much about Ruby, so I don't know if your problem is caused by the Ruby environment somehow, sorry.

Edit: it may be that Weltmeister can&039;t load the entity list. When you load Weltmeister, it initiates an AJAX request to load the list of files in the #lib/game/entities/ folder. Again, check your browsers console to see if that request is being made and if the response is correct.

Should be something like this (from the Jump'n'Run Demo):
URL: lib/weltmeister/api/glob.php?glob[]=lib%2Fgame%2Fentities%2F*.js
Content: ["lib\/game\/entities\/player.js","lib\/game\/entities\/spike.js"]

(Obviously the URL will be different for your ruby backend)

1 decade ago by Noah

I am finding that I'm having the same issue with impact.rb -- I made an issue here:

https://github.com/chrisdarroch/impactrb/issues/1

Did you get this resolved? Any ideas?

1 decade ago by Noah

Someone submitted a pull request that fixes this problem. It is available here: https://github.com/chrisdarroch/impactrb/pull/2

1 decade ago by RomainT

Yes, I had this trouble today so I submitted this little fix but I don't know if it will ever be merged… ^^
Page 1 of 1
« first « previous next › last »