Nenek saya.

Posted: April 22, 2012 in The World According to Me

Salam…

For past few days, I’ve been playing around with Adobe Photoshop CS4; learning how paint a portrait. Most of the technics I got it directly from this channel. Learnt how to use brushes, blending colors, etc. It’s almost fun as it’s stress.

 

Physically, I’m never good at painting. Everytime I tried to mix colors, either it’s too much or not enough & I would end up with not the exact color I wanted. So, I use CS4. Hours of practices & experiments, including much self-cursing, I came up with this failure. Supposedly, this portrait is a young lady & I turned her into an old women unintentionally. *sigh*

 

 Image

Big Jack #58

Posted: March 23, 2012 in The World According to Me

Salam…

 

Masa sekarang 2.52AM. Aku ada lebih kurang 3 jam utk tidur & buat keputusan. Pilihan antara rasional & nafsu. Skim atau tidak? Of course if I chooses to go, the only thing I may regret later would be money, time & rest. Tapi sesungguhnya, aku suka pressure seperti ini. Dewasa ini, aku dah xpenuhkan jadual aktiviti macam aku yg 4 tahun lepas. Aku seperti akur & terima kenyataan bahawa umur mematangkan keputusan. Peranan rasional & nafsu kebanyakannya terletak pada faktor terbesar – duit.

 

Sejak berbulan yg lepas, aku lebih banyak menolong dari memenuhi kehendak diri. Aku xberbangga. Bukan dalam tentatif jadual yg aku perlukan. Kebanyakan masa, aku cenderung berpaling dari arah yg patut aku pijak & dari masa-masa itu juga, aku lari dari rasional. Lari. Sepanjang hidup aku, aku banyak berlari. Kata-kata mak ayah dulu, semakin jelas namun bisikan jahanam masih berlegar. Bertindak degil memang seronok. Terkadang aku sendiri pun takut.

 

Buat masa yg terluang, aku habiskan dengan membaca. Teringin juga utk menulis; menyambung cerpen yg aku & Sabariah karang (“Sehari Sebuah Cerita”) dulu semula. Tapi aku tolak perlahan-lahan idea itu ke tepi kerana takut menyingkap situasi lama. Aku juga belajar mengingat memori-memori lama dgn merasa situasi pada waktu kejadian. Mungkin apa yang aku taip pada malam ini, aku x akan baca semula. Ini sekadar proses menenangkan diri, menipu diri sendiri & menghabiskan masa sambil menunggu download aku sejak 1 jam yg lepas, siap.

 

Ya, mungkin aku akan mula menulis, melukis & melangsai ‘projek-projek’ aku yang tertangguh. Tapi bukan hari ini. Dalam kepala aku sekarang timbul semacam arus deras idea. Atau mungkin ini kesan caffeine berlebihan yg aku minum sejak maghrib tadi. Selebihnya, dalam kepala aku sekarang, tatabahasa yg berkecamuk dari awal post ini. Mungkin sebab inilah aku xmenulis. Huh…. Walaubagaimanapun, aku mungkin akan upload gambar-gambar kereta Iswara kesayangan aku nanti. Ya, aku berpuas hati dgn ‘make-over’ yg aku buat.

 

Aku nak kencing.

Salam…

Kindly be noted that this for my school project – Games Programming 2. This is not a tutorial. In order to complete the subject, I am required to develop a 3D game based on Visual Studio using directX. Back from ‘lepaking’ (in PD), I was poking around looking for ideas, tutorials, etc., I found this tutorial most helpful. Probably would keep hanging around throughout the semester.

Texture filters, lighting & keyboard control.

Create a DirectX 3D World

Making a Diablo-like game.

DirectX basics.

I will keep editing this page for my personal references….by any chances, might helped anyone bumped onto this lame blog (I know, I’m too lazy to blog….too many people hang out in my room).

Salam….

Aku rasa, aku nak mula balik aktif menulis blog. Aku dah mula rasa Facebook terlalu muda utk aku. Kalau nak disimpulkan semuanya, aku dah hambar dengan Facebook & intipatinya. Cuti – MMU dah mula cuti semester & akan mulakan semester baru pada 17hb Oktober 2011. Walaupun agak perlahan berbanding cuti sebelum semester lepas, namun aku rumuskan sebagai menarik.

Dah lama rasanya aku tak buat perangai macam dulu; main game sampai tengah hari esoknya, lepak dengan Z sampai lebam, lepak rumah klik road trip (Aie, Ejan, Sharom, etc.) bahagian Port Dickson. Semua ni aku dah tak boleh tahan lama. Mungkin betul Z selalu cakap, aku dah tua. Hah!

