Polaroid
↓Cuối Trang
Bạn có thích BacNinhNo1.XTgem.Com?
Yahoo FaceBook Zing Me Google+ Twitter
Đánh giá XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45163063
Visits Today: 150511
This Week: 1591385
This Month: 10978411

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

(like - dislike) XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45163076
Visits Today: 150524
This Week: 1591398
This Month: 10978424

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!


+A Tăng cỡ chữ-AMặc định- -AGiảm cỡ chữ

HD Mod Key Game Java
Đầu tiên ae down cái ví dụ này về nghịch thử tí
http://bacninhvip.tk/file/Vidu.jar

-Giải nén file b.class ra, dùng bytecode editor mở > method > keyPressed. Hàm keyPressed dùng để xác định mã phím khi ta bấm và quyết định xem với mã phím đó thì thực hiện lệnh gì, lệnh này đc người viết định sẵn. Ngoài ra còn hàm keyReleased (thực hiện khi nhả phím), keyRepeated (thực hiện khi giữ phím)...
+Hàm switch để đặt điều kiện cho 1 biến
switch(biến){
case giá_trị_1: làm việc này;
case giá_trị_2: làm việc kia;
...
}
+Cái mà ta cần sửa nằm trong hàm switch này nên khi tìm kiếm hãy gõ từ khoá switch

+Hàm này có thể dùng để đặt điều kiện cho bất kì biến nào, ko riêng gì mã phím nên ta CHỈ quan tâm đến hàm chứa những mã phím quen thuộc. Tìm mã phím kiểu gì thì down tiếp cái nàyvề xem
Download VNKeyDetect.jar

-Mở method keyPressed ra. Tìm dòng
tableswitch Label92 -4:Label79,-3:Label66,-2:Label53,-1:Label40

-Ở đây ta có:
*-1:mã phím lên
*-2: mã phím xuống
*-3: mã phím trái
*-4: mã phím phải
và sau mỗimã phím ta thấy 1 Label có đính kèm 1 số đằng sau (số hiệu của lệnh đc thực thi). Việc cần làm để mod key chính là thay đổi số hiệu này với mã phím tươngứng.
-Thử mod phím lên thành xuống, xuống thành lên xem nào. Ta đổi số hiệuLabel của phím lên (mã -1) và phím xuống (mã -2) cho nhau:
...-2:Label53,-1:Label40...

=>
...-2:Label40,-1:Label53...

-Xong save file b.class này lại, thay vào filejar và test xem. Vậy là coi như đã mod đc key ở dạng đơn giản rồi. Cứ thế với những mã phím khác

*Lưu ý: thực tế hàm switch này ko nhất thiết phải nằm trong method keyPressed, keyReleased hay keyRepeated nên phải tùy trường hợp mà tìm sửa. Chúc thành công!
Counter : 1|1|1065
Tags: bacninhno1.xtgem.com/j2me/modkey,....
SEO : Bạn đến từ: