Click here to Skip to main content
Click here to Skip to main content

Sheild For Ultrabook

By , 23 Oct 2012
 

Please note

This article is an entry in our AppInnovation Contest. Articles in this sub-section are not required to be full articles so care should be taken when voting.

 

Disclaimer

This article is an entry in our AppInnovation Contest. Articles in this sub-section are not required to be full articles so care should be taken when voting. 

Introduction 

Mission : Use Your shield to defend the Core from the evil red organisms!,

Sheild is an interactive Touch Based Planning game designed to show gamers the advantage of playing games on an Ultrabook by utilizing features only the Ultrabook has to offer in order to give the player a gaming
advantage over standard keyboard and mouse input devices.  Its  a HTML 5 Based Desktop Applicationgame with  Lots of New Features and  Light weight with compatible to windows 8 device .

Its a Desktop Application , Nearly Complete for Windows Store , Need Device for Beta Testing.

Screenshots
Layout :

 Game Play

 

Background  

 I have been working with Sheild Game Plan since I made my
first HTML5 Game. I learned a lot about HTML5 and its New Features. I have since spent most
of my time in c#, Sliver-light, and xna but Now Concentrating on HTML5 Games .   

Key Features   

  • Fully playable with keyboard, mouse, and touch (Ultrabook Compatible ).
  • Pure JavaScript Logic with HTML5 compatible. 
  • Use Your Touch or Mouse to Save your Core with Multi -Touch Compatible.
  • Ability to Share Score with friends on Facebook , twitter etc.


Using the

 First ,  Code for the Core of the Sheild Here I implemented THE  logic  Using the JavaScript
I will start with Giving Life to Core by this Function

function giveLife( organism ) {
		var side = Math.round( Math.random() * 3 );
		
		switch( side ) {
			case 0:
				organism.position.x = 10;
				organism.position.y = world.height * Math.random();
				break;
			case 1:
				organism.position.x = world.width * Math.random();
				organism.position.y = 10;
				break;
			case 2:
				organism.position.x = world.width - 10;
				organism.position.y = world.height * Math.random();
				break;
			case 3:
				organism.position.x = world.width * Math.random();
				organism.position.y = world.height - 10;
				break;
		}
		
		organism.speed = Math.min( Math.max( Math.random(), 0.6 ), 0.75 );
		
		organism.velocity.x = ( player.position.x - organism.position.x ) * 0.006 * organism.speed;
		organism.velocity.y = ( player.position.y - organism.position.y ) * 0.006 * organism.speed;
		
		if( organism.type == 'enemy' ) {
			organism.velocity.x *= (1+(Math.random()*0.1));
			organism.velocity.y *= (1+(Math.random()*0.1));
		}
		
		organism.alpha = 0;
		
		return organism;
	}  
 And Now Game Over Function  
function gameOver() {
		playing = false;
		
		// Determine the duration of the game
		duration = new Date().getTime() - time;
		
		// Show the UI
		panels.style.display = 'block';
		
		// Ensure that the score is an integer
		score = Math.round(score);
		
		// Write the users score to the UI
		title.innerHTML = 'Game Over! (' + score + ' points)';
		
		// Update the status bar with the final score and time
		scoreText = 'Score: <span>' + Math.round( score ) + '</span>';
		scoreText += ' Time: <span>' + Math.round( ( ( new Date().getTime() - time ) / 1000 ) * 100 ) / 100 + 's</span>';
		status.innerHTML = scoreText;
	}

Other Source Code  for the Sheild and Canvas , I can't Disclose Because, this Application is Nearly complete ready for Windows Store   and I donot want  any IP lose .  Its a Pure HTML5  Game with JavaScript Logic's .

What's Next? 

  • Making Attractive Layout with Facebook and Twitter Integration
  • Multi-Touch for zoom in and out and Compatible with other devices. 
  • More Levels and Big , Multilayer if possible ) 
  • The Next version of Sheild aim to include support for Augmented reality based Game. 

Final Note  

Building a Sheild game  that makes sense for the Ultrabook has been sorta like building a project built for computer and a tablet at the same time. Save the Core from the Enemies and Go to next Level.


Ultra book Features Used

The app uses  touch features  of ultra book in different utilities of the application . The version 1.0 will be available for download shortly . 




License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

gurupreetusit
Student
India India
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5membernicks70723 Oct '12 - 18:54 
looks promising
GeneralMy vote of 5memberTech Dutta23 Oct '12 - 18:13 
The game is Looking Exciting and promising.
QuestionYou mean...Shield?adminChris Maunder23 Oct '12 - 10:52 
I think you have a typo.
cheers,
Chris Maunder
 
The Code Project | Co-founder
Microsoft C++ MVP

AnswerRe: You mean...Shield? [modified]membergurupreetusit23 Oct '12 - 18:09 
Hi Sir,
 
No sorry, but , Its Right Name , There is also a game name Shield which has no link with this game, I named it as Sheild with some deep meaning Smile | :)

modified 24 Oct '12 - 0:58.

QuestionRe: You mean...Shield?membergurupreetusit27 Oct '12 - 22:46 
Sir, I don't got any ultrabook , still I want to submit it , I am done with my application so should i submit it ?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 23 Oct 2012
Article Copyright 2012 by gurupreetusit
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid