1 PS2Linux 2 Game_project/ps2/domino_game/domino_main 2.1 ( ) (y ) y x 1: xy 1



Similar documents
double float

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

:30 12:00 I. I VI II. III. IV. a d V. VI

Java updated

untitled

8 if switch for while do while 2

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

K227 Java 2

REALV5_A4…p_Ł\1_4A_OCF

untitled

「都市から地方への人材誘致・移住促進に関する調査」

<91498EE88CA D815B2E786C73>

〔 大 会 役 員 〕

橡本体資料+参考条文.PDF

Lecture on

‚æ4›ñ

Java演習(4) -- 変数と型 --


PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡

8 / 0 1 i++ i 1 i-- i C !!! C 2

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

untitled

Microsoft Word - C.....u.K...doc

プログラミング基礎

Java

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

新版明解C言語 実践編

PowerPoint Presentation

Condition DAQ condition condition 2 3 XML key value

2008 DS T050049

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y

新・明解Java入門


解きながら学ぶJava入門編

Battle Ship

r07.dvi

ohp07.dvi

Microsoft PowerPoint - CproNt02.ppt [互換モード]

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

第5回お試しアカウント付き並列プログラミング講習会

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

Java学習教材

273? C

untitled

programmingII2019-v01

I 2 tutimura/ I 2 p.1/??

第3章 OpenGL の基礎

SystemC言語概論

コーディング基準.PDF

2


2

-2-

新・明解C言語 実践編

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

2.2 Java C main Java main 2 C 6 C Java 3 C Java ( ) G101Hello.java G101Hello main G101Hello.java /* G101Hello */ class G101Hello { /* main */ public s

fuga scanf("%lf%*c",&fuga); 改行文字を読み捨てる 10 進数の整数 おまじない取り込んだ値を代入する変数 scanf( %d%*c,&hoge); キーボードから取り込め という命令 1: scanf 1 1: int double scanf %d %lf printf


:30 12:00 I. I VI II. III. IV. a d V. VI

C# ++ MASA C# ( ) XNA 1.1 C# ( ) VisualStuio XNA 4.0 VisualStuio XNA 3.1 * * *3 2.1 VisualStuio Windows ( TextGam

haskell.gby

slide5.pptx


卒 業 研 究 報 告.PDF

Microsoft PowerPoint - C_Programming(3).pptx

解きながら学ぶC++入門編

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

j x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E


( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>

Smalltalk_

新・明解C言語 ポインタ完全攻略

bitvisor-ipc v12b.key

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

For_Beginners_CAPL.indd


fp.gby

2

Lab GPIO_35 GPIO

1.ppt

program.dvi

2 1 Web Java Android Java 1.2 6) Java Java 7) 6) Java Java (Swing, JavaFX) (JDBC) 7) OS 1.3 Java Java

Java プログラミング Ⅰ 7 回目 switch 文と論理演算子 条件判断文 3 switch 文 switch 文式が case の値と一致した場合 そこから直後の break; までを処理し どれにも一致しない場合 default; から直後の break; までを処理する 但し 式や値 1

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225


64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

#include <stdio.h> 2 #include <stdlib.h> 3 #include <GL/glut.h> 4 Program 1 (OpenGL GameSample001) 5 // 6 static bool KeyUpON = false; // 7 sta

ex01.dvi

Microsoft Word - ランチョンプレゼンテーション詳細.doc

1 CUI CUI CUI 1.1 cout cin redirect.cpp #i n c l u d e <s t r i n g > 3 using namespace std ; 5 6 i n t main ( void ) 7 { 8 s t r i n g s ; 10 c

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

Python C/C++ IPMU IRAF

JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2

Minimum C Minimum C Minimum C BNF T okenseq W hite Any D

サービス付き高齢者向け住宅賠償責任保険.indd

Prog1_6th

1 1.1 *1 1. sep1.cpp main() sep.cpp separate() *1 GNOME KDE 3

Taro-リストⅢ(公開版).jtd

10/8 Finder,, 1 1. Finder MAC OS X 2. ( ) MAC OS X Java ( ) 3. MAC OS X Java ( ) / 10

Transcription:

PS2 035702C : 035734B : 035746E : 035763E :

1 PS2Linux 2 Game_project/ps2/domino_game/domino_main 2.1 ( ) (y ) y x 1: xy 1

y A B x 2: A B y A B x 3: A B A B ( ) xml 2

example/collision_detection/main.c init_collision_face xml CollisionFace collision_face float (xyz) xyz ( ) ( ) (ps2_vu0_trans_matrix) x z 3

2.2 OBJECT *obj DominoObject *next DominoObject *back ROT_FLAG rotate_flag FVECTOR collision_fall_line[2] FVECTOR collision_catch_line[2] int another_domino_flag DominoObject *another_domino int object_type DominoObject 4: DominoObject OBJECT *obj DominoObject *next DominoObject *back ROT_FLAG rotate_flag FVECTOR collision_fall_line[2] FVECTOR collision_catch_line[2] int another_domino_flag DominoObject *another_domino int object_type 4

