andorid 3d opengl
http://code.google.com/p/rokon/
http://code.google.com/p/loon-simple/downloads/list?q=label:java
importos
fromgoogle.appengine.ext.webappimporttemplate
fromgoogle.appengine.extimportwebapp
fromgoogle.appengine.ext.webapp.utilimportrun_wsgi_app
fromgoogle.appengine.extimportdb
classScoreBoard(db.Model):
user=db.UserProperty(required=True)
level=db.IntegerProperty(required=True)
lifes=db.IntegerProperty(required=True)
date=db.DateTimeProperty(auto_now=True)
classList(webapp.RequestHandler):
defget(self):
list=ScoreBoard.all().order('-level');
top10=list.fetch(10);
template_values={
"list":top10,
}
path=os.path.join(os.path.dirname(__file__),'list.html')
self.response.out.write(template.render(path,template_values))
classAdd(webapp.RequestHandler):
defpost(self):
score=ScoreBoard(user=self.request.get('user'),level=self.request.get('level'),
lifes=self.request.get('lifes'))
db.put(score);
self.response.out.write("ok");
application=webapp.WSGIApplication([('/list',List),('/add',Add)],debug=True)
defmain():
run_wsgi_app(application)
if__name__=="__main__":
main()