oakes / play-clj

A Clojure game library
The Unlicense
939 stars 73 forks source link

hello-world tutorial: move command not found #27

Closed s-marshall closed 10 years ago

s-marshall commented 10 years ago

In the hello-world tutorial created using Leiningen, when I add the move commands under :on-key-down, the error is

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to      resolve symbol: move in this context

The header is

(ns hello-world.core
  (:require [play-clj.core :refer :all]
            [play-clj.g2d :refer :all]
            [play-clj.ui :refer :all]))
oakes commented 10 years ago

The move command isn't part of play-clj; it's a function defined in the beginning of the Movement section of the tutorial. Sorry for the confusion.

s-marshall commented 10 years ago

Thanks. After I wrote the issue and looked at the file again, I saw it. Cut and paste and now it works. Thanks again.