Computer Science Canada A Namesless Game - Project Progress Thread |
Author: | Nathan4102 [ Sat Aug 10, 2013 3:24 pm ] | ||
Post subject: | A Namesless Game - Project Progress Thread | ||
These last few weeks, I've been putting together plans for a pretty big project. In this thread, I'll be posting my code that I've got so far, and ideas/plans for the game. The reason I'm making this thread isn't to get you guys to help me make this, and get you guys to do the hard parts. I'm doing it to get some feedback on code I've written. Please don't post and say "Oh you're trying to do this? Here's the code." That's not what I want! :p Now, I guess I should explain a bit about this project. The game is going to be kind of like Sims, except A LOT simpler, with less features and stuff. Basically, you have a character, and you need to do stuff with your character to make your life better. Better life = better score. The ways to improve your life are different depending on your motivation chosen at the start of the game. Different stats can be raised and lowered by doing (or not doing) activities. I might also add an achievement type system into this too. For a more in-depth explanation, I've attached my game blueprint to this post in a .doc file. Progress on this project won't be as fast as some of you might be expecting. I currently work a full time job, and I have other things to get done too. Because of this, I only really get to work on my game 30-60 minutes a day. This thread won't be updated every day, but rather whenever I feel I've done a significant amount of work on the project. Now, onto the code. This is my current code for the project, as of 10/8/13.
I'll add more onto this thread shortly with stuff like what I'm working on right now, and what my next steps are. I've also atatched a .rar containing all the images and map files needed for running the game. Feel free to give me suggestions, and share your thoughts! Thanks, Nathan |
Author: | Insectoid [ Sat Aug 10, 2013 9:22 pm ] |
Post subject: | RE:A Namesless Game - Project Progress Thread |
I haven't spent much time looking through it, but at first glance I can tell you can do a much cleaner job of loading images. You're already using an array, so you might as well use a for loop to load them all. Since your images don't share similar names (as a whole, anyway), the easiest method would be to include a text file with all the file names, which the program reads before loading the corresponding image. This will allow you to easily add more images to create more diverse maps. To expand on that, you can include the character-image relations in the map file at the start, which allows you to use a ton of images for a massive variety of maps without exceeding the 255-character limit of 8-bit ASCII. |
Author: | Nathan4102 [ Sat Aug 10, 2013 9:36 pm ] |
Post subject: | RE:A Namesless Game - Project Progress Thread |
Thanks for the comments! I like your first point, it would be a good way to cut down A LOT of lines of code, especially as my program grows, and I add more images. What do you mean by including character-image relations in the map file? I was aware of the 255 image limit, but I was kind of hoping I wouldn't get to that many images! |
Author: | Insectoid [ Sun Aug 11, 2013 4:52 am ] | ||
Post subject: | RE:A Namesless Game - Project Progress Thread | ||
If you have twenty different maps, all with different sprite sets (for different themes), you can easily run over the limit. To get around this, you assign each image to a character in the map files instead of in the code. For example, a map could look something like this:
|
Author: | Nathan4102 [ Sun Aug 11, 2013 7:41 pm ] |
Post subject: | RE:A Namesless Game - Project Progress Thread |
Ahhhh, I see. Seems simple enough, Ill get on it! |
Author: | Nathan4102 [ Sat Aug 17, 2013 4:21 pm ] |
Post subject: | RE:A Namesless Game - Project Progress Thread |
Well that didn't last long... This project's going on hiatus for a short time because I simply don't have time to work on it. I have a job, sports are starting up, AND I need to get the gist of OOP and the basics of Java down by September. To be continued... |
Author: | Nathan4102 [ Sun Sep 15, 2013 4:17 pm ] |
Post subject: | Re: A Namesless Game - Project Progress Thread |
Its back! I've worked quite a few hours on this since my last update, and the gameplay mechanics are starting to come together now! The existing code has been made much more efficient aswell. For some reason, I can't edit my first post, and I don't want to post another HUGE block of code, so I'll just post a pastebin link and my RAR. Next steps are to add a border around the game to hide the ugly animation effect, and then start working on the map some more. I'd also like to start working on an animated character that moves while idle/walking. Let me know what you guys think! Anything you guys think can be improved on? Any ways I can make my code neater/more efficient? Thanks! Code: http://pastebin.com/rPwwmLEb |