Thread: Matrix Raining Code

  1. #1
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6

    Cool Matrix Raining Code

    I tried to do raining sreen of Matrix movie. It's written in C language. Executable file for different resolutions and source code is in the link below. If you like or want to give me some advices please leave a comment.
    https://www.mediafire.com/?a92lna2zyc8mtxd

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    People will be more likely to help if you post your code here instead. This is a forum so its better that way. I'm not keen on going to some random site and downloading random files just to look at the source code.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Very nice job, cavuscan07. I was looking around for Agent Smith, immediately.

    I would try to calculate all the random numbers coordinates and values for the char to be displayed, ahead of time, and put them into an array of structs. Then go through the array in order, simply using those coordinates and chars, instead of calling rand() over and over. I'm unsure how much it could improve your program, however.

  4. #4
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6
    Quote Originally Posted by c99tutorial View Post
    People will be more likely to help if you post your code here instead. This is a forum so its better that way. I'm not keen on going to some random site and downloading random files just to look at the source code.
    Yeah you're right, i was in a hurry. It was my fault. But i will do it in my next threads.

    Quote Originally Posted by Adak View Post
    Very nice job, cavuscan07. I was looking around for Agent Smith, immediately.
    Quote Originally Posted by Adak View Post

    I would try to calculate all the random numbers coordinates and values for the char to be displayed, ahead of time, and put them into an array of structs. Then go through the array in order, simply using those coordinates and chars, instead of calling rand() over and over. I'm unsure how much it could improve your program, however.

    I started to learn C programming 2 months ago because of my department at studying. I'm not good at all and just for now if it works it's really enough for me
    Last edited by cavuscan07; 11-30-2013 at 03:04 PM. Reason: Adding

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You are a fast learner then, as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help modify code 6 x 24 to 10 x 24 led matrix
    By visualfx in forum C++ Programming
    Replies: 5
    Last Post: 09-05-2012, 02:04 PM
  2. matrix- exercise the use of arrays in the code.
    By CproG100 in forum C Programming
    Replies: 31
    Last Post: 08-28-2012, 07:40 AM
  3. matrix code
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 05-17-2007, 01:18 PM
  4. matrix multiplication code
    By weneedhelp in forum C++ Programming
    Replies: 1
    Last Post: 04-11-2007, 06:50 AM
  5. Matrix code (c)
    By Oid21 in forum C Programming
    Replies: 2
    Last Post: 03-28-2003, 06:32 PM

Tags for this Thread