Join the forums now, and start posting to receive access to our Scripts Vault!
We could use this as a planning board for collaboration upon said framework whether it's used for the forum game codestryke detailed in his thread or not.
"Only required functionality should be written, anything else should be coded as an extension module"
Must be object-oriented
Administration should be handled via web interface, it should be very visually oriented and easy to use
It should follow, to the largest extent possible, current web standards (ie: WCAG, CSS, XML, etc.)
Ack! Not a game! A frame work, basically you summed it up with...
Personally I think a pure OO game doesn't offer any benefit to a functional one. I like to use OO when the project is large, but most web games are a pretty small code base.
Yup and be in another directory called something like admin and use HTTP_AUTH instead of a form/post, or some type of isadmin check in a player record. I've found both in the past to be very insecure.
I agreed till I saw XML. XML, pretty to look at and understand, pile of dog doodoo when you have to parse it and loop though nodes.
Basically sounds good though. I know you are a proponent of MVC and I would love to see a someone offer up a framework based on that approach. Most of the free web games out there don't use this approach and a lot of newbie coders want to create a game so they download these games and use them as there model to code there game with.
- Administration should be handled via web interface, it should be very visually oriented and easy to use - against, no need to be easy to use, if you need an easy and visually oriented admin panel your skills sux and your game will be a failure anyway
Yes, yes, my games code consist of 25% admin panel code as well, and I love them too. But this is a basic framework, made for people who do not have the guts to write the register system on their own Sure, there should be a basic admin panel, but nothing more. When their game grows they can write their own panel.This is a question what the target audience for the framework is. I assumed it is for the people who started the last competition but could not for some reason release even the simple version of their game. Or people who are just too lazy to deal with login/register/logout routine and want to start coding the "meat" immediately.
There's not 'real' target-audience for this, it's something that I wanted to work on for my own benefit and figured if I can get it up and running and nail down most of the problems, make the system flexible enough to be of use for any sort of site they we could add it to the repository here.I'll try and work on getting a design document put together sometime soon. Bad timing though as I'm heading up a project here at work and at home I'm getting ready to move my fiancee (I proposed over the weekend) and her children. Busy, busy, busy lol.
to storing non sql data. use php arrays. they are Opcode compatible. SO ? after first load they are stay in memory.
Do not use Templates (like smarty). PHP himself was templating system. So use it. all inline php stored in opcode cache too
Use pseudo MCV. put sql one file, put algorthm one file put output (phtml/temlate) one file. Helps much for code maintaining.
Quoteto storing non sql data. use php arrays. they are Opcode compatible. SO ? after first load they are stay in memory.Not just wrong but dead wrong on this point. I don't think you understand what op code is, or you are confusing it with something else. OpCode is the compiled output from the Zend engine. Using OpCode allows PHP to skip the compile step of processing and proceed immediately with execution.
<div class='test'><?=$test?></div>
ob_startrequire('test.view.php');echo ob_get_clean();