• 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.


  • Content count

  • Joined

  • Last visited

Community Reputation

141 Neutral

About Exessuz

  • Rank
  1. its not a good idea to keep a copy of the sprite that each tile represent instead you want to keep just a index of the tiles, what you should do its create a class that works like an atlas and load all the sprites once so you keep just 1 copy of the img, also its not a good idea to test collision against all the currents tiles in the map. for example if you are going to make the map SIZEX and SIZEY and lets say that you have N tiles images stored in an class call obj. the class obj could load all the imgs and keep them in a vector or an array for example. vector<obj> images; the map is an array of for example short map[SIZEX*SIZEY]; each slot of the array will represent an index to the atlas images array, lets say that the first tile is grass ID 0 second dirt ID 1 and stone ID 2 the map should be {0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,2,2,2,1,1,1,0,0... at the moment of rendering the map you will just get the current index in the map and get the image from the atlas with that index. regarding collision as a said not a good idea to test all the map read this topic, i alrdy posted something related to collision http://www.gamedev.net/topic/630073-map-coordinates/
  2. yes you can animate a sprite and interpolate each frame as an animation, and move using delta time. this link is for c++ but you can get the idea http://www.programmersheaven.com/2/time-fps ej currentpos += dir*deltatime;
  3. http://vterrain.org/LOD/Implementations/ this site has many implementations of LODs algorithms
  4. try something like this, havent t [CODE] std::vector<int> somevalues; std::vector<int> somevaluesTocheck; bool status = false; for(int i = 0 ; i < (int)somevaluesTocheck.size() ; i++){ status = false; for(int j = 0; j < (int)somevalues.size(); j++){ if(somevaluesTocheck[i] == somevalues[j]){ status = true; } } if(!status){ somevaluesTocheck.erase(somevaluesTocheck.begin() + i); } } [/CODE]
  5. I think you should try with ray / plane collision , for example an Axis Aligned box or a OOB the idea is to cast a ray from the eye or from a click point and check if the ray intersect the plane a ray is defined by P= Ro + (Rd*t) Ro = camera eye for example Rd = ray dir; t = distance or time and a plane (P - Po). n = 0 n = plane normal (Ro + Rd.t - Po).n = 0 Rd.t.n + (Ro - Po).n = 0 t = (Po - Ro)n / Rd.n If the line starts outside the plane and is parallel to the plane, there is no intersection. In this case, the above denominator will be zero and the numerator will be non-zero. If the line starts inside the plane and is parallel to the plane, the line intersects the plane everywhere. In this case, both the numerator and denominator above will be zero. In all other cases, the line intersects the plane once and t represents the intersection as the distance along the line from Ro
  6. try with something like this. a 3.5 3.5 yay_some_text a 3.2 4.5 yay_some_more_text [CODE] ifstream f; f.open(file); char dat[256]; for(;;){ if(!f){ break } f >> dat; if(strcmp(dat,"a") == 0){ float x, y; char txt[256]; f >> x >> y >> txt; } } [/CODE]
  7. if you want to make a 10 x 10 map , lets say that each tile is 32 x 32 px i used to make a linear array holding all the tile ids int width = 32; short map[100]; -> 10x10 supposing that you are drawing Y first for(int x =0 ; x < 10; x++){ for(int y =0 ; y < 10; y++){ RENDER() } } int x = click.x / 32; int y = click.y / 32; then the tile is int id = x*width + y; map[id].selected;
  8. I started some years ago with ALLEGRO/SDL and c++, both lib are very intuitive, do some small games, something that you can achieve. and if you get frustated (you probably will, like we all did xD) keep trying. SDL Tutorials -> http://lazyfoo.net/SDL_tutorials/index.php Allegro TUtorials -> http://www.loomsoft.net/resources/alltut/alltut_index.htm good luck