北京好网站制作公司哪家好网站排序
news/
2025/9/24 7:01:00/
文章来源:
北京好网站制作公司哪家好,网站排序,wordpress安装如何填数据库,4001688688人工服务元旦准备买NDS#xff0c;顺带关注了下PSP#xff0c;其实是想#xff0c;或许买PSP也不错~PSP很像一个平台#xff0c;提供了很多东西#xff0c;譬如官方的PS模拟器~在上面编程也是个不错的想法。国外的一个网站提供了很多信息#xff0c;PS2Dev Network (http://www.p…元旦准备买NDS顺带关注了下PSP其实是想或许买PSP也不错~PSP很像一个平台提供了很多东西譬如官方的PS模拟器~在上面编程也是个不错的想法。国外的一个网站提供了很多信息PS2Dev Network (http://www.ps2dev.org)有教程http://ps2dev.org/psp/Tutorials现在由于不久前的地震基本无法登陆那个网站。更多的信息在http://wiki.ps2dev.org/。要想进行PSP编程需要学习C或C。在windows下需要安装Cygwin http://www.cygwin.com/, 这其实是个模拟linux的环境。在Mac OS X或Linux下需要编译PSPSDK和PSP 工具。这些东西都可以在http://ps2dev.org/psp/Projects找到。--starting positionsforthe character x200 y100--A nice color colorColor.new(128,255, 0)--this flag tells whether the program needs to draw draw_charactertrue--loop foreverwhiletrue doifdraw_character then--printa rogue at the x/y coordinates screen:print(x, y,, color) screen.flip() end--check whether the user pressed the pad,andmove accordingly padControls.read() draw_charactertrueifpad:left() then xx-3 elseif pad:right() then xx3 elseif pad:up() then yy-3 elseif pad:down() then yy3else draw_characterfalse end--waitforthe next vertical blank screen.waitVblankStart() end你也可以使用HTML, CSS和JavaScript编写程序在PSP的浏览器上运行。关于这方面的信息网上已经很多了这里给一个例子。htmlheadtitleMandelbrot Settitleheadbodystylewidth: 480px; height: 272px;scriptlanguageJavaScript colorsnewArray(black,aqua,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,white,yellow);functionplot(){ height20; width150; max17;//maximum number of iterations. document.write(p stylefont-size: 8px);//imaginary axis from -1.25 to 1.25for(y-1.25; y1.25; y2.5/height){//real axis from -2.25 to .75for(x-2.25; x.75; x3/width){ a1x; b1y;for(cnt1; cntmax; cnt){//If the square magnitude of the complex number exceeds//the limit, break out of the loop. Otherwise, calculate//and loop around again.//aa1*a1; bb1*b1;if(ab4.0){break; }else{ b12*a1*b1y;//imaginary componenta1a-bx;//real component} }if(cntmax){//At this resolution, the point does not appear to be//outside the Mandelbrot set, so use color 0 (black).cnt0; } stylebackground-color: colors[ cnt%16];; document.write(span style style nbsp;span); } document.write(br/); } document.write(p); } plot();scriptbodyhtml你可以将其与Perl脚本语言结合编写功能更为强大的程序。(声明以上大部分翻译自《PSP Hacks》的Hack 47. Develop for the PSP)不知道PSP是否支持Python这种脚本语言~大学里看过Python的书~Lua是linux下的一种编程语言那另一中语言Ruby是否也可以呢posted on 2006-12-30 14:11 李威 阅读(2148) 评论(1) 编辑 收藏
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/915142.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!