Well made point, Eddie. Its the same reason im using allegro rather than an engine. Keep posting your reasons people!
- Viewing Profile: Reputation: ISDCaptain01
Community Stats
- Group Members
- Active Posts 163
- Profile Views 3,551
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
Contacts
ISDCaptain01 hasn't added any contacts yet.
Latest Visitors
#5015598 How come many of you prefer to make games from scratch rather than use an eng...
Posted by ISDCaptain01
on 29 December 2012 - 08:03 PM
#5011121 A Kid that's 15 a needs some place to get started
Posted by ISDCaptain01
on 15 December 2012 - 07:30 PM
#5010080 I feel paranoid about taking programming/CS classes
Posted by ISDCaptain01
on 12 December 2012 - 11:42 PM
#5008387 4D Arrays?
Posted by ISDCaptain01
on 07 December 2012 - 11:43 PM
[source lang="cpp"]#pragma once#include <iostream>using namespace std;template <class Datatype>class Array4D{public://ConstructorArray4D(int p_time, int p_depth, int p_height, int p_width){ m_array = new Datatype[ p_time * p_depth * p_height * p_width]; m_time = p_time; m_depth = p_depth; m_height = p_height; m_width = p_width;}//Destructor~Array4D(){ if(m_array != 0) { delete[] m_array; } m_array = 0;}//Get: Retrieves the value from passed in locationDatatype& Get(int p_t, int p_z, int p_y, int p_x){ return m_array[ ( (p_t * m_depth * m_height * m_width) + (p_z * m_height * m_width) + (p_y * m_width) + (p_x) ) ];}//Width: Returns the width of the arrayint Width(){ return m_width;}//Height: Returns the height of the arrayint Height(){ return m_height;}//Depth: Returns the depth of the arrayint Depth(){ return m_depth;}//Time: Returns the time of the arrayint Time(){ return m_time;}//Resize: Resizes the arrayvoid Resize(int p_time, int p_depth, int p_height, int p_width){ //Declare a pointer to a new array and allocate enouh memory Datatype *newarray = new [p_time * p_depth * p_height * p_width]; //Determine the minimum of all four dimensions int minx = (p_width < m_width ? p_width : m_width); int miny = (p_height < m_height ? p_height : m_height); int minz = (p_depth < m_depth ? p_depth : m_depth); int mint = (p_time < m_time ? p_time : m_time); //Declare four dimensional coordinates int x; int y; int x; int t; //Declare temporary variables int t1; int t2; int t3; int t4; int t5; int t6; //Now loop through each cell and paste the values from the old array into the new array for(t = 0; t < mint; t++) { t1 = t * p_depth * m_height * m_width t2 = t * m_depth * m_height * m_width for(z = 0; z < minz; z++) { t3 = z * p_width * m_height; t4 = z * m_width * m_height; for(y = 0; y < miny; y++) { t5 = y * p_width; t6 = y * m_width; for(x = 0; x < minx ; x++) { newarray[t1 + t3 + t5 + x] = m_array[t2 + t4 + t6 + x]; } } } } //Deallocate the old array if(m_array != 0) { delete[] m_array; } m_array = newarray; //set the new dimesions m_width = p_width; m_height = p_height; m_depth = p_depth; m_time = p_time;}//Size: Returns the total size of the arrayint Size(){ return m_time * m_depth * m_height * m_width;}private://Private variablesDatatype *m_array;int m_width;int m_height;int m_depth;int m_time;};[/source]
and heres an example implementation file to test it:
[source lang="cpp"]#include <iostream>#include "Array4D.h"using namespace std;int main(){ //Create two different 4-Dimensional arrays Array4D<int> iarray(5, 5, 5, 5); Array4D<float> farray(7, 7, 7, 7); //Create some variables to show output int i; int f; //Insert 10 into an array iarray.Get(2, 1, 3, 0) = 10; i = iarray.Get(2, 1, 3, 0); cout << "The value at time 2, depth 1, height 3, and width 0 is: " << i << endl; farray.Get(2, 1, 3, 0) = 25.0f; f = farray.Get(2, 1, 3, 0); cout << "The value at time 2, depth 1, height 3, and width 0 is: " << f << endl; //Display the size of the arrays cout << "The size of iarray is: " << iarray.Size() << endl; cout << "The size of farray is: " << farray.Size() << endl; cin.get(); return 0;}[/source]
#5005117 CS Degrees
Posted by ISDCaptain01
on 28 November 2012 - 05:10 PM
Nintendo
Rareware
RavenSoft
IdSoft
Microsoft (not exactly gaming)
Sega
Bioware
Electronic Arts
.
.
.
I could go on
Forget the degree, just get out there and sell your product and games. market yourself. Dont be stuck going over material you know, strive higher than that piece of paper
#5003008 bitvectors?
Posted by ISDCaptain01
on 21 November 2012 - 02:21 PM
[source lang="cpp"]#pragma once#include <iostream>using namespace std;class Bitvector{protected: unsigned long int *m_array; //declare a pointer to an usigned(from 0 to positives) long integer array int m_size; //keeps track of the size of the array Bitvector(int p_size) //the constructor. pass in what size you want the bitvector to be { m_array = 0; //pointer points to nothing m_size = 0; //the size is zero Resize(p_size); //calls the resize function to acutally set the size of the array } ~Bitvector() //the destructor { if(m_array != 0) //if the array actually has something inside it { delete[] m_array; //delete whatever is inside the array m_array = 0; //point the array pointer to zero } } void Resize(int p_size) //resize function. pass in the size you want to resize the vector to { unsigned long int *newvector = 0; //declaring a an unsigned long int pointer if(p_size % 32 == 0) //if p_size is perfectly divisible by 32 { p_size = p_size / 32; //then divide and set p_value to that value } else // if its not perfectly divivsible by 32 { p_size = (p_size / 32) + 1; //than add one to the result } newvector = new unsigned long int[p_size]; //now make the newvector array pointer allocate the memory passed in by the user if(newvector == 0) //if newvector did not successfully allocate memory { return; //quit the function } int min; //the minimum value if(p_size < m_size) //if the passed in size is less than the original size of the array { min = p_size; // than the minimum value is equivalent to the passed in value } else //if the passed in size is greater than the original size of the array { min = m_size; //then the minimum value is equivalent to the original size } int index; //declare an index int that will loop through the array for(index = 0; index < min; index++) { newvector[index] = m_array[index]; //copy the contents from the old array to new new array } m_size = p_size; //m_size now equal the new size of the array if(m_array != 0) //if m_array pointer is pointing to an array { delete[] m_array; //delete the contents of the array } m_array = newvector; //than make m_array point to the newvector } bool operator[] (int p_index) { int cell = p_index / 32; int bit = p_index % 32; return (m_array[cell] & (1 << bit)) >> bit; }[/source]
#5002754 I want to learn about computer graphics
Posted by ISDCaptain01
on 20 November 2012 - 02:53 PM
#5001605 Impotant! Books to start learning video game programming ! I need it...
Posted by ISDCaptain01
on 16 November 2012 - 01:03 PM
For c++ I recommend this book
http://www.amazon.com/All---One-Desk-Reference-Dummies/dp/0470317353/ref=sr_1_1?s=books&ie=UTF8&qid=1353092288&sr=1-1&keywords=c%2B%2B+for+dummies+reference
after that i recommend you read
data structures for game programmers
focus on sdl
beginning game programming
advance 2d game development
but it will be a while before you get through these
#5001141 How should I tackle programming
Posted by ISDCaptain01
on 15 November 2012 - 02:27 AM
#4993476 Want to program for big developer. what should i be learning?
Posted by ISDCaptain01
on 24 October 2012 - 11:10 AM
just never forget that school and colleges will never teach you how to program and optimize. that's YOUR job, and it's essential you do that by yourself.
This is so true. Especially if the professor is utter crap. Best advice: dont wait for school, get started already. School is just a formality
#4993270 Am I making good progression?
Posted by ISDCaptain01
on 23 October 2012 - 05:26 PM
#4993003 Am I making good progression?
Posted by ISDCaptain01
on 23 October 2012 - 12:42 AM
-Basic C++ (classes, objects, vectors, strings, how to seperate header/implementation, inheritance, vrtual function,
basic composition, etc etc.)
-Learned programming terminology:Know what an api, library, .net, IDE, Know what other languages do.
-Know my way around visual c++ 2010
-Have a basic idea on how to link api/libraries
-dabbled in bit of SDL and DirectX.
Currently:Im working my way through data structures for game programmers book.
Future plans:
Learning SDL and then directx
messing around with computer architecture by reading The Black Art of Video Game Console Design.
making simple games like breakout, pacman, mario etc etc.
Main question: Am I making reasonable progress?
#4982510 So. That Calculus Thing.
Posted by ISDCaptain01
on 21 September 2012 - 03:22 PM
#4982434 quick question about OpenGL
Posted by ISDCaptain01
on 21 September 2012 - 11:11 AM
Is the same true for directx?
#4979476 I often have to go back and revise topics
Posted by ISDCaptain01
on 12 September 2012 - 03:44 PM
- Home
- » Viewing Profile: Reputation: ISDCaptain01

Find content