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

Kostikov Stas

Members
  • Content count

    41
  • Joined

  • Last visited

Community Reputation

101 Neutral

About Kostikov Stas

  • Rank
    Member
  1.   Yes i wanted opinion on why code doesn't compiled. Not on why you think type free container is bad thing.     My mistake i raise this theme here.    I already say that i use template specialization, so it isn't code that you can use for any type without proper adjustment. Just you don't need to rewrite original code for make this work.  If you want discuss it. You welcome to do it in private. I don't see how it's related to my question.
  2. Template specialization doesn't help? template<typename type> void convert( const std::string & s, type & t); template<> void convert( const std::string & s, int & a) { a = atoi( s.c_str()); } template<> void convert( const string & s, float.& a) { a = atof( s.c_str()); } template< typename type> type convert( const string & s ) { type t; conver( s, t); return t; } Template can be just declaration but you can specialize different realization for different cases. So what problems with different list of arguments?
  3. I think you are right this is look like it. I though that move constructor can have somethings to do with the problem.
  4. Please lets skip holy wars. It's the reason i don't want to discuss my code here. It's in c++ style and i have my reasons to use it. And i actually more interested why code doesn't compiled. Let say this is theoretical interest lets forget about my previous messages. And before you start to explain what i should and what i shouldn't do in code, i know this, i have more than 13 years professional c++ experience, and more than 7 on lead position. Yes i do know which problems this code can create. And yes i know how to fix them.
  5. There is no type conflict. And syntax correct this code was compiled on different compilers. Gcc for mac and ubuntu compiled this code without questions. As well as 2010 and 2013 visual studio. On this moment only visual studio 2012 doesn't compiled this code. I know how to make it compile but then all other compilers might be failed. Yes i think you correct and this probably bug. When i asked this question i think there something with code wrong but look like code correct.
  6. Mine code isn't variant type. It's much different and I don't see a point to discuss it here. My question was why code writen according standart  isn't compiled.  Not why i shouldn't use this code. And i suggest to stay with topic question.
  7. On other site this sample was compiled with VC 2013 and it's was compiled. So only VC 2012 don't compile this code...
  8. Edit: removed message since don't related to topic
  9. Well i'm not sure where i have to put here static_cast  class SomeClass { public: operator std::string() { return ""; } template< typename type > operator type() { return type(); } }; This code doesn't compile. But this: class SomeClass { public: operator std::string() { return ""; } }; Compile and work fine.     Original code is correct by syntax. As i say it's compiled on gcc (new versions was tested). Compiled on VC 2010. And failed only on VC 2012. I can make side function for string case . But my question is can i fix operator type so he can work correctly?
  10. I wanted to make that my class can be converted to custom type:  #include <iostream> #include <string> class SomeClass { public: template< typename type > operator type() { return type(); } }; int main() { std::cout << "Hello, world!\n"; SomeClass sc; std::string str = sc; return 0; } This code is correct, compiled on gcc, vc 2010 but when i tried to build it on 2012 i get this error:   1>e:\test\operatortest\operatortest.cpp(22): error C2440: 'initializing' : cannot convert from 'SomeClass' to 'std::basic_string<_Elem,_Traits,_Alloc>' 1>          with 1>          [ 1>              _Elem=char, 1>              _Traits=std::char_traits<char>, 1>              _Alloc=std::allocator<char> 1>          ] 1>          No constructor could take the source type, or constructor overload resolution was ambiguous   I missed something? Is there is some change in standart ? Or it just bug in compiler?
  11. Hello,   I have game where is audio subsystem written with OpenSL ES. It's works fine until  i try to show dialog window, As soon as i show dialog sound is stop playing.   After show dialog activity recieve onWindowFocusChanged( false ).   I tried to set audiofocus, run dialog window in same activity. For now I'm out of ideas. Can someone give me some ideas where I can take a look and what to try?
  12. Is it possible to set up Screen Saver from game? I know how do this in Windows but now need do the same in Mac Os.
  13. Just curious there exists some site or mail address where i could learn about license terms? I found only postal address but before start i want to be sure i have all that neccessary.
  14. Almost we found solution but currently we test it. In short we create emulation in separate thread. In case of exception we kill the thread.
  15. I have one problem, we porting our engine on Bada and there everything fine except Lua. Lua required exceptions or setjmp/longjmp functions. These functions didn't exists on bada. There exists some solution?