DominoObject DominoList DominoList 3 Game_project/ps2/domino_game/domino_scene 3 GIMP png PS2 3.1 3 1. 2. 3. 4. 5. 6. 5

main.c static char schedule() { state = OPENING; switch(state) { case OPENING: title_scene();... case MAIN: main_scene();... case ENDING: ending_scene();...... include include scene.h int title_scene() int ending_scene() main_scene.h int main_scene() 5: main.c schedule() ################################################ static char schedule( void ) { static SCENARIO scenario = OPENING_SCENE; switch(scenario) { case OPENING_SCENE: // if (title_scene() < 0) { scenario = MAIN_SCENE; break; case MAIN_SCENE: // if(main_scene() < 0) { scenario = ENDING_SCENE; break; case ENDING_SCENE: // 6

if(ending_scene() < 0) { scenario = OPENING_SCENE; break; default: break; return TRUE; ####################################### title_scene(),ending_scene(),main_scene() schedule() switch 3.2 title_scene(),ending_scene() ending_scene() PS2,ending_scene() ####################################### int ending_scene() { static SCENE_STATE ending_state = SCENE_INIT; int ending_pad; switch (ending_state) { case SCENE_INIT: ending_init(); ending_state = SCENE_MAIN; break; 7

case SCENE_MAIN: // ending_pad = sjoy_get_ps2_button( JOYPAD_1 ); if( ending_pad & SJOY_PS2_START ) { ending_state = SCENE_FINISH; else { ending_state = SCENE_MAIN; blink_sprite( Ending_Sprite ); break; case SCENE_FINISH: ending_finish(); ending_state = SCENE_INIT; return -1; break; default: break; return 0; ##################################### ending_init(),blink_sprite(),ending_finish() switch blink_sprite() ending_init() ending_finish() ending_init() ############################################## // png #define ENDING_IMG_FILE "ending_img.png" 8

static void ending_init() { //png TEXTURE *ending_img; // png ending_img = read_png_file( ENDING_IMG_FILE ); //ending_img ps2util_tex_set( ending_img ); // ps2util_sprite_create( &Ending_Sprite, ending_img ); // ps2util_sprite_set_basicattribute( &Ending_Sprite, 0, 48, 640, 256, 0, 0, 512, 256, SPRITE_PRIO_FOREGROUND ); ps2util_sprite_use_alpha( &Ending_Sprite ); // ps2util_sprite_request( &Ending_Sprite ); ############################################ ps2util_sprite_request() ps2util_sprite_draw() ps2util_enter_mainloop() 9

ending_finish() ############################################ static void ending_finish() { // ps2util_sprite_destroy( &Ending_Sprite ); // ending_img ps2util_tex_exclude( ending_img ); // free_texture( ending_img ); ############################################# png PS2 ps2util_tex_set() ending_finish() free_texture() 4 lwo2xml 1 blender 2 3 [File] -> [Export] -> Lightwave(.lwo) 4 [Export LWO] lwo.xml PS2Linux lwo2xml notepc 10

cvs 1 Game_project/tools %cvs-cr co -d lwo2xml Game_project/tools/lwo2xml 2 ~/lwo2xml %cd lwo2xml/ 3 lwo2xml.pl C make (lwo2xml.pl ) %cvs up -r version-c %make 4 ( path ~/bin ) %mv lwo2xml ~/bin/ %rehash lwo xml %lwo2xml hoge.lwo (hoge ) 5 x3d2xml blender( 2.37a) http://www.bitbucket.ca/~acheater/blender/ x3dexport.tar.gz blender blender %cd blender.app/contents/macos/ 11

%cp -r.blender hoge (hoge ) x3dexport.tar.gz x3d_export.py.blender scripts %cd (x3dexport.tar.gz ) %cd x3dexport %cp x3d_export.py hoge/.blender/scripts/ (hoge ) blender x3d Export Game_project/tools/x3d2xml/ %cvs-cr co Game_project/tools/x3d2xml x3d2xml x3d2xml make %make depend %make x3d2xml CVS bin rehash %cp x3d2xml hoge/bin/ (hoge ) %rehash x3d2xml %x3d2xml input.x3d output.xml (output.xml ) input.x3d x3d output.xml xml (output.xml input.xml ) 12

xml 6 UV 1 2 [F] UV face select 6: 13

3 [A] [Shift]+[ ] 7: 4 3Dview UV/image editor 3Dview UV/image editor 8: 5 UV/image editor image > open 14

6 UV/image editor 9: 7 Textured 3Dview [Alt]+[Z] Texface [F12] 10: 15

7 UV xml lwo 3DCG xml PS2 xml UV 3D lwo PS2Linux Linux png png 16 2 n 8 BONE 1. 2. add > armature 3. [E] Cntl +[P] Makeparentto > armature > createfromclosestbones 4. [Cntl]+[tab] pose mode 5. pose mode 6. 3Dview [Alt]+[A] ANIM PLAY 16

9 3 3 3 1 2 10 1 17