• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

charisma_tubagus

Members
  • Content count

    18
  • Joined

  • Last visited

Community Reputation

122 Neutral

About charisma_tubagus

  • Rank
    Member

Personal Information

  • Location
    Semarang
  1. The parent object pointers have been initialized in a particular method. Inside my AStarHeap project you can inspect the codes and debug.
  2. Hi, I am facing a lot of problem when reading assembly language. This is the print screen of debugging with Assembly language. It got an error on this particular line. [img]http://img256.imageshack.us/img256/6742/debugginginassembly2.png[/img]
  3. Phew...that's a nasty debugging skill I should have. I wil try to revise my Microprocessor Programming concept and theory for this matter. Let me get back to you once I got 'something' from it. Thanks. [img]http://public.gamedev.net//public/style_emoticons/default/mellow.png[/img]
  4. [img]http://img850.imageshack.us/img850/3345/astarerrormemoryviolati.png[/img] That's what I got the error when debugging. Anyway that I can understand this message?
  5. Hi, You were right, it does something to do with NULL pointer. Have you tried to create VS 2010 project and copy my source codes? You will see the error looks something like the image attached.[img]http://img9.imageshack.us/img9/1476/astarnullpointererror.png[/img]
  6. Hi, I have just started learning A* and I did successfully to implement with std::vector in C++. However, when I am integrating my Binary Heap implementation, I have problems with POINTER etc and I have spent much time to debug but still could not get a solution of it. May I ask for a little help? PROBLEM: Whenever I want to access the parent pointer it will give me run time error. The same algorithm (A*) runs smoothly when I am using std::vector. Inside my CellNode.h [CODE] void Print(){ cout << "Cell Node id : " << m_id << " ("<<m_xcoord << " , " << m_zcoord << ")" <<" F = "<< getF() << " G = " << getG() << " H = " << getH(); if ( parent != 0){ cout << "Cell Node Parent id " << parent->m_id << endl; } else{ cout << endl; } } [/CODE] It enters the if condition but it doesn't have any parent reference. I am pretty much confused with this. In the implementation I am using Visual Studio 2010 and OpenGL as the graphics rendering. Any kind of help is much appreciated.. Thanks. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
  7. Hi I have tried to implement Binary Heap(Min priority queue) using C++ Templates. But when I test it inside my main program, it cannot compile. Do you have any idea? [b]File : BHeap.h [/b] [CODE] /* This is a class implementation of Binary Heap to optimize A* It has O(log n) for insertion and deletion to the heap with sorting capability */ #ifndef BHEAP_H #define BHEAP_H #include <iostream> #include <string> using namespace std; template<class T> class BHeap { public: BHeap() : DEFAULT_SIZE(100){ data = new T[DEFAULT_SIZE]; m_capacity = DEFAULT_SIZE; m_count = 0; } ~BHeap(){ delete [] data; } int size() const{ return m_count; } bool isEmpty() const{ return m_count == 0; } void setCapacity(int newCapacity){ if ( newCapacity > m_capacity){ //allocate new capacity T *newData = new T[newCapacity]; memcpy_s(newData, newCapacity, data, m_count); m_capacity = newCapacity; //copy old data to new data data = newData; delete [] newData; } } void Add(T item); void DownHeap(); void UpHeap(); T Peek(); T Remove(); private: const int DEFAULT_SIZE; T *data; //array of data in the heap int m_count; //count the number of element in the heap int m_capacity; //to indicate the current capacity in the heap bool sorted; //boolean variable to test whether it is sorted int Child1(int idx){ return (idx << 1) + 1; //Child 1 index = (2 * parentIndex) + 1 } int Child2(int idx){ return (idx << 1) + 2; //Child 2 index = (2 * parentIndex ) +2 } int Parent(int idx){ return (idx - 1 ) >> 1; //Parent index = (childIndex -1 ) / 2 } //void EnsureSort(); }; //#include "BHeap.cpp" #endif [/CODE] [b]File: BHeap.cpp[/b] [CODE] #include "BHeap.h" //template<typename T> //BHeap<T>::BHeap() : DEFAULT_SIZE(100) //{ // data = new T[DEFAULT_SIZE]; // m_capacity = DEFAULT_SIZE; // m_count = 0; //} // //template<typename T> //BHeap<T>::~BHeap() //{ // delete [] T; //} template<class T> T BHeap<T>::Peek(){ return data[0]; } template<class T> void BHeap<T>::Add(T item){ if ( m_count == m_capacity){ setCapacity(2 * m_capacity); } data[m_count] = item; UpHeap(); m_count++; } template<class T> void BHeap<T>::DownHeap(){ ///TODO: int currentIdx =0; int n; T item = data[currentIdx]; //we try to bubble down the root element while(true){ int child1, child2; child1 = Child1(currentIndex); child2 = Child2(currentIndex); //find the correct comparison index of child1 and child2 if ( child1 >= m_count) break; if ( child2 >= m_count) n = child1; else{ n = (data[child1] < data[child2] )? child1 : child2; } //swap nodes if necessary if ( item > data[n]){ //if item is greater than data[n] data[currentIndex] = data[n]; currentIndex = n; } else{ break; } } data[n] = item; } template<class T> void BHeap<T>::UpHeap(){ ///TODO: int childIndex = m_count; T item = data[childIndex]; int parentIndex = Parent(childIndex); while (parentIndex > -1 && item < data[parentIndex]) { data[childIndex] = data[parentIndex]; //Swap nodes childIndex = parentIndex; parentIndex = Parent(childIndex); } data[childIndex] = item; } template<class T> T BHeap<T>::Remove(){ if ( isEmpty()){ cout << "Heap is already empty " << endl; return NULL; } T v = Peek(); m_count--; data[0] = data[m_count]; data[m_count] = default(T); DownHeap(); return v; } [/CODE] [b]Problem: I cannot use the BHeap implementation:[/b] [CODE] #include <cstdlib> #include <time.h> using namespace std; #include "BHeap.h" int main(int argc, char *argv[]){ BHeap< int > heapInt; srand(time(NULL)); //Add random elements for(int i = 0 ; i < 10; i++){ int el = 1 + rand() %100; heapInt.Add( el); cout << "Element (inserted): "<< el << endl; } //Remove all elements while( heapInt.size() > 0){ int el = heapInt.Remove(); cout << "Element (removed): " << el << endl; } return 0; } [/CODE]
  8. Seems a new A* approach to me. When this idea was published on the paper? Would you like to give the link of reference from which you got this idea?
  9. Hmm..I haven't known Octree a quite well. Have you tried the Priority Queue or even simple vector?
  10. Hi, I am pretty new with A*. I have implemented one but somehow I face a weird path of A*. Would you like to help me? Thanks [img]http://img850.imageshack.us/img850/8779/weirdastarpath.png[/img]
  11. Thanks folks for the advice.
  12. Thanks. I'll try to make it. But, I want to ask if the player is in the air and currently going down, how to make it land on the platform?
  13. Quote:Original post by Numsgil Games use the idea of a "proxy" for players. Usually it's an incredibly simple shape, like just a capsule (by far the most common). Havok, for instance, provides some demos. Among them are several on character controllers. I'd recommend signing up for the free TryHavok license, getting your hands on the demos, and running through them to get an idea of how these sorts of things usually work. It really sort of "clicked" for me when I played with the demos and read the docs. For things like head shots, game studios usually add a ragdoll, which is basically an extremely simplified version of the render mesh. Things like dynamic boxes and bullets (ray casts) interact with the ragdoll. For character-character interactions (ie: pushing into another player) and character-static geometry interactions (climbing stairs, not going through walls, etc.), they use the character proxy. So there's actually a lot more going on under the hood for most games than you probably thought :) Thanks for the reply. But, I am sorry that I don't quite understand your advice. Please tell me what to do then. I am just a beginner in a game development.
  14. Quote:Original post by MichaBen Actually it isn't needed to learn DirectX or OpenGL at all to create games. Those APIs are used to create an engine, so if you are planning on writing an engine you will need them. However you can also use an existing engine, which in most cases is a lot easier and faster as well. Rendering engines like OGRE and Irrlicht will allow you to create 3D games without bothering with DirectX or OpenGL at all. When using such an engine you will still learn valuable things about how 3D graphics work, so when you pick up DirectX or OpenGL later it will probably be easier. I'm also interested in learning Ogre and already installed on my PC. But, I used to learn the basic of Allegro. Allegro and Ogre? Which one is better?
  15. Quote:Original post by jackolantern1 You could also learn XNA since you have C# experience. XNA is a bit higher-level layer on top of DirectX. You can more quickly write games for PC and XBox360 with XNA, and if you later decide to learn DirectX, it will be easier since XNA will teach you many of the concepts. Thanks for the advice. I got a hold of an XNA book right now. I also try to learn from creators.xna.com. I think XNA is a very good framework for developing games in C#.