New topic: New to WE - basic questions.
<http://forums.realsoftware.com/viewtopic.php?t=45132> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Farflame Post subject: New to WE - basic questions.Posted: Mon Aug 27, 2012 7:22 am Joined: Tue Oct 05, 2010 6:25 am Posts: 169 I'm trying to write a simple browser game for multiple users for my first experiments with WE. I'm a bit confused about where I should put various bits of code - I'm feeling very tempted to put lots of stuff in 'app' but I have a feeling that's not a good idea for some reason. For example, in my simple game, the app itself would run the logic for the game in the background. So I feel that all the game information - for example the map array - should be stored as properties of the app. Then the webpages could access that array via app.map(x,y) or something like that. It works fine but I feel that I'm doing too much in app - am I right in putting the logic and variables in app and the webpage is mostly for displaying the info and dealing with user input? Or would it make more sense to just have a seperate program running alongside the main program to do the game logic? This also leads me to another question regarding the files for the game. I've worked out how to use a database, but for a simple game with just a few k of basic data, is there any reason not to just use basic streams? I've tried that and it also works fine and I just store the file alongside the program. Would this work correctly if it was stored on a server? Can the program just access files in the same location or isn't it as simple as that? It's all working fine when running it on my machine but I have a feeling it's all a bit TOO simple at the moment and I'll run into problems if I tried to deploy like that Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml rbforumnotifier@monkeybreadsoftware.de