Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including CDQ in a motion-game template? #128

Open
hugoerg56 opened this issue Feb 29, 2016 · 1 comment
Open

Including CDQ in a motion-game template? #128

hugoerg56 opened this issue Feb 29, 2016 · 1 comment

Comments

@hugoerg56
Copy link

there is a way to include CDQ in a motion-game template?

I try:

class Application < MG::Application
  include CDQ  

  def start
    cdq.setup
    MG::Director.shared.run(MenuScene.new)
  end
end

and

class Score < CDQManagedObject
end  

but i get:

*** Starting simulator
(main)> 2016-02-29 15:58:49.832 Hubble[38952:1824353] score.rb:1:in `<main>': uninitialized constant CDQManagedObject (NameError)
2016-02-29 15:58:49.835 Hubble[38952:1824353] *** Terminating app due to uncaught exception 'NameError', reason: 'score.rb:1:in `<main>': uninitialized constant CDQManagedObject (NameError)

Any idea?

@kemiller
Copy link
Contributor

There should be nothing special about it AFAIK but I have no experience with motion-game. Seems like a more general compilation order issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants