Jump to content
  • Advertisement
    1. Past hour
    2. Hey, folks! I told you about my MMOG idea. So, now the problem is that I don’t know how to plan my idea and send it to a big developer. (Yah! I know it’s unrealistic. But my dream developer is Blizzard. I just love Overwatch and World of Warcraft.) So … Do you have any tips how can I solve my problems?
    3. I'll never be able to give you a complete list of all possible options, so I'll just give you one. You can google for others ... http://www.codewars.com/
    4. Today
    5. A friend convinced me it would be a better idea to write this method instead: private void UpdateCharacterPositions() { Vector2 Position = m_TextEditPosition; float XPosition = 0; if (m_UpdateCharPositions) { m_CharacterPositions.Clear(); foreach (string Str in TextWithLBreaks.Split("\n".ToCharArray())) { XPosition = 0; Position.Y += CapitalCharacterHeight; for (int i = 0; i < Str.Length; i++) { XPosition += m_Font.MeasureString(Str.Substring(i, 1)).X; m_CharacterPositions.Add(new Vector2(XPosition + m_TextEditPosition.X, Position.Y)); } } m_UpdateCharPositions = false; } } Now I just need to optimize the hell out of it or minimize the number of times it is being called. Currently it’s being called whenever the cursor goes OOB when deleting a character, as such: /// <summary> /// Make sure cursor's position is valid and in range. /// </summary> private void FixCursorPosition() { if (m_Cursor.Position.X < m_TextEditPosition.X) m_Cursor.Position.X = m_TextEditPosition.X; m_UpdateCharPositions = true; UpdateCharacterPositions(); int RealCharIndex = m_Cursor.CharacterIndex - m_NumLinesInText; //Account for \n... RealCharIndex = (RealCharIndex < m_CharacterPositions.Count) ? //Make sure it doesn't overflow. RealCharIndex : m_CharacterPositions.Count - 1; Vector2 IndexPosition = m_CharacterPositions[RealCharIndex]; if (m_Cursor.Position.X != IndexPosition.X || m_Cursor.Position.Y != IndexPosition.Y) { m_Cursor.Position.X = IndexPosition.X; m_Cursor.Position.Y = IndexPosition.Y; } }
    6. https://www.gdcvault.com/play/1023003/The-Art-of-Destruction-in http://matthias-mueller-fischer.ch/publications/fractureSG2013.pdf Old image from my implementation of the second approach. Should be fairly simple in 2D.
    7. If you have many enemies and all look for the player, it could be faster to use just one Dijkstra shortest paths search from player to all enemies at once instead multiple A* searches from each enemy to the player. (Dijkstra finds the shortest paths to ALL nodes in a graph. But it can terminate if all enemies have been found.) On the other hand, in practice you may do only one search per frame for one enemy, as it is not necessary to update this very frequently, here A* becomes more attractive again.
    8. This seems more and more like a pure troll. I'm not sure what the point of the thread is anymore. The op just continues to assert his/her excellence with nothing to back it up but rudeness and personal attacks. There is little actual exchange going on. The utter ignorance of how game development actually works tells me this is just a trolling attempt at seeking attention.
    9. mmonewbie2017

      Swashbuckler Showdown

      I like this. the speed is fast, and the tune is good
    10. I guess, not being so familar with engines like Unity and Unreal, one issue is that it is not so easy to make a competent analysis if on the long run using such an engine fullfils 'faster, cheaper and better'. For instance I create a 2D gui-heavy tactical/strategy game as a hobby and I asked myself if I shall use Unity or stick to JavaFx. It is not only the game engine itself but also the asset stores (e.g. in the case of Unity the provided GUI controls are limited for a GUI heavy game) and the related issues (additional costs, assets may stop working if you ugrade to newer Unity versions)
    11. lawnjelly

      How can I move a hero along the floor mesh?

      This is a totally different question and really deserves its own thread, but it is often called 'picking' if you want to google this.
    12. Thanks both, I'll try to debug and see what's returned for which axis I check. My test case are 2 cubes with are besides each other (0, -3, 0 and 0, -3 and - 1.5), which are rotating in the same direction, meaning all axis's are parallel. This might be the reason why implementation 1 doesn't work (no epsilon correction for 0 cross product). I'll try this one first, since it's a quick fix/ test. Or the other way around, disable rotation for one of the two cubes, so I don't have the potential 'parallel' issue'. @Randy Gaul true, but there's always a risk of copy/ pasting and making it 'fit' to my codebase.
    13. Multiple class declarations are allowed in one translate unit. So it's fine you include class A many times in one .cpp. But class definition (which define the function code, etc) must be in a single translate unit, except they are inline.
    14. I usually also set the fog vertex mode. If in doubt you can always modify the fog start and end values. They feel awfully small. Unfortunately I've come to the conclusion to never trust drivers to set default values.
    15. alnite

      How much longer can Trump/Trumpism last?

      It's usually one aspect of a particular leader that people follow. What that aspect is different per individual. Some people say yes to abortion, but no to illegal immigration. Some others love guns and the 2A, but also welcomes illegal immigrations. The people that stand in between these policies, that don't feel like they belong to either, are the ones swaying left and right, and receiving the blunts of insults from both parties. Just because you voted Trump doesn't make you a racist or a Russian bot, who loves their guns, rednecks, hates the gays and the mexicans, and so on. Yes, those people exist, but that's not 50% of America. Sometimes it's just one tiny teeny thing he said/did that made people voted him. Not his whole life or persona. Remember the red-sweater Ken Bone? He, at least when viral, admitted to leaning to support Trump's economic policies. Was he a Russian bot then? So, really, stop with the labeling. The Democrats love to say "If you voted for Trump, then you must also be racist." And the Republican side is no better, and has their own stupidities. I think anyone who exercise a bit of critical thinking won't like both parties. Left side is correct on certain things, right side is correct on these other things. For most people, it's never 100% commitment to a party unless you actually work at the DNC or GOP (i.e. politics is your career).
    16. I am in search for a realtime algorythm to build fracture parts from a oriented box in 2D with respect of the impact point and the impact velocity, for building-up a exploding rock started as a box-shape. What techniques are there which are or can be easy translated to 2D?
    17. Chris Schmidt

      Swashbuckler Showdown

      An action tune of mine with a similar aesthetic to Raiders, Zorro, Cutthroat Island, etc. Let me know if you love it. Let me know if you hate it. Thanks
    18. Locuskidd

      Brilliant game Idea of a GTA Primal.

      Agreed. Was that comment toward me? If so, I apologize.. didnt have any intentions on attacking anyone, and wasn't aware that I was.
    19. We have a good overview of commonly used techniques for game AI that briefly introduces a range of methods and what they're best used for. It's a good read. For actually finding paths through a level, the most common algorithm is A*. The best guide I know to that is Amit Patel's Introduction to A* and the accompanying Implementation Guide. For tracking an enemy, there are a range of techniques you could use. I recall one popular game had players regularly drop invisible "markers" that fade over time; AI could then path towards the nearest markers to pursue the player. A more sophisticated approach might involve the AI moving towards where the player was last detected and actually searching "hiding places" as they go. I've no idea what specific techniques Goldeneye 64 might have used, but I don't remember it's AI being particularly impressive compared to other games, so likely nothing particularly special or novel. Hope that helps to provide a starting point.
    20. The one I most commonly hear people using some variation of A* which apparently has been around since 1968. As far as goldeneye goes I don't think it is anything fancy but you're probably better off tracking down the devs and sending them a message if you really want to know.
    21. Hello All, I know this blog is many days past the usual time I write them and I wish I could say it was for a good reason but unfortunately that is not the case. My wife finally got to come home from the hospital after her surgery last Friday the 10th. However by that Tuesday she had taken a turn for the worse. Her vitals were extremely low, oxygen was just below 80 and her skin was changing color. Per the home nurse and my Primary Care Doctor the best decision would be to get hospice involved. My Wife’s one wish was to be in our home and not in a hospital. This is of course what I am doing for her. My wife is still home and I am taking care of her. Her vitals have improved however she is not eating food. She is however drinking water and going to the bathroom. Hospice gave her only days to live and she has already shown them that was false. My wife is a fighter and the strongest person I have ever met. She is fighting for her life and I will fight with her. Tomorrow I begin conversations with Dr’s on what if anything we can do moving forward to keep her with us and to make sure we looked behind every corner and not missing anything. Right now I am cherishing every moment I can with her even if it’s only watching her sleep. I have not left her side. She is my best friend and my soulmate and if I could I would give up my life for hers. 22 Weeks ago I began this project of working on this video game. The reason why was because of a dream. One night my wife and I were talking about the possible outcome that could happen with her cancer diagnosis. It was a hard conversation but one that was necessary. It was that night I had a dream she had passed away. To cope with death and to honor my wife I had built a video game about her and about cancer. It was played by kids and adults and helped put a smile on the faces that were dealing with the disease. It had also helped myself and my kids cope. When I woke up I was crying. It felt so real. That day I told my wife about my dream and she began to cry. She said however she was happy that in my dream we were able to move on and cope. In my dream the name of the game was Saving our Sarah Cervical Cancer. It was more than a game though it was a group put together to help all women with cervical cancer and men with what their wifes, girlfriends, mothers, etc had to deal with. Also the acronym for Saving Our Sarah is SOS which also an acronym for HELP. So the game is called SOS-CC. Help Cervical Cancer and Saving our Sarah. I decided I did not want to wait to create this. I wanted to create this with Sarah. I wanted her to be involved and I wanted her to see this being done. I wanted her to see the game, to be able to play the game, and for it to become a reality. So we started this together. She gave her input on how she wanted it to look and helped with the creativity. It was fun to do together. I planned on having the game release on September 18th in the Apple IOS store. All along I was trying to finish this game as quickly as I could. I wanted to release the game so that Sarah could see it completed. This may not happen, but at least she helped create it, she got to play it, and she knows it will become reality. The one thing she asked me so far while she has been home is, “You better finish that game and release it!” I promised her that will definitely happen. This game will get finished and it will be updated regularly. This is going to be in honor or my wife. In memory of her and for everyone else that has to deal with the horrors of cancer. I will try and make the Sept 18th release window but it may be delayed. I have not worked on the game since she’s been home as I cannot leave her side. Below is the change log that I got done before she came home. Also below is an almost 2 min video. Please watch and listen to this video. This song has been custom created for Sarah by Dale North. It is the title track of the game. It’s beautiful and Sarah loves it! Thanks Everyone. Completely re-designed and finished Title Menu and all option menus updated all button icons they are now pills with white text, blue text when selected re arranged the buttons on the how to section added random icon to some of the menu screens updated some how to screens re – designed the Store (pharmacy) IAP has a proper icon and description all descriptions are now in the info section of each purchasable item can be accessed by pressing the “I” icon next to the item Added How To areas for: controller navigation store fixed some bugs that were found by play testing Turned on some V-sync to stop some screen tearing from the on screen joystick Created a section in the menu for all the Diary pages you find once found in game they will be unlocked in the menu so you can read them later on, so you can “collect” them all All SFX are now completed and in the game, thanks @LUIS they all sound amazing! adjusted the volume on some SFX Transition screens complete chapter 1 & 2 title and transition screens chapter 2 completion transition screen endless mode transition screen new fireball sprite and destroy animation courtesy of Irina Mir (irmirx) Endless mode is now locked until you complete the game transition displays the highest number of rooms reached in one run always start endless run in the bedroom Your now able to purchase the health and stamina upgrade 3 times (instead of 2) in the store (pharmacy) if you purchase both 3 times you will double your starting health and stamina!! Credits Screen done Once you reach the boss room you can no longer backtrack. Get all the items you need before you enter boss room Made some changes to game over screen added story context text removed main menu button and now it’s tap anywhere to continue lowered health damage of falling in holes to half a heart only hazard that depletes 1 whole heart from Sarah are the spikes Main theme song has been created by Dale North exclusively for this game. It is the most amazing piece of music I have heard and for it to be written for this game and my wife means so much to me. Thank you Dale! Moved diary page to the SOSopedia created a dedicated stats page in SOSopedia now tracks total time played as well as other stats from game over screen resolved a bug where Sarah was not invincible for 1 second after falling into a hole and re-spawning View the full article
    22. Randy Gaul

      OBB intersection frustration (SAT)

      I'm a bit surprised copy + pasting Ericson's code doesn't work. Next step should probably be to debug render sub-expressions and start verifying lines you know to be correct, and take note of which ones you don't know to be correct.
    23. void APPLICATION::fogEnable(DWORD Color, DWORD Mode) { float Start = 0.5f; // For linear mode float End = 0.8f; float Density = 0.66f; // For exponential modes // Enable fog blending. m_pDevice->SetRenderState(D3DRS_FOGENABLE, TRUE); // Set the fog color. m_pDevice->SetRenderState(D3DRS_FOGCOLOR, Color); // Set fog parameters. if (Mode == D3DFOG_LINEAR) { m_pDevice->SetRenderState(D3DRS_FOGTABLEMODE, Mode); m_pDevice->SetRenderState(D3DRS_FOGSTART, *(DWORD *)(&Start)); m_pDevice->SetRenderState(D3DRS_FOGEND, *(DWORD *)(&End)); } else { m_pDevice->SetRenderState(D3DRS_FOGTABLEMODE, Mode); m_pDevice->SetRenderState(D3DRS_FOGDENSITY, *(DWORD *)(&Density)); } } and applying the code fogEnable(0xffffff, D3DFOG_LINEAR);
    24. What's the length of the *HalfExtent vectors? 'Half extent' makes it sound like the length is half the box extent (which would be a quarter of the length along the respective axis), which doesn't sound right. Is the length of those vectors just the extent? Although it's probably not the source of the problem, it shouldn't be necessary to normalize the box axes as you're doing, I don't think (I'm looking at the first test here). Keep in mind that the cross-product axes can end up being arbitrarily short, which may cause numerical issues. This is accounted for in the second implementation, but not in the first. If you haven't gotten the first implementation working yet, I'd try the following. Call the function with the same box for both arguments, so that the two boxes are coincident. If you get the correct result (true), that will show that the test doesn't actually fail in all cases, in which case you can try to narrow down the cases that do fail. Irrespective of that, once you find a case that fails (returns false when it should return true), use the debugger or logging to determine which axis is triggering the failure and what the relevant values are at that point. That should get you closer to identifying the problem.
    25. What pathfinding technique is used for an enemy to find their way around when looking for the player, and also I'm curious... What pathfinding technique did Goldeneye 64 use when an enemy is alerted to the player's presence and begins to move through the level until they find the player?
    26. Excellent guide, very detailed with some good links included for further reading. The only thing I would probably add is that a developer may sometimes wish to include an embargo date rather than "FOR IMMEDIATE RELEASE" if they want the press you publish on a certain date such as a launch day or sale.
    27. Sanura Sandeep

      CS 1.6

      Download- http://fleshas.lt/csdownloads.php Counter Strike 1.6 is first person shooter genre game with multi-player and single-player features. Counter-Strike 1.6 game server's have a lot of modification's like Death-Run, CSDM, Knife, Zombie Plague and many other's. Counter-Strike (CS) game was developed by Minh Le and Jess Cliffe, Counter-Strike is a game of Half-Life game modification. The first Counter-Strike (CS) game has been distributed separately, and was presented with the Half-Life and other games. In 1999 year's engaged in development of this version of the Planet Half-Life community. Since then, was released a lot of Counter-Strike game beta versions. In 1999 year's June 18 day was released the first publicly accessible Counter-Strike game beta version. In 2000 year's August 12 day Valve has announced the merging with Counter-Strike developers and about during the 2000 Christmas was released Couter-Strike 1.0. The current, wildly popular, Counter-Strike game 1.6 version was released in 2003 year's September 15 day. Counter-Strike (CS) 1.6 game point is to beat down enemies team - Terrorist's (T) or Counter-Terrorist's (CT). When all members of enemie's team is eliminated, then survivor's team wins the match and if no one player was killed in winner's team, then winners team just get's flawless victory. Counter Strike 1.6 multi-player game is more interesting than single player game, because you can meet your friend's, do clan fights and many featured stuff. Counter Strike 1.6 game is full of adventure and action, CS 1.6 gameplay style depends on the map type, if you want to know the rules of the CS 1.6 game which depends on the type of playing map and standard tactics, then just read the next article. From the first CS 1.6 game's release date, CS 1.6 game developer's, publisher's and player's was started to think about this game tournaments. Tournament preparation of Counter-Strike version 1.6 game was made this game more popular and increased range of player's. CS 1.6 game tournament winnings amounted to thousands of dollars, hundreds of the best players in the game, fighting for the prize, Counter-Strike 1.6 game, team members from around the world gathered in the great hall where the fight for the prize. Unfortunately this honorable position currently occupied another game: Counter-Strike: Global Offensive. Counter Strike game has always been the most popular FPS type game, it has been regularly updated and improved - from a variety of bug fixes, slowhack problem's fix, modifications, and additional applications of the game development to the updated versions of the game's release. At this moment, Counter Strike game is very common throughout the world, millions of people playing it from a variety of countries. ----------------------------------------------------------------------
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!