Back

Weapons 3D menu

An example of a 3D menu similar to the original Tomb Raider 2 menu, it contains some weapons and a similar background. The menu control is binded to two html buttons and also the name of the selected element is displayed in a html tag under the menu. 3D models by Kingofthecrows on Opengameart

Click on the arrows to move

						
 							
            
					  
						

var newMenu = new tombraidermenu('demo1');
newMenu.setRadius(2800);
newMenu.setCameraHeight(1200);
newMenu.setCameraDistance(5800);
newMenu.addModel('Shotgun','../models/shotgun.json',null,null);
newMenu.addModel('EO Tech','../models/eotech.json',null,null);
newMenu.addModel('USP','../models/usp.json',null,null);
newMenu.addModel('SCAR','../models/scar.json',null,null);
newMenu.addModel('M4 Rifle','../models/m4.json',null,null);

$("#moveLeft").on("click",function(){
	newMenu.moveLeft();
	$("#itemName").html(newMenu.getSelectedName());
});

$("#moveRight").on("click",function(){
	newMenu.moveRight();
	$("#itemName").html(newMenu.getSelectedName());
});