tungnm / hehe

some cool stuff
0 stars 0 forks source link

design format co ban cua scene file. #4

Open tungnm opened 10 years ago

tungnm commented 10 years ago

1 scene se duoc load vao tu 1 file. 1scene co.the co.nhieu ojects, background( task.nay chi la format.cho first prototype) 1 scene sau nay co the rat phuc tap. Vi du co.Event.class, gia su player di den toa.do x1y1z1 thi se xay ra event gi.do...

snsg8 commented 10 years ago

Ok. Dang nghi dan cai day.

Event handling thi don gian nhat luc nay thi dung Signal / Slot. Vi du: khi player den' mot cai zone nao day. Player emit signal va cai signal day dc connect den mot cai slot nao day roi. Cai signal/slot pattern day tren mang co nhieu implementation roi. Hien tai tao dang dung mot cai don gian nhat chi co 1 file la Signal.h.