Sunday, December 30, 2012

cc.exe

A simple program that I wrote to ease the compilation process using GCC. It takes one string as the input file name and the output file is named as the input file.

For example, to make an EXE from the file Example.c, one must type in the command prompt:
gcc Example.c -o Example.exe

By using cc.exe, one must only type:
cc Example

Below is the source code:

#include <stdio.h>

int main(int argc, char *argv[]) {
    char a[100];
    sprintf(a, "gcc %s.c -o %s.exe", argv[1], argv[1]);
    system(a);
    return 0;
}

Saturday, December 22, 2012

A Typing Game (source file)



In this game, you must type the meaning of the Arabic words that are shown above the robots in the language that you choose (Bahasa Melayu or English). Press enter to shoot. Don't let the robots get near you! The table below shows the translations for each word:



  (source file, requires Game Maker: Studio)

I also include the source file for the program that I used to create the Arabic characters. It is useful to make Arabic sprite font. It is for US keyboard. To use it, type in the alphabet that has the closest sound with the Arabic character that you want to write. For example, if you want to write "alif", press A. But if you want to write "kha", you must press H first and you will get "ha". Then press shift to shuffle between the characters until you get "kha".


(source file, requires Game Maker: Studio)

Wednesday, December 5, 2012

Rusty Chain

Rusty Chain by FoxKid1994
Rusty Chain, a photo by FoxKid1994 on Flickr.

Captured using Casio Exilim EX-Z33 at Taman Tasik Perdana

Friday, November 23, 2012

Poster Design for Photography Club


This is a poster I made for Photography Club in UTM. The font I used is Open Sans.

Tuesday, November 6, 2012

Polo Shirt Design

Made this for my friend.

Saturday, October 20, 2012

Rambutan Muda

Rambutan Muda by FoxKid1994
Rambutan Muda, a photo by FoxKid1994 on Flickr.
Rambut means hair

Roselle

Roselle by FoxKid1994
Roselle, a photo by FoxKid1994 on Flickr.

Wednesday, October 17, 2012

WIP: Zombies?


This is a screenshot of my latest work in progress. Currently, the player can shoot zombies. I also added an automatic turret. I'm planning to make it a mini game, not a big one because I am too busy with other things. By the way, do you have any idea which you would like to contribute to this project?

Friday, August 17, 2012

Scrolling Background: Some Explanations


Scrolling background

I created a canvas with coloured background. Below is the CSS:

     canvas {
                position:fixed;
                left:0px;
                top:0px;
                background:#B1EDE7;
            }


This is one of the background that I used.

Using JavaScript, I drew the same background twice. The first one is placed on the canvas, and the other one is placed just outside the canvas.

When one of the background has moved outside the canvas (x <= 3 - room_width), it will be transferred back to x = 320, which is the width of the canvas. (I am used to Game Maker. That's why the variable is named as "room_width")


                //make the background scrolling - bgbukit
                if (bgbukit_x <= 3 - room_width) {
                    bgbukit_x = room_width;
                    ctx.drawImage(bg, bgbukit_x, y);
                } else {
                    ctx.drawImage(bg, bgbukit_x, y);
                }
                bgbukit_x += bgbukit_hspeed;
                if (bgbukit2_x <= 3 - room_width) {
                    bgbukit2_x = room_width;
                    ctx.drawImage(bg, bgbukit2_x, y);
                } else {
                    ctx.drawImage(bg, bgbukit2_x, y);
                }
                bgbukit2_x += bgbukit_hspeed;
                y += dy;


- "bukit" is a Malay word for hill :-)

Scrolling Background in HTML5

My attempt to create a scrolling background using HTML canvas. Check it out!

Saturday, August 4, 2012

Decimal to Binary Converter

Apart from converting to binary, it can also convert to one's complement and two's complement. Try it! 
(Make sure JavaScript is enabled for your browser)


[EDIT (13th Aug 2013): now it is hosted on Google Drive]

Just Jump - My GMC Jam #7 Entry


This is my entry for Game Maker Community Jam #7. It is unfinished but still playable with 6 levels. Made in less than 24 hours.

GIVE IT A TRY!

Thursday, July 12, 2012

First Try

First Try by FoxKid1994
First Try, a photo by FoxKid1994 on Flickr.
Made using an embroidery hoop that I made myself.

DIY Embroidery Hoop

DIY Embroidery Hoop by FoxKid1994
DIY Embroidery Hoop, a photo by FoxKid1994 on Flickr.
I made this by cutting an empty "kaya" (coconut jam) container.

Tuesday, May 1, 2012

Monday, April 23, 2012

Sunrise

Sunrise 1 by FoxKid1994
Sunrise 1, a photo by FoxKid1994 on Flickr.

Tree Silhouette

Tree Silhouette 2 by FoxKid1994
Tree Silhouette 2, a photo by FoxKid1994 on Flickr.

Coconut on the Beach

Coconut on the Beach by FoxKid1994
Coconut on the Beach, a photo by FoxKid1994 on Flickr.

Tuesday, April 17, 2012

Cheery_Land
Color by COLOURlovers

Just a Pixel Art

Monday, April 2, 2012

Another Unsuccessful Attempt

I'll try, try and try again...

Tuesday, February 28, 2012

Press Space


Control the white object by using space button. Avoid the black, round objects!
A game made within 24 hours.

Please ignore the Game Maker watermark :-P

DOWNLOAD (5.7MB)

Seaview

Seaview by FoxKid1994
Seaview, a photo by FoxKid1994 on Flickr.

This shot is taken at Masjid Selat Melaka using my elder brother's Superheadz White Slim Angel.

Thursday, February 16, 2012

Brainstorming


Wednesday, February 15, 2012

My First Screenprinting Project

T-shirt Design 2

This is my first attempt to print a t-shirt. It is quite messy. I used a clear plastic sheet as the stencil.

Tuesday, January 31, 2012

Don't Judge a Building by its Facade


This is a game I made for GMC Game Jam #5. Built with laziness... You're trapped inside a building and you have to figure out how to escape the building.

Tuesday, January 24, 2012

Boredom is Good

Something I made using Inkscape

Sunday, January 8, 2012

Temerloh

Temerloh by FoxKid1994
Temerloh, a photo by FoxKid1994 on Flickr.

I bought an adapter! Now it is easier for me to post pictures on the go using my mobile phone.

Wednesday, January 4, 2012

Suatu Pagi yang Indah

Suatu Pagi yang Indah by FoxKid1994
Suatu Pagi yang Indah, a photo by FoxKid1994 on Flickr.
A lovely morning