Diablo style game

Posted By: mschoenhals

Diablo style game - 10/14/15 17:00

Hi all!
Looking to start work on a "Diablo" style game where the camera is in an isometric position; possibly with the ability to zoom in and out with the wheel mouse. Does anyone know where I might see some example code for this?

Thanks in advance.
Posted By: rayp

Re: Diablo style game - 10/14/15 18:16

Maybe this helps
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=30905

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=30905

Very Basic cam (not tested)
Code:
while (1){
   vec_set (camera.x, my.x);
   camera.z += 100;
   camera.tilt = 80;
   wait (1);
}


and for zoom u could mod this example from manual (with mickey.z 4ex)
Code:
void sniper()
 {
   while(1)
   {
     if(mouse_right) // right mouse button pressed
     {
       camera.arc = max(camera.arc - time_step, 30);	 // reduce fiel of view
     }
     else
     {
       camera.arc = min(camera.arc + time_step, 60);    // increase fiel of view
     }
     wait(1);
   } 
 }



greets



Posted By: Anonymous

Re: Diablo style game - 10/14/15 18:25

A few dollars and I'll write it for you! lol wink

to use the mouse wheel he'll need micky.z
Posted By: rayp

Re: Diablo style game - 10/14/15 18:27

Money Money...all People want is Money...
Quote:
manual (with mickey.z 4ex)
Posted By: Anonymous

Re: Diablo style game - 10/14/15 18:29

^ opps missed it! Sorry man!

Quote:
Money Money...all People want is Money...


Well it's been a decade of give code for free. Few dollars gets fast and well written code. I guess what I'm saying is - I'm not bored enough to write this for you right now. But maybe I'll become bored soon, never know.
Posted By: rayp

Re: Diablo style game - 10/14/15 18:30

No prob grin

LOVE!


edit:
U can find a lot of camera handling examples on RealSpawns Workshop collection located here:
http://www.rp-interactive.nl/ws/wshops.html

3rd person example but u can see how cams can check for obstacles, walls and stuff
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=429503#Post429503
Posted By: Realspawn

Re: Diablo style game - 10/15/15 10:48

have a look here : https://www.youtube.com/watch?v=zq7krn8Z_jo

all camera views are handled here
© 2024 lite-C Forums