Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About dcoolllx

  • Rank

Personal Information

  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Perhaps you should look into the 4 principles of OOPs ( object oriented programming)
  2. Trying to learn three.js. I'm having a bit of problem with the documentation and tutorials. the tutorials I'm finding seem to be for previous versions. I think my problem may stem for a fundamental lack of understanding of 3d animation. what is a weight, skinning, and animation mixer? examples using 3js would be best. at this point I can create the basic framework and import models.
  3. dcoolllx

    daughter wants to learn coding

    Def javascript. It automatically handles data types and can quickly show its results. It is a descendant of the C languages so u could pick it up in 20 mins. Alert("hello world");// this is a valid javascript program Also there is an app called sololearn that u both can use
  4. dcoolllx

    Emulator for Mobile games?

    Visual studio community edition is free and comes with emulators for iphone and android. Ps your Pc will need hyper-v threading enabled processor
  5. dcoolllx

    Error Handling Question

    Your question seems to be a little broad. Exception in general are when the program/computer encounters a situation that it does not know how to handle ie. dividing by 0. in this case, an Exception object is created and "thrown" to an Exception handler. if no exception handler is found within the program the program will exit(crash). when Designing a system a good programmer will anticipate when an exception will occur and reroute the program to prevent a crash. its important to realize that there are two types of exceptions. checked and unchecked. check exceptions are caused by programmer error and are caught by the interpreter/compiler. these types of exceptions will prevent a program from compiling. the second, uncheck, is also called a runtime error/exception. these are caused by the user giving an input that was unexpected or that the program does not know how to handle. these types are Not inherently bad. the one you are looking at may be a little confusing if you don't understand threads and concurrency. In this case the programmer has commanded a thread to wait/sleep for a certain amount of time. If in the event that some outside force like the OS, or even the user interrupts this thread it will throw an exception which the programmer can use to know that his thread is no longer sleeping. other examples of exception that are not necessarily bad; a FileNotFoundException can be used to check for the existence of a file before writing to it. after the programmer catches this exception he may, for example, prompt the user to create a new file before writing.
  6. Hey I might be interested in this, just one question, is this going to be a text based game? or is it closers to age of emipire? Skills: programming(c++, C#,Python, Javascript, NodeJS, ThreeJS, HTML5, CSS, Cordova)
  7. dcoolllx

    When To Use Pointers?

    simply put, a pointer should be used as a memory saving practice. sometimes there are objects that a very large and use a lot of memory. for example in the code above, PhysicComponent could be referring to an entire library of 1000s of lines of code. and a single instance of the Physic Component could be several MBytes. then consider that when you pass the object into another function, that function creates a COPY of that object. therefore with each call to that instance, there could be multiple copies of it at runtime. In come pointers. with a pointer we pass only the address of the Obj to the function instead of its value. now there is only one copy of that instance needed for our code to work at runtime consider the following: using namespace std; #include<hugeLibrary.h> int main() { Library test[100];//an array of objs for(int x = 0;x<100;x++){ Lbrary lib = hugeLibrary();//2Mb of data test[x] = lib; } //test now is 200Mb startEngine(test); doSomething(test); closeEngine(test);//each call results in a Copy of test being created } or- int main(){ Library* test[100];//an array of pointers for(int x = 0;x<100;x++){ Lbrary lib* = &(hugeLibrary());//32bits of data test[x] = lib; } //test now is 3kb startEngine(test); doSomething(test); closeEngine(test);//each call results in a Copy of test being created } PS. this is an Extremely simplified answer. technically each lib would be also be destroyed after each function lost scope.
  8. Also check antivirus/firewall might b blocking resources that your program needs. R u getting an exit code?
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!