Skip to content
Rowan de Graaf edited this page Jan 29, 2015 · 2 revisions

During the planning of this project I had to see what objects I would use to complete this feat. A lot of the UI can be created with the drag n drop UI builders which are pretty famous among mobile development. Offcourse everything can be made programatically but why not use what you've already got laying around. Now for the gamingfield a couple of different methods can be looked at.

While browsing the internet in search of some holy intervention I cam across a post explaining the difference between Drawables and Canvas. While both of them are absolutely not comparable ( except the part where you can draw stuff with it ) they both seem suited for creating my playfield. This way I could store walls, gridpoints in classes which would represent my tools for this game ( This seems the right way cause it helps the java flavor way of things to come to light. Tho programmatically drawing on the canvas gives you all the power you need since you can adjust any pixel to any means. Using the canvas at this point is the way to go.

Classes that the project will be using.
Canvas
Bitmap
Views
Socket
BufferedReader
BufferedOutputStream
Multiple drawfucntions found in Canvas.

Clone this wiki locally