Issue 81 November 03 2009 | ||||
revZoo Teaches German
I had the opportunity to code this application for an educational bookstore. The goal was to create an application that successfully teaches the German language syntax for primary class pupils. The application had to work in a client-server environment. A maximum of 30 children can play and learn on their computers and the teacher can control the results of their work from any computer by logging into the teachers' section of the application. So, an important feature is: Saving children results for reviewing by the teacher: This was achieved by saving children’s progress stacks on a server machine. For this, the FTP functions of Rev were used, like this: --save stack on a remote server: save stack SchuelerName as PfadLokal & "/" & SchuelerName & \ ".rev" --save stack locally put "binfile:" & PfadLokal & "/" & SchuelerName & ".rev" \ into DateiZumUpload --uploadpath put (FTPServer & "/" & SchuelerName & ".rev") into FTPstring put URL DateiZumUpload into URL FTPstring --stack \ upload to server The game state for each child is stored in the child’s stack. Another example, how elegantly Rev can save a text file on a remote Server: --save Text file on a remote server: --save Text file on a remote server: put "" into url (ftpServer & "/" & "list.txt") To minimize network load, the speech files are downloaded once, when first used. Those are stored on the users machine. Because of mixed MacIntosh / Windows environments I was happy to use the given Rev paths – which are the same for all environments: put (specialFolderPath("Home") & "/RechtschreibZoo") into \ PfadLokal Object handling - Switch graphics on the fly: The application uses five main graphic sections. However, thirty exercises behind those sections are basically the same. To minimize stack cards (and coding) – the graphics are changed on the fly by navigating to the stack card. --Lion: switch graphics: if Szene = "Lion" then put image "bgauf_lo.jpg" of card "Lion" of stack "Lion" into \ image "Grafik1" of card GewaehlteUebung of stack "Uebungen" put image "maus_loe.gif" of card "Lion" of stack "Lion" into \ image "Grafik2" of card GewaehlteUebung of stack "Uebungen" end if Making a Web version: As an alpha version Rechtschreib-Zoo is now being ported to Rev 4. Porting the app to Rev 4 and saving as a revlet was not a big challenge. Thanks to RunRev! A few things to take into account for online applications:
d) To save a stack on a remote server you must first save it locally. Then you can upload the stack file by ftp. Networking We like the fact that we can deploy a web version and a CD-ROM Version very easily with Revolution. If you would like to take a test drive: (alpha Web-Version) http://www.rechtschreib-zoo.ch/index1.html
|
|