Friday, July 31, 2009

A Pretty Decent First Week

It's back to the same shitty lifestyle (and the shitty mess food) , all over again for me. But seriously man, this week was surprisingly ok. I woke up on 7 on almost all days and was able to attend every single class. I also did not sleep in any of them, though I had a strong urge to do so in a chemistry tutorial in which the prof was adamant to teach us every fucking thing about the history of chemistry all the way from the 19th century. I really don't understand why they teach us chem.

However, aside from going to classes, I haven't really been doing any studying. I guess its not really required that much right now. I've just been playing cod modern warfare for the past 3 days. Its an awesome game, much better than any fps I've played so far, and kicks delta force right in the nuts. It has everything man, but most of all, it has a story, something which most DF versions lack.

I also got CS source, but I'm not playing it much, mainly because I don't know how to play on lan right now. I've tried like almost every fucking thing possible, but I just can't do it. But I asked a senior today, he said you have to do some stuff on the command line. That should do it I think.

And I also haven't been doing any project work. I had started work on an open source project, but right now I spend much of my work time trying to figure out the code.

I'll start studying from tomorrow. That's a promise.
:D

Friday, July 24, 2009

Space invaders

So after working around a week on tetris, I've finally given up on it. I have made the main game engine, the blocks fall and rotate and move and all, but I haven't completed the scoring part as yet.

I worked on pong today, and it was surprisingly easy to program, maybe because I made it as a 2 player game, so I didnt have to do any AI stuff. I've been ignoring AI till now, I haven't yet made a game with AI in it. Tankwars was 2player, so is pong, and tetris didn't need AI.

My next project will be sort of a clone of space invaders, but it will be less of a clone than the other games I've made so far. Infact, I won't even play the actual game to find out what happens, I'll just make the story and everything on my own. So I guess it won't actually be a clone. It will be my first real complete project.

Classes start on monday, which will probably limit the time I can give to my projects. And that would suck really bad, I really don't want to go back to studying inorganic chem and Mechanics of Solids. I'm having so much fun right now.

Anyways, I'll keep giving updates about my new project.
Cheers.

Wednesday, July 15, 2009

Tetromania!


So after struggling a lot with Tankwars, I have finally decided to let it go. I started with another project. I plan to make a clone of the popular game Tetris. I'm almost done with it, I think it should be fully complete in about 4 days. It was surprisingly lengthy, right now the code stands at around 2800 lines. That might be because of the incredible amount of cases and if else conditions that are required.

The game is pretty crappy and bug filled right now.

After this, I have planned to learn SDL. My first project in SDL would be a clone of the game pong. I will probably start with it when I reach campus. Meanwhile, I have been reading a book called "Essential Mathematics for Games and Interactive applications", which basically deals with the Mathematics (linear algebra,etc) and some extra stuff that you need to know before starting with openGL. Ok, its not actually required, but we can benefit a lot if we know this stuff before starting.

I really don't want to go back. I'm having so much fun in delhi, and I have probably learned more than I did on campus in 2 months.

Tuesday, July 7, 2009

I've been using ancient technology

Ok, I kind of knew my website kind of sucked really bad. So I decided to make some modifications today. The first one was to somehow get rid of frames. I heard from a LOT of people, how disadvantageous and ancient they are.

I googled for alternatives to frames, and found a website that showed 4 ways to do it. The first one was using a thing called SSI, which didn't work for me. It basically just included all the files that needed to be displayed in all the pages, instead of setting up frames for them. This is sort of like the #include used in c++ and other programming languages.

I moved on to the next method, which involved using javascript to display the links on a div section. The thing to be displayed would be included in a js file. It didnt appeal much to me, since I didnt know how to layout the div in such a way that it displayed on the left, and I was too lazy to find out how to do that.

The third method was the one that I used. It was basically identical to the first one. I used a php command in all my files to include the title and the file containing the links.

The fourth one involved using iframes.

Now, the links are on top of the page instead of being on the left. I dont know how to do that right now. It might involve formatting the div element using a css file.

Another modification that i made was removing those annoying jscript boxes. I had only included them for practice. They dont really serve much purpose on the site.



I also included the links in a table and used div to enclose them in boxes. This is my first experience with using the div tag.

Saturday, July 4, 2009

Site Updated

The feedback section on my site has been updated. Now people can enter their comments, along with their names. This information will then be entered into a database using a php script. After that, to actually show all the comments, I am using another php script to recover that information from the database.




My net officially sucks. It gets disconnected on its own every half hour. Thank god I'm not running my website using Apache on my laptop.

I went to my cousin's house and took a day off from all this. I actually spent 24 hours without my laptop, can you imagine that?

Wednesday, July 1, 2009

I finally got a website

Finally, my game is available for download. Go to my
website, then go to the downloads section.

Ok, so ever since I returned from campus, my focus has suddenly shifted from game programming to web programming. I ended up learning HTML , CSS and Javascript in a short amount of time (mainly because I had already done these things earlier).
I got some free web hosting at this website www.freei.me. It looks pretty decent. All I have to do is learn PHP and how to use it with mySQL. Initially I tried it by running Apache web server on my own laptop. However, it was too complicated, and besides my laptop doesn't stay on 24X7.

Not much else to update about. So I will leave it at that.