Dalam perjalanan aku ke rumah Z tadi, selingan gambaran memori-memori lama – aku tersengih seorangan (maafkan aku kalau cubaan aku kekalkan tatabahasa Bahasa Melayu…aku tahu, janggal iramanya). Betul, aku dah semakin lanjut usia & perbualan kami (Aie & Ejan) juga timbulnya destinasi yang sama. Bila aku nak habis belajar. Jawapannya? Aku sendiri tak tahu. Namun, aku tahu aku akan bersungguh.

Z datang.

Game Dev: Day 2

Posted: August 14, 2011 in The World According to Me

Salam…

After much altering, repairing & debugging, the algorithm turns out much of what I’m expecting. Although, few more algorithm seems not working out since 6 hours ago (have to break fast first & guling2 = 3 hours total).  After last post, the health bar is working but not in a proper way — it keep reducing although the enemies hasn’t hit the player yet. Anything else is working perfectly like enemy randomly spawn & targeting the player. However, I did not managed to make the keyboard inputs function running. The function is in the Player class & supposed to be kicking the functions when testing. If anyone out there stumbled across this post, please do help (This is my first game & have not learn ActionScript before).

This is the Player class code:

package  {

	import flash.display.MovieClip;
	import flash.display.Stage;
	import flash.events.KeyboardEvent;
	import flash.events.Event;
	import flash.ui.Mouse;
	import flash.ui.Keyboard;

	public class Player extends MovieClip {

		private var stageRef:Stage;

		private var rightKeyisDown:Boolean = false;
		private var leftKeyisDown:Boolean = false;
		private var upKeyisDown:Boolean = false;
		private var downKeyisDown:Boolean = false;

		private var playerSpeed:Number = 7;
		private var vx:Number = 0;
		private var vy:Number = 0;
		private var totalHealth:Number=1;

		public function Player(stageRef:Stage):void {
			// constructor code
			this.stageRef = stageRef;

			addEventListener(Event.ENTER_FRAME, HitTest);
			addEventListener(KeyboardEvent.KEY_DOWN, PressAKey);
			addEventListener(KeyboardEvent.KEY_UP, ReleaseAKey);
			addEventListener(Event.ENTER_FRAME, moveThePlayer);

		}

		public function HitTest(event:Event):void
		{
			if (hitTestPoint(this.x, this.y, true))
			{
				//if the value of totalHealth more than 0
				if (totalHealth>0)
				{
					//reduce the totalHealth by 0.05
					totalHealth-=0.05;
					//trace("Ouch!");
				}
				//if the value of totalHealth is less than or equal 0
				if (totalHealth<=0)
				{
					//make the totalHealth vaule become 0
					totalHealth=0;
					//trace("You're Dead");
				}
				dispatchEvent(new Event("hit"));
			}
			//make the x scale of healthBar movie clip same as totalHealth value
			MovieClip(root).healthBar.scaleX = totalHealth;
		}
		private function PressAKey(event:KeyboardEvent):void
		{
			if(event.keyCode == Keyboard.RIGHT){
				rightKeyisDown = true;
			}
			if(event.keyCode == Keyboard.LEFT){
				leftKeyisDown = true;
			}
			if(event.keyCode == Keyboard.UP){
				upKeyisDown = true;
			}
			if(event.keyCode == Keyboard.DOWN){
				downKeyisDown = true;
			}
		}

		private function ReleaseAKey(event:KeyboardEvent):void
		{
			if(event.keyCode == Keyboard.RIGHT){
				rightKeyisDown = false;
			}
			if(event.keyCode == Keyboard.LEFT){
				leftKeyisDown = false;
			}
			if(event.keyCode == Keyboard.UP){
				upKeyisDown = false;
			}
			if(event.keyCode == Keyboard.DOWN){
				downKeyisDown = false;
			}
		}

		private function moveThePlayer(event:Event):void
		{
			if(rightKeyisDown)
			{
				x += playerSpeed;
				scaleX = 1;
			}
			if(leftKeyisDown)
			{
				x -= playerSpeed;
				scaleX = -1;
			}
			if(upKeyisDown)
			{
				y -= playerSpeed;
				scaleY = 1;
			}
			if(downKeyisDown)
			{
				y += playerSpeed;
				scaleY = -1;
			}
		}// End of player movement function
	}
}

Next, I’ll be adding the mouse click function, mouse rotation function & Bullet class. What’s the point of playing the game if you can’t do much. The idea is to shoot & survive the waves. In future enhancement, I was thinking of having a shop & adding stat points to the player’s attribute…but only after I’ve done the main goal of the game. Sekian…