• Home
  • About
  • Contact

Học Lập Trình

Nơi chia sẻ kiến thức CNTT, lập trình, các chủ đề chia sẻ cá nhân và trao đổi kiến thức về IT...

Tìm kiếm Blog nà

  • Home
  • Lập trình
    • Lập trình C/C++
    • Lập trình C#
    • Lập trình Java
  • Thuật toán
  • Lập trình di động
    • Lập trình Android
    • Lập trình iOS
    • Lập trình Windows Phone
  • Lập trình Game
    • Lập trình Game Cocos2d-x
    • Lập trình Game Unity
    • Lập trình Game LibGDX
  • Công cụ
    • Công cụ lập trình
    • Phần mềm
  • SEO

Breaking News
Showing posts with label Code game android. Show all posts
Showing posts with label Code game android. Show all posts

Friday, November 7, 2014

Code game Bầu Cua Android

Code game Bầu Cua Android
Game Bầu Cua Kinh Điển. Bầu Cua hay còn gọi với một cái tên khác đó là Tôm, Cua, Cá . Một trò chơi giân gian ... Tải Bầu Cua cho android được biết đến xuất sứ từ những lễ hội, chợ , và ...
- Âm thanh sống động
- Đồ họa đẹp mắt
- Cách chơi như thật

Source Code game Bầu Cua Android
Source Code game Bầu Cua Android giao diện ngang

Source code game android , Code game Bầu Cua Android
Game Bầu cua tôm cá Android
Websites: http://www.studycoding.net/
Page: https://www.facebook.com/hoclaptrinh.it
Download: http://goo.gl/2hEUeH
Bạn nào cần source code game comment "Source code game android , Code game Bầu Cua Android" dưới bài viết kèm với mail để ad send source qua nhé. Thanks!

Download source code: --> Download Source code
Code game Bầu Cua Android

Code game Bầu Cua Android

Nguồn tham khảo: myclass.vn
Read more ...
SHARE ! Tweet
Posted by abcdgg at 12:08:00 PM No comments:
Email ThisBlogThis!Share to XShare to Facebook
Labels: Code game android, Code game Bầu Cua Android

Thursday, October 16, 2014

Code game android Sudoku

Code game android Sudoku

Mỗi Sudoku có một giải pháp duy nhất có thể đạt đến một cách logic mà không cần đoán. Nhập một số chữ số 1-9 vào các không gian trống. Mỗi hàng phải có một trong mỗi chữ số. Và như vậy cho mỗi cột, như đối với mỗi hình vuông 3x3.
Code game android Sudoku

Màng hình chào của game gồm 4 tùy chọn: Countinue, New Game, About, Exit. Nhấn New Game để bắt đầu game Sudoku.
Code game android Sudoku
 Tùy chọn nhập mức độ chơi cho Game Sudoku: Easy, Medium, Hard

Code game android Sudoku
 Tùy chỉnh 1 số cài đặt thêm cho game Sudoku như: Music, . .
Code game android Sudoku
 Dơwnload:
   ▶  Code game android Sudoku: Tải xuống
Read more ...
SHARE ! Tweet
Posted by abcdgg at 9:40:00 AM No comments:
Email ThisBlogThis!Share to XShare to Facebook
Labels: Code game android, Source code

Friday, July 18, 2014

Built on Android Game Application Use AndEngine

Step 1: extends BaseGameActivity on AndEngine
PHP:
onLoadEngine
onLoadResources
onLoadScene
onLoadComplete
Step 2: Declaration variable
PHP:
    private static final int CAMERA_WIDTH = 720;
    private static final 
int CAMERA_HEIGHT = 480;

    private 
Camera mCamera;
    private 
BitmapTextureAtlas mBitmapTextureAtlas;
    private 
TiledTextureRegion mFaceTextureRegion;
Step 3: new variable on method
PHP:
public Engine onLoadEngine() {
        
// TODO Auto-generated method stub
        
this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
        return new 
Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE,
                new 
RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT),
                
this.mCamera));
    }
Step 4: Load Resources on Method onLoadResources
PHP:
@Override
    
public void onLoadResources() {
        
this.mBitmapTextureAtlas = new BitmapTextureAtlas(64, 32,
                
TextureOptions.BILINEAR_PREMULTIPLYALPHA);
        
BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
        
this.mFaceTextureRegion = BitmapTextureAtlasTextureRegionFactory
                
.createTiledFromAsset(this.mBitmapTextureAtlas, this,
                        
"face_circle_tiled.png", 0, 0, 2, 1);

        
this.mEngine.getTextureManager().loadTexture(this.mBitmapTextureAtlas);
    }
Step 5: Load game on onLoadScene
PHP:
@Override
    
public Scene onLoadScene() {
        
// TODO Auto-generated method stub
        
this.mEngine.registerUpdateHandler(new FPSLogger());

        final 
Scene scene = new Scene();
        
scene.setBackground(new ColorBackground(0.09804f, 0.6274f, 0.8784f));

        final 
int centerX = (CAMERA_WIDTH - this.mFaceTextureRegion.getWidth()) / 2;
        final 
int centerY = (CAMERA_HEIGHT - this.mFaceTextureRegion
                
.getHeight()) / 2;
        final 
Ball ball = new Ball(centerX, centerY, this.mFaceTextureRegion);

        
Log.d("FishingonLoadScene",  "onLoadScene dx = " + ball.getX()
                + 
"dy = " + ball.getY());

        
scene.attachChild(ball);

        return 
scene;
    }
Insert class Ball:
PHP:
private static class Ball extends AnimatedSprite {
        private final 
PhysicsHandler mPhysicsHandler;

        public 
Ball(final float pX, final float pY,
                final 
TiledTextureRegion pTextureRegion) {
            
super(pX, pY, pTextureRegion);
            
this.mPhysicsHandler = new PhysicsHandler(this);
            
this.registerUpdateHandler(this.mPhysicsHandler);
            
mPhysicsHandler.setVelocity(DEMO_VELOCITY, DEMO_VELOCITY);
        }

        @
Override
        
protected void onManagedUpdate(final float pSecondsElapsed) {
            if (
this.mX < 0) {
                
this.mPhysicsHandler.setVelocityX(DEMO_VELOCITY);
            } else if (
this.mX + this.getWidth() > CAMERA_WIDTH) {
                
this.mPhysicsHandler.setVelocityX(-DEMO_VELOCITY);
            }

            if (
this.mY < 0) {
                
this.mPhysicsHandler.setVelocityY(DEMO_VELOCITY);
            } else if (
this.mY + this.getHeight() > CAMERA_HEIGHT) {
                
this.mPhysicsHandler.setVelocityY(-DEMO_VELOCITY);
            }
            
Log.d("FishingonManagedUpdate", "onManagedUpdate dx = " + this.getX() + "dy = "
                    
+ this.getY());
            
super.onManagedUpdate(pSecondsElapsed);
        }
    }
Notes library on using project:
PHP:
package studycoding.net.movingball;
import org.anddev.andengine.engine.Engine;import org.anddev.andengine.engine.camera.Camera;import org.anddev.andengine.engine.handler.physics.PhysicsHandler;import org.anddev.andengine.engine.options.EngineOptions;import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientation;import org.anddev.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy;import org.anddev.andengine.entity.scene.Scene;import org.anddev.andengine.entity.scene.background.ColorBackground;import org.anddev.andengine.entity.sprite.AnimatedSprite;import org.anddev.andengine.entity.util.FPSLogger;import org.anddev.andengine.opengl.texture.TextureOptions;import org.anddev.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;import org.anddev.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlasTextureRegionFactory;import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;import org.anddev.andengine.ui.activity.BaseGameActivity;
import android.util.Log;

  Step 6: Buil applition: 
Xây Dựng Ứng Dụng Game trên Android Sử dụng AndEngine


Read more ...
SHARE ! Tweet
Posted by abcdgg at 8:40:00 AM No comments:
Email ThisBlogThis!Share to XShare to Facebook
Labels: Andengine, Code game android, Game Android

Thursday, May 15, 2014

Source Code Game Android

Mình có tổng hợp 1 số source code game đơn giản trên android giúp hỗ trợ học tập , làm đồ án, làm quen với làm game 2D trên android.
1. Game 2048
Với giao diện  đơn giản - code xử lý không hề phức tạm nhưng 2048 là 1 game "sôt"  trên cộng đồng game di động gần đây.
Download Source Code
2. Game Pikachu 
Thể loại game rất quen thuộc. Với giao diện thân thiện với nhiều icon pikachu đẹp.

Download Source Code
3. Game trúc xanh 
Với luật chơi đơn giản với 2 hình lật lên giống nhau thì đuợc tính điểm
Game 2 hình giống nhau là nên tản để viết các game phức tạm 

Download Source Code
 3. Game xếp hình
1 tậm hình đuợc cắt ra thành nhiều tấm nhỏ. Nguời chơi phải sắp xếp lại cho đúng thứ tự
Download Source Code
 4. Chuyển số
Là nền tản của các game sắp xếp theo 1 quy luật nào đó.
Bản game demo trên ma trận các button -> sắp xếp theo số tăng từ 1 -> 9
Download Source Code

SOURCE CODE DÙNG HỖ TRỢ HỌC TẬP, LÀM QUEN VỚI LÀM GAME ĐƠN GIẢN TRÊN ANDROID. 
CAC BẠN DOWNLOAD THÀNH CÔNG SOURCE CODE NÀO ĐỂ LẠI CMT Ở DUỚI  ĐỂ CÁC  BẠN KHÁC CHECK NHÉ
THANKS!
Ví dụ:
Mình cần source game 2048  
Read more ...
SHARE ! Tweet
Posted by abcdgg at 9:23:00 PM No comments:
Email ThisBlogThis!Share to XShare to Facebook
Labels: Android, Code game android, Source code
Subscribe to: Posts (Atom)

FANPAGE HỌC LẬP TRÌNH

Học Lập Trình Không Khó – Khi Bắt Đầu Từ Con Sô 0

Popular Posts

  • Bí Kiếp Độc Cô Cửu Kiếm Cho Dân IT
    Kiếm thứ nhất  :  Kiếm Tàn Lục Thức(Kỹ thuật lập trình)  , chiêu này bao hàm căn cơ nhất cho toàn bộ bí kíp, nếu luyện ...
  • 13 bước để trờ thành Hacker chuyên nghiệp
    Nếu bạn có ý định trở thành một hacker chuyên nghiệp hoặc đơn giản chỉ là tò mò muốn biết các hacker đang học những gì, thì bài viết này dà...
  • Chán lập trình: Làm thế nào để lấy lại động lực đã mất
    Bạn bị mất niềm đam mê đã từng có trong nghề lập trình? Nó đang ảnh hưởng tới động lực của bạn để có thể hoàn thành công việc? Bạn đang t...
  • Lập trình viên có cần học đại học hay không?
    Dạo gần đây mình hay gặp một số topic kiểu “Cảm thấy mất định hướng khi học Đại học”, “Liệu em có nên bỏ Đại Học hay không?”, “Ki...
  • 7 Công Cụ Lập Trình PHP Tốt Nhất – IDE lập trình PHP
    IDE  là gì?   viết tắt của từ Integreted Development Environment mình tạm dịch là môi trường phát triển thích hợp. Nghĩa là nó tích hợp các...
  • Bài tập thuật toán C/C++ Và Tuyển tập đề thi olympic
    Gồm: +  Các thuật toán của Lê Minh Hoàng + Tuyển tập các đề thi olympic tin học sinh viên Link down: Tại đây
  • [Bắt đầu Học Lập Trình] Bài giảng Phong cách - Nhập môn - Kỹ thuật lập trình - Thầy Đăng Bình Phương - ĐHKHTN
    Cách học code lập trình hiệu quả ! Chắc hẳn khi bắt đầu vào học lập trình , khi bạn chưa định hướng được con đường tốt nhất và...
  • Lĩnh Vực Trí Tuệ Nhân Tạo(AI) - Những đứa trẻ trị giá triệu đô
    Bài viết được dịch từ tạp chí  Economist Các công ty đang tuyển dụng nhân tài kể cả khi họ chưa tốt nghiệp. Mới đây một chương trình má...
  • Nên học một hay nhiều ngôn ngữ
    Gần đây mình nhận được một số câu hỏi về chuyện “Nên tập trung vào 1  ngôn ngữ  hay là học nhiều ngôn ngữ”. Đây là một vấn đề gây khá nhi...

Search This Blog

Report Abuse

Powered by Blogger.
Designed By hoclaptrinhcanban