EliteIntegrity

/John Horton

About John Horton

Writer at GameCodeSchool.com
  • Android_Game_Programming_by_Example_Book

Android Game Programming by Example

By |

  • android_2d_rotation_and_heading_demo

Android 2d rotation and heading demo

By |

In this project, we will put into practice everything we learned in part 1 and part 2 of the tutorial series on trigonometric functions. We will draw a simple triangle-shaped spaceship to the screen by drawing lines between three points/vertices. We will then see how we can do the math to smoothly rotate it and […]

  • world_and_object_space (1)

Rotating graphics in 2d games: Using trigonometric functions part 2

By |

In this second part of the series on trigonometric functions we will use the sine and cosine of an angle to rotateĀ a point around a specific central point. We will then see that by drawing multiple points around the central point and using the same calculation on each we can create the effect of an […]

  • Simple manipulation of the x and y coordinates can be used to move our hypothetical spaceship in 8 directions

Calculating heading in 2d games: Using trigonometric functions part 1

By |

This article takes a high-level but hopefully useful look and some common trigonometric functions with the aim of clarifying how they can be used as solutions in our game coding to create some cool movement and drawing effects. As this article is aimed at beginners in game coding it makes no assumptions about the readers […]

  • android_sprite_sheet_animation

Coding Android sprite sheet animations

By |

This very simple tutorial will quickly bring your games to life by drawing the frames of animation from a row of frames drawn consecutively in the same file. We will see how to draw each of five frames one after the other and after we have drawn the last frame, loop back to the first. […]

  • android_space_invaders_completed_project

Coding a Space Invaders game for Android

By |

Welcome to the Space Invaders coding project for Android. In this game project, we will step through everything you need to know to have a fully playable Space Invaders clone running on your Android phone or tablet. The wave of invaders is genuinely challenging yet achievable and it would be simple for you to extend […]

  • The completed Breakout/Arkanoid game running on Android

Coding a Breakout (Arkanoid) game for Android

By |

In this project, we will build a really simple but fun version of the classic Breakout game for Android. Often known as the “Brick breaker game” the history of the game is interesting and if you like nostalgia I urge you to read this history of Breakout. Breakout sometimes called Arkanoid was developed by Atari […]

  • android_sound_fx_demo

Playing sound FX demo

By |

In this mini-project, we will play a sound on an Android device. We will see how we use the SoundPool class to load a sound from a file and then play it. This is another significant step on the journey to build a complete game.

 

 

Create a new project
Create a new Android Studio project, call it […]

  • simple_game_engine

Building a simple game engine

By |

In this mini-project we will draw a moving, controllable sprite to your Android device. We will draw Bob to the screen and when the screen is touched he will move to the right and when the screen is released he will stop. However, we will have achieved much more than this as this simple 2D […]

  • drawing_graphics_demo

Drawing graphics demo

By |

In this really simple mini-project, we will really harness the power of classes and objects by using classes from the Android API which allow us to draw graphics on the screen. We will see how we can draw shapes, lines, pixels, text, and even custom-designed graphics like game characters. We will do all of this […]

css.php