Comments on: 12 Computer science game project ideas http://compsci.ca/blog/12-computer-science-game-project-ideas/ Programming, Education, Computer Science Wed, 30 Sep 2020 08:31:44 -0400 http://wordpress.org/?v=2.8.4 hourly 1 By: Michael Hernandez http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113989 Michael Hernandez Wed, 16 Dec 2009 15:48:09 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113989 quick example of some pseudo code. There may be Some bad programming practices in it so dont use this as your only source it is a <strong>learning</strong> tool and quickly written in this CommentText Box lol. <code> class baseRpgCharacter { //some stuff //Serves as base template for all classes /* All Variables and Methods are virtual or const so create an abstract class(for use as a template)*/ } </code> <code> class baseCasterCharacter : public baseRpgCharacter { //base of a Caster Character //Inherits from basRpgCharacter /*Holds All functions relative to a spellcaster type, these functions can be overridden in implementation classes*/ /*This is where Polymorphism will be implemented, and object of type "baseCasterCharacter will be set = to an object of any class that inherits from this class*/ } </code> <code> class Mage : public baseCasterCharacter { //inherits from baseCasterCharacter //overiddes default functionality of baseCasterCharacter } </code> <code> class CGameManager { bool run; Array* pCasters; /*We create a pointer to a Growable Array of type baseCasterCharacter and name it pCasters (these are for enemies)*/ //we also do 1 for the player baseCasterCharacter* Player; }//end class Mage </code> <code> int main() { //Some pseudo code mixed with real code here CGameManger* gm_Manager = new CGameManger(); On keyboard input "Enter" set gm_Manager->run to true; if(gm_Manager->run) { //create player gm_Manager->Player = new Mage() /*we set Player which is a baseCasterCharacter to a class Mage which inherited from baseCasterCharacter. This is PolyMorphism at work.*/ //Populate game with enemies for(int i = 0; i pCasters.pushback(new Mage()); /* here we say in the array pCasters we want to push an object of type Mage to the back of the array, so if the size of the array is 0, it is now 1, we do this till i is greater than numEnemies(which we would have declared somewhere in GameManager probably. */ while(gm_Manager->run) { //Check for Player input //what does player want to do? /* assuming we have a function called getTask() inherited from baseRpgCharacter */ /* getTask() might look something like this. int getTask() { return this->curTask; } it would be associated with a function called set task; void setTask(int id) { this->curTask = int id; } */ //Player chooses to attack //Attack is defined somewhere as //#define _Attack 1 //#define _Defend 2 Player->setTask(keyboard input) switch(Player->getTask()) { case _Attack: Player.doAttack(pCasters) Player->curTask = NULL; break; case _Defend: Player.doDefend() player->curTask = NULL; break; } //Check if Esc key was pressed if(keyboard input key ESC) { gm_Manger->run = false; } }//end while loop //end int Main() </code> quick example of some pseudo code. There may be Some bad programming practices in it so dont use this as your only source it is a learning tool and quickly written in this CommentText Box lol.


class baseRpgCharacter
{
//some stuff
//Serves as base template for all classes
/*
All Variables and Methods are virtual or const so create an abstract class(for use as a template)*/
}


class baseCasterCharacter : public baseRpgCharacter
{
//base of a Caster Character
//Inherits from basRpgCharacter
/*Holds All functions relative to a spellcaster type, these functions can be overridden in implementation classes*/
/*This is where Polymorphism will be implemented, and object of type
"baseCasterCharacter will be set = to an object of any class that inherits from this class*/
}


class Mage : public baseCasterCharacter
{
//inherits from baseCasterCharacter
//overiddes default functionality of baseCasterCharacter
}


class CGameManager
{
bool run;
Array* pCasters;
/*We create a pointer to a Growable Array of type baseCasterCharacter and name it pCasters (these are for enemies)*/
//we also do 1 for the player

baseCasterCharacter* Player;

}//end class Mage


int main()
{
//Some pseudo code mixed with real code here

CGameManger* gm_Manager = new CGameManger();

On keyboard input "Enter"
set gm_Manager->run to true;

if(gm_Manager->run)
{
//create player
gm_Manager->Player = new Mage()

/*we set Player which is a baseCasterCharacter to a class Mage which inherited from baseCasterCharacter. This is PolyMorphism at work.*/

//Populate game with enemies
for(int i = 0; i pCasters.pushback(new Mage());
/*
here we say in the array pCasters we want to push an object of type Mage to the back of the array, so if the size of the array is 0, it is now 1, we do this till
i is greater than numEnemies(which we would have declared somewhere in GameManager probably.
*/

while(gm_Manager->run)
{
//Check for Player input
//what does player want to do?
/*
assuming we have a function called getTask() inherited from baseRpgCharacter
*/
/*
getTask() might look something like this.

int getTask()
{
return this->curTask;
}
it would be associated with a function called set task;

void setTask(int id)
{
this->curTask = int id;
}
*/

//Player chooses to attack
//Attack is defined somewhere as
//#define _Attack 1
//#define _Defend 2
Player->setTask(keyboard input)
switch(Player->getTask())
{
case _Attack:
Player.doAttack(pCasters)
Player->curTask = NULL;
break;
case _Defend:
Player.doDefend()
player->curTask = NULL;
break;
}

//Check if Esc key was pressed
if(keyboard input key ESC)
{
gm_Manger->run = false;
}

}//end while loop
//end int Main()

]]>
By: Michael Hernandez http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113985 Michael Hernandez Wed, 16 Dec 2009 15:08:06 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113985 Heres some advice, and i hope more people than just Zack get to read this, I have recently ventured into game programming(3D) mainly my advice is: 1. Read Read Read: Read source code from probably the DirectX sdk, or any source code that uses advanced Object Oriented Programming. When you dont know what something is, research it or try to figure it out. 2. Games primarily use alot of advance concepts, or advanced implementations of concepts. Some things you should study: C++ or Java PolyMorphism Pointers and references Math(VERY IMPORTANT) Math is the basis of everything in game programming and simulation programming. I have lots of source code for anyone interested and can even include you in some projects. And can give more detailed info on what to study and examples. Right now im studying for a Logical Circuit Design Course final(UGGHH!!!!) contact me at xfreakk@gmail.com Good luck on all your endeavors everyone :) Heres some advice, and i hope more people than just Zack get to read this, I have recently ventured into game programming(3D) mainly my advice is:
1. Read Read Read: Read source code from probably the DirectX sdk, or any source code that uses advanced Object Oriented Programming. When you dont know what something is, research it or try to figure it out.
2. Games primarily use alot of advance concepts, or advanced implementations of concepts.

Some things you should study:
C++ or Java
PolyMorphism
Pointers and references
Math(VERY IMPORTANT)
Math is the basis of everything in game programming and simulation programming.

I have lots of source code for anyone interested and can even include you in some projects. And can give more detailed info on what to study and examples.

Right now im studying for a Logical Circuit Design Course final(UGGHH!!!!)
contact me at xfreakk@gmail.com
Good luck on all your endeavors everyone :)

]]>
By: Tony http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113811 Tony Fri, 04 Dec 2009 22:27:27 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113811 If you were given the full source code, then you wouldn't really be building anything. If you were given the full source code, then you wouldn’t really be building anything.

]]>
By: Tony http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113809 Tony Fri, 04 Dec 2009 22:25:26 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113809 Wouldn't the genre of RPG cover that as well? There are obviously many more examples for game projects to pursue, and it would not be practical to list and discuss all of them. That was attempted <a href="http://compsci.ca/v3/viewtopic.php?t=1022" rel="nofollow">here</a> with 160+ replies. Wouldn’t the genre of RPG cover that as well? There are obviously many more examples for game projects to pursue, and it would not be practical to list and discuss all of them. That was attempted here with 160+ replies.

]]>
By: Hex http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113695 Hex Fri, 27 Nov 2009 16:02:02 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113695 You forgot roguelike. While not exactly an easy game to make, there are plenty of examples on which one can base the game (Qhack being a good starting point), and there's always room for simple innovations. You forgot roguelike. While not exactly an easy game to make, there are plenty of examples on which one can base the game (Qhack being a good starting point), and there’s always room for simple innovations.

]]>
By: Zack http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-113689 Zack Fri, 27 Nov 2009 10:02:08 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-113689 if i want to build a RPG, can u give me full source code of the example...pls? if i want to build a RPG, can u give me full source code of the example…pls?

]]>
By: Tony http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-110943 Tony Tue, 24 Mar 2009 23:04:32 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-110943 Ask about that on the <a href="http://compsci.ca/" title="CompSci Forums" rel="nofollow">forums</a>. Ask about that on the forums.

]]>
By: Tony http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-110942 Tony Tue, 24 Mar 2009 23:03:27 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-110942 Ask on the <a href="http://compsci.ca/" title="CompSci Forums" rel="nofollow">forums</a>. Ask on the forums.

]]>
By: Daniel http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-110937 Daniel Tue, 24 Mar 2009 01:29:43 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-110937 Hey im in year 12 and will need to start my major VB project nex term, i love the tetris idea but havbe one problem, the code i should be able to figure out but how do i do the gaphics and stuff, this is the only thing holding me back from so many game ideas in Visual basic, I am using VB 2005 and/or VB 2008. please help. Hey im in year 12 and will need to start my major VB project nex term, i love the tetris idea but havbe one problem, the code i should be able to figure out but how do i do the gaphics and stuff, this is the only thing holding me back from so many game ideas in Visual basic, I am using VB 2005 and/or VB 2008. please help.

]]>
By: Darren http://compsci.ca/blog/12-computer-science-game-project-ideas/comment-page-1/#comment-110936 Darren Mon, 23 Mar 2009 22:27:18 +0000 http://compsci.ca/blog/12-computer-science-game-project-ideas/#comment-110936 I need some help and possible a source code for the Turing network modules. Its for a mutated 2D shooter still in the works with crappy PI's that can hold there own and only three guns made. Once done it will have Sprites, Weapon lists, and Player customizable stats. PI : Pseudo Intelligence I need some help and possible a source code for the Turing network modules.
Its for a mutated 2D shooter still in the works with crappy PI’s that can hold there own and only three guns made.
Once done it will have Sprites, Weapon lists, and Player customizable stats.
PI : Pseudo Intelligence

]]>