Finishing prototype

Tomorrow I have to pass documentation for my mobile development game. Development name “Carlos”.

Basic idea for the game is to move from place A to place B – but that is not so easy to do! There is labyrinth a.. and a evil sphere.. fine! I had no idea for the game, ok!

Well not simple enough to be build in less than a week, anyway. This was great background for developing simple Android Framework that will allow me to develop something more sophisticated in the future.

Last changes for lightning, music  and labyrinth model  and tomorrow documentation..

fingers crossed,

Ok, adding music is really easy!

what we need is variable

private MediaPlayer mp;

then in onCreate method

  mp = MediaPlayer.create(this, R.raw.run);
  mp.start();

and done!

you can as well add

mp.stop();
mp.pause();

CBox Class

Idea
Whole world in this project is made by boxes as mentioned in previous post: Carlos – World Class – First Prototype.

Feature

  • Different texture for every box can be used
  • Box can be set in every place – simply calculated on world array
  • Feature to show where box is set
  • Every Box can have set up is if is passable or not

Future Development
In future I want to make this class more sophisticated for instance

  • transparent boxes (windows),
  • disappearing  boxes (traps),
  • position of box changed in real time (lifts, doors)

Continue reading CBox Class

Carlos – World Class – First Prototype

World Class
World in this game is made by blocks that can by passable or cannot, there is different class used to handle boxes it is called CBox. Idea is really simple but really effective and popular in industry. (google for Minecraft or cubeengine – fun fact Crytek – has used little *ekhem*, well bit more than that.. but based on the same idea solution  for Crisis, where whole world is created by millions of boxes that allows creation of tunnels, caves, etc.

Feature
Load, process and draw  3-dimension map, it is container class that contains all elements that are on map player, AI opponent, floor, walls, lights.

Class include:

  • Update on click/touch
  • Process lights – note: only exit point light – requires future development
  • Draw – draw blocks
  • Checker for boxes is is passable
  • Clearing visited positions
  • keep past and current frame time

Continue reading Carlos – World Class – First Prototype

UML Diagram

For over a week I was trying to transform touch on screen coordinates to 3D coordinates in game world.. as far as now.. no success.. I was trying them all.. color picking.. gluUnProject.. nothing.

probably my math is not good enough for gluUnproject but still.. there is no way of finding good examples or tutorials how to actually us this tech.. or there is something wrong with me.

anyway.. deadline is approaching and I am still straggling with picking an object.. if anyone knows simple solution.. i am more than happy to get it 🙂

the other hand – yesterday I have spent couple hours with friends of mine at university pc lab on other uni project.. Software Engineering UML different diagrams. Below story:
Continue reading UML Diagram

Android 2.2 3D – cube with a shadow

1: Intro

In this article/tutorial I ll present how to create *cough* simple *cough* – well simple after you make it, cube with shadow effect. The idea is to make our android based device to display cube that will rotate around it own and – well that happened without my intention – around light source.  Problems I meet ware mostly based on me being not familiar with GL API.. but.. one step at time.. in next post I ll present how to add bitmap on the surface of cube..
Continue reading Android 2.2 3D – cube with a shadow

Android v 2.2 – Set up and 12 balls.

After over 48 hours with 4hours of sleep, 18 hours of work, 2hours of catching up with university, 0.5hour of set up eclipse on pc – with android SKD and configuration, 2hours of searching and 1hour of actual codding I come up with 12 balls that bounce on my phone – at the moment only from top of display to the bottom but I think that – considering my mental condition – I have got around 12 coffees and 2 relentless.. yeah my hands are shaking – anyway. I have 12 balls.

Continue reading Android v 2.2 – Set up and 12 balls.