Search found 106 matches
- November 28th, 2012, 12:47 am
- Forum: Everything
- Topic: How to shoot animation from point A to point B
- Replies: 5
- Views: 2249
Re: How to shoot animation from point A to point B
I know y = m*x + b is the formula to find a straight line between 2 points but i'm not really sure if it would work for sprite movement. Chili explains it in lesson 10. Though using trigonometry SOH CAH TOA you can get a direction from one point to another and move the shot the exact distance you wa...
- November 27th, 2012, 8:24 pm
- Forum: Everything
- Topic: Bitmap to a Structure question.
- Replies: 4
- Views: 2018
Re: Bitmap to a Structure question.
Thanks Lux.
You know, i think i'm actually learning stuff .
You know, i think i'm actually learning stuff .
- November 27th, 2012, 4:48 pm
- Forum: Everything
- Topic: Bitmap to a Structure question.
- Replies: 4
- Views: 2018
Re: Bitmap to a Structure question.
thanks for clearing that up chili,
Just curious, so if you had an array of 1000 ints would this
fread( myArray,sizeof( myArray ),1,myFile );
do the same as this
fread( myArray,sizeof( int ),1000,myFile ); ?
Or does that only work for a structure?
Just curious, so if you had an array of 1000 ints would this
fread( myArray,sizeof( myArray ),1,myFile );
do the same as this
fread( myArray,sizeof( int ),1000,myFile ); ?
Or does that only work for a structure?
- November 27th, 2012, 12:42 am
- Forum: Everything
- Topic: Is Uni worth it.?
- Replies: 3
- Views: 1792
Is Uni worth it.?
Chili, In lesson 5 you said that you went to Uni and i was wondering, what course did you do and would you recommend it? Has anyone else done programing at uni?
- November 25th, 2012, 9:11 pm
- Forum: Everything
- Topic: Hey Bros!
- Replies: 16
- Views: 6225
Re: Hey Bros!
Poo Face in 3D accelerated rendering and custom shaders?! Im in.
- November 25th, 2012, 9:00 pm
- Forum: Everything
- Topic: Bitmap to a Structure question.
- Replies: 4
- Views: 2018
Bitmap to a Structure question.
I've been following lesson 20 and I just wanted to understand how the bytes of a Bitmap file are put into a structure, I'm not really getting my head around it. FILE* bmpFile = fopen( fileName, "wb" ); So here fopen takes the name of a file on the hard drive and copies the file into the space bmpFil...