DCSIMG
Web,How To,TECH - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » Web » How To » TECH (RSS)
פיתוח משחקים ב JavaScript - מבוסס על משחק סופר 8 - חלק 4
בפוסט הקודם חלק 3 – פיתוח משחקים ב – JavaScript דיברנו על איך להזיז את הדמות במרחב המשחק ואיך לשנות את כיון התמונה שתתאים לכיון שהדמות הולכת אליו. בפוסט הזה נדבר על יצירת אווירה (רקע ואלמנטים נוספים) למשחק, לא סתם איך להוסיף תמונות רקע נדבר על איך לגרום לרקע לנוע יחד עם הדמות עלל מנת ליצור תחושה של תנועה מתמשכת. בפוסט זה נשתמש בספריה נוספת שנקראת – PreloadJS , שגם שייכת לסט הספריות של Create JS. (עד עכשיו השתמשנו ב – EASE JS שגם משתייכת לשם) ספריית Preload JS, מאפשרת טעינה של קבצי מוסיקה, תמונות...
פיתוח משחקים ב JavaScript - מבוסס על משחק סופר 8 - חלק 3
בפוסט הקודם חלק 2 בפיתוח משחקים ב – JavaScript דיברנו על מה זה  Sprite ואיך בעזרת ספרייה EASE JS להציג רצף תמונות מאותו מקבץ תמונות על מנת להציג אנימציה למשתמש. בפוסט הזה נדבר על איך להזיז את הדמות במרחב על פי הפעולה שהדמות מבצעת. המשימה הראשונה שלנו היא להזיז את הדמות במרחב המשחק, על מנת לבצע זאת נשנה את פונקציית tick באופן הבא: ראשית, נגדיר תחום משחק – תחום המשחק ימנע מהדמות שלנו לבצע מגבולות המשחק. בתוך פונקציית tick נוסיף את הקוד הבא: if (player.x >= id( "gameCanvas" ).width...
פיתוח משחקים ב JavaScript - מבוסס על משחק סופר 8 - חלק 2
בפוסט הקודם חלק 1 – פיתוח משחקים ב – JavaScript דיברנו על פיתוח משחקים ב – JavaScript בעזרת ספרית EASE JS, ספריה המאפשרת לנו לעבוד עם אוביקט Canvas של HTML 5 בצורה קלה ונוחה. בפוסט הקודם הדגמתי איך בצורה קלה נוכל להשתמש באוביקט Stage על מנת להכיל את כל האלמנטים של המשחק ושימוש ב – Ticker על מנת לעדכן את האלמנטים בתוך לולאת המשחק. הפוסט הזה ירחיב את הנושא ונתקדם למימוש פעולות של השחקן עד ידי הפעלת אנימציה ספציפית לכל פעולה. לפני שאנחנו נכנסים לקוד צריך להבין להכיר אוביקט חשוב שנקרא – Sprite: Sprite...
How To: Detect Mobile Device Users In Your Web Site – JavaScript
Tweet Today everything is about Mobile Devices, users are using their tablets and phones to view web sites. Some web sites has a mobile application or just what to inform the user about a related mobile application. So the question is how to inform the user about a mobile application related to a specific site? You can put some links in your site and maybe the user will click on those links and will be redirect to your mobile application, but I want more – I want my site to detect if the user comes...
Email Confirmation - ASP.NET MVC Web Application
Tweet In my previous post on ASP MVC I showed How To Add Captcha to ASP MVC Web Application, but even if you use captcha you still want to make sure the user email is real and not just a fake one. In order to make sure the user has gave you his real email you need to use Email Confirmation mechanism to your site. ASP MVC is doing some of the work for us, when a user is register to your site is assign with a unique ID (Guid) property called -  ProviderUserKey I’ll use this value to verify the...
Increase Web Test Reponses Size
Increase Web Test Reponses Size I just visit a customer that has a problem doing Web Test on his Web Application, the problem were that the response was cut off before web test was able to receive all the data, when he looked at the response he saw the data from the server but no all the data came back. The response is almost 5mb and for some reason Web Test is unable to save all the data… Why? The reason is VS has a receive buffer that defaults to 1,500,000 bytes (1.5 megabytes) and it throws away...
Tech-Ed 2010 – Applied Software Testing with Visual Studio 2010 – All In One
Tech-Ed 2010 – Applied Software Testing with Visual Studio 2010 – All In One Teched Israel 2010 is going to happen next month in Eilat between the 28-30 of November. On this Teched I’ll have the pleasure to present a session about Applied Software Testing with Visual Studio 2010 In this session I’ll demonstrate how to use the following: Microsoft Test Manager – Fast Forward Automation Web Performance Testing Load Testing Coded UI Testing Why? So YOU can do Automatic and Load Testing by yourself!...