Posts

IOS UniqueIdentifier in ios 7 (xCode 5)

Sometime when creating app for ios, you will want to get an UniqueIdentifier for each device (which is usually called IMEI in other phone), however in iOS, you cannot get the device IMEI easily, instead we will use the UniqueIdentifier with this syntax: NSString *UDID = [[UIDevice currentDevice] uniqueIdentifier]; This method is simple, but when Apple release an iOS 7 (and xCode 5), the code above will not work, instead it give us an compiler error like this: No visible @interface for 'UIDevice' declares the selector 'uniqueIdentifier' This is annoying and sad that Apple is such an asshole, developing app for ios is far, far more complicated compare to Android (in my opinion) due to it sand-box rule. And every time it update, there's a chance we will have to fix our app, remove some functions, change some methods...etc... The solution I use temporary is this line of code: NSString *UDID = [[UIDevice currentDevice] performSelector:@selector(uniqueIdentifi...

Test platformer v0.0.1

Left/Right keys: Move Up key: Jump/ Double Jump Down key: Ground Smash Space key: Dash/ Air Dash Alt key: Melee Attack Ctrl key: Range Attack Hold Shift: Charging Release Shift: Launch all instance at once 2 kind of familiar, has upgrade system, Save/Load...

Test Answer: oDesk Readiness Test for Independent Contractors and Staffing Managers

Hi everyone, As a game developer, I want to earn some extra money in my free time. Freelance job is great in this situation, and Odesk is one of them. After register an account, you will have to take the "oDesk Readiness Test for Independent Contractors and Staffing Managers" to ready for work. Here is the latest answer of the test, hope you enjoy it and happy earning ^^ 1. A good profile includes which of the following? Ans: e. All of above. 2. What is the secret to being a highly successful freelancer on oDesk? Ans: e. All of above. 3. Which of following is TRUE about fixed-price jobs? Ans: e. All of above. 4. Before you apply for a job, what questions should you ask yourself? Ans: d. All of above 5. Which of the following is TRUE about hourly jobs? Ans: d. All of above 6. What do you need to be successful on oDesk? Ans: e. All of the above 7. What is one smart way to prove you're right for job? Ans: c. Offer to do a short, paid "test pro...

Nhúng Lua 5.1 vào C++

script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shCore.js"> Vào thăm nhà cũ thấy hoang tàn đổ nát @@ vậy mà cũng có 1k views rồi, thôi thì coi như viết thêm 1 cái note nhỏ, sau này có lúc sẽ dùng tới vậy :D 1. Lua là gì: Lua là một Scripting Language cung cấp cho ta cấu trúc dữ liệu động (cái này ai chưa biết thì từ từ biết :D), các hàm toán học, xuất nhập, v.v... 2. Tại sao lại dùng lua? Lua rất nhanh, và đặc biệt hơn cả, Lua có thể thay đổi nội dung của một chương trình đã viết sẵn, ngay cả sau khi nó được build ra rồi. - Nói đơn giản qua 1 ví dụ:       + Đầu tiên chúng ta viết ra 1 trò chơi thú cmn vị       + Chúng ta thiết lập mỗi lần ăn 1 đồng vàng người chơi được 100 điểm       + Viết xong build ra, đem ra ngoài khoe anh em       + Chúng nó chơi 1 hồi thấy "đm sao dễ vậy, ăn 1 đồng được tới 100"       + Tức mình phán "cmm, chúng...

SFML - Lập trình game - Cài Đặt

Hi các bạn :D Hôm nay mình sẽ lập một chủ đề mới vừa để học hỏi thêm, vừa để chia sẻ một vấn đề rất hot hiện nay là lập trình game. Thực ra mình cũng chỉ là NOoB thôi, nên sẽ đi từ căn bản tới nâng cao nhá, có gì các pro đừng chém em -__-", nói chung là người biết 1 chút chỉ người chưa biết, theo tinh thần "lá lành đùm lá rách" hay "lá rách đùm lá rách nát" gì gì cũng được :D Nào chúng ta cùng vào bài 1: SFML - CÀI ĐẶT Những điều cần biết khi học lập trình game: 1. C++ hoặc kiến thức về ngôn ngữ lập trình nào đó (Java/C#...) trong loạt bài này, mình sẽ dùng C++ 2. Graphics API, nói túm lại là cái bộ thư viện để hiển thị hình ảnh, các bạn đã từng học qua C/C++ chắc rất ngán ngẩm về cái màn hình dos, mà chẳng hiểu làm sao viết game cho Windows. Ở đây nói thêm 1 chút, theo mình biết thì có 2 cách hiển thị hình ảnh trên Windows, 1 là OpenGL (ai chơi game chắc hay thấy chữ này) và 2 là DirectX, nếu so sánh giữa 2 món này thì ko biết đã tốn bao nước miếng của cộng đồ...

Android - Cài Đặt

Bước 1: Download Android Development Kit tại website: Của mình dùng bản "installer_r16-windows.exe", download về xong thì chạy file cài đặt này và để auto, chỉ việc next next next next =]] Bước 2: Download Eclipse - Phải dùng bản 3.6 trở lên (Helios) Download Bước 3: Install ADT (Android Development Tool) - Chạy Eclipse, vào Help > Install New SoftWare - Trong cửa sổ "Install New Software" của Eclipse, chọn "Add" để add thêm địa chỉ + Trong thanh Name điền vào "ADT Software" + Trong mục url điền vào địa chỉ sau https://dl-ssl.google.com/android/eclipse/ Lưu Ý: Nếu báo lỗi khi cài đặt theo dạng "Cannot complete the install because one or more required items could not be found." thì bỏ chữ s trong https đi, để http thôi Bước 4: Restart (sau khi cải đặt ADT thành công, Eclipse sẽ hỏi bạn muốn restart ko) Bước 5: Sau khi Restart eclipse sẽ hỏi bạn đường dẫn tới Android SDK, dẫn tới thư mục đã cài đặt ở bước 1 Chúc mừng! bạn đã cài ...