Dear list, I recently implemented a simple Ur/Web application "jsMove" which draws a circle to the screen. The circle may be moved interactively via keyboard/mouse or touchscreen, depending on the selected URL (main or main_touch). It uses the Ur/Web JavaScript FFI extensively for graphics (Raphaƫl) and for several additional event handlers.
It is mainly targeted towards people who are completely new to Ur/Web and don't understand how to use the JavaScript FFI very well, or people who want to write non-traditional web applications (eg. games, desktop style applications) in a browser. Keep in mind that the code is ugly because I haven't mastered the type system yet, so any critiques are welcome. There are also currently some issues with pressing the buttons with the mouse, but for the most part the code works very well and could likely be useful to others. The complete source code is available: http://chiselapp.com/user/beyert/repository/urweb_examples/urweb_examples Regards, Timothy Beyer _______________________________________________ Ur mailing list [email protected] http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
