Jump to content
  • Advertisement

jazzyspazglobal

Member
  • Content count

    24
  • Joined

  • Last visited

Community Reputation

355 Neutral

About jazzyspazglobal

  • Rank
    Member

Personal Information

Social

  • Github
    JazzGlobal

Recent Profile Visitors

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

  1. jazzyspazglobal

    Where Do I Start?

    You must first learn a language. C# is a good one to start with in my opinion. Not sure how some of the more senior members feel about it but it was my first language and I enjoyed programming a lot of beginner projects in it using XNA/Monogame. After you feel comfortable with a language you just simply start working on projects to improve yourself! Here are some books I have that helped me when I first start: Think Like a Programmer: An Introduction to Creative Problem Solving Beginning C++ Through Game Programming Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming If you don't want to spend any money then Youtube is definitely the right place to check out. TheNewBoston and CodingMadeEasy have nice videos! Here are also some resources aimed at beginners: C#: http://www.learncs.org C++: http://www.learncpp.com I'm definitely not an expert (Still in college) so check out other replies as well. I hope I helped!
  2. jazzyspazglobal

    AI Topic for External Blog

    Thanks a lot, I'llbe sure to check some of these out!
  3. jazzyspazglobal

    AI Topic for External Blog

    The point of the blog is to research a topic thoroughly enough to be able to explain, implement, and write about it as if I were teaching others. I don't know much about AI so I figured I'd come here so somebody could point me in the right direction
  4. jazzyspazglobal

    AI Topic for External Blog

    Hey guys, I've been exposing myself to computer science, programming, etc for a little over 5 years now but I'm still just a newbie in college. I have recently started a blog to help myself go out and research topics and share my knowledge about them. This is not a post advertising for it, I just wanted some suggestions on a simple-to-intermediate level topic to cover about Artificial Intelligence. I like topics that I can implement (Not just theory) and show the source code for. I'm especially interested in those that I can show off in a 2D environment. Thanks a lot!
  5. jazzyspazglobal

    Need some helpful advice.

    You're never too old to pursue something you're passionate about
  6. jazzyspazglobal

    2D game programming book

    Programming 2D Games uses C++ and goes over some basics. I only skimmed through it and some programming experience is nice to have when going through (Not a whole lot though). I've also found that youtube videos help me out quite a bit CodingMadeEasy and TheNewBoston have nice videos!
  7. Planning your project is always an important thing. I use Google Keep to store a lot of my notes when I plan my projects. Also, you need to have the right attitude and make sure you finish your project. Being able to say that you finished something is a serious accomplishment when just starting out!
  8. jazzyspazglobal

    C# Concepts Useful For JRPGs?

    Definitely, check this out. It has a very nice section on the State pattern. You should also get involved with Arrays and Lists. They could be useful for keeping track of Enemy data.
  9. I'm really not seeing anything that immediately sticks out as "flawed". It makes perfect sense to me that both the Room and Player objects need to have their own way of managing items (Lists). It is also logical that once the player picks up the object, it cannot exist on the floor and in the player's inventory. You could tag your items with IDs and simulate moving it from the room's inventory to the player's. Item is removed from the room's inventory and then a new item object is added with the removed item's ID, thus creating the same item. roomInventory.Remove(item) playerInventory.Add(new Item(item.ID)); EDIT: ID can be a string, integer, or however you want to organize your items.
  10. jazzyspazglobal

    Parsing Xml Data

    Thank you for the help. I tried all three of those methods and realized that the only reason the data was being changed was because the reader read the document three times and included whitespace in its reading. This caused variables to be set incorrectly and to null values. I ultimately solved it with a simple check to make sure that the reader only altered attributes when set to a specific node. Thank you again for your insight! :D       EDIT: Might give the reflection-based serialization a quick study :P
  11. jazzyspazglobal

    Parsing Xml Data

    Hello, I have been trying to parse specific XML data using C#.  I'm just going to post these screenshots and let you guys observe what may not be obvious to me.    Here is my XML File:  [attachment=32602:Screenshot 2016-07-15 18.25.22.png] Here is the Enemy Class:  [attachment=32603:Screenshot 2016-07-15 18.25.33.png] Here is the Running program: [attachment=32604:Screenshot 2016-07-15 18.25.40.png]     The issue is that the XmlReader object will read through the file and reset the attributes. How can this be fixed so that the XmlReader will stop reading once it has no more relevant data? Thank you in advance!    
  12. jazzyspazglobal

    Help With Serialization

        Thank you very much!
  13. jazzyspazglobal

    Help With Serialization

    Here is my entire PlayerProfile Class:  [Serializable] public class PlayerProfile { private int lives; private bool[] levelscompleted; public int Lives { get { return lives; } set { lives = value; } } public bool[] LevelsCompleted { get { return levelscompleted; } } public PlayerProfile() { lives = 3; } public void SavePlayerProfile() { IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream("PlayerSaveData.bin", FileMode.Create, FileAccess.Write, FileShare.None); formatter.Serialize(stream, this); stream.Close(); } public PlayerProfile LoadPlayerProfile() { IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream("PlayerSaveData.bin", FileMode.Open, FileAccess.Read, FileShare.Read); PlayerProfile p = (PlayerProfile)formatter.Deserialize(stream); stream.Close(); return p; } } And here are my function calls:  if (yes.isPressed()) { if (File.Exists("PlayerSaveData.bin")) { Game1.PlayerProfile = Game1.PlayerProfile.LoadPlayerProfile(); } else { Game1.PlayerProfile = new PlayerProfile(); Game1.PlayerProfile.SavePlayerProfile(); } GSM.Change(Game1.PLAYGAME); } There exists a static variable for PlayerProfile in my Game1 class, but it was left uninstantiated. I set it to a new PlayerProfile instance upon its initial creation and the code now works. Still going to post the above in case any other problems arise. 
  14. jazzyspazglobal

    Help With Serialization

    Hello, I am currently working to create a 2D platformer-like game and I am stumped on saving game data (Serialization). I understand what serialization is (To an extent) but I cannot get it to work.      Here is my serialization code:  public void SavePlayerProfile() { IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream("PlayerSaveData.bin", FileMode.Create, FileAccess.Write, FileShare.None); formatter.Serialize(stream, this); stream.Close(); } And here is my deserialization code:  public PlayerProfile LoadPlayerProfile() { IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream("PlayerSaveData.bin", FileMode.Open, FileAccess.Read, FileShare.Read); PlayerProfile p = (PlayerProfile)formatter.Deserialize(stream); stream.Close(); return p; } Both of these work like a charm but the PlayerProfile object cannot be deserialized unless it is serialized within the same instance of the game. Once I close the project and try loading (Deserializing), it will throw a NullReferenceException. I truly hope the problem isn't something too obvious that I may be overlooking xD
  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!