w00t! Almost done with the tutorial. Then on to getting some experience and doing the assignment fast enough for it to be done in time.
|
Nice... :)
|
I still want to learn Java but I don't have the time. Writing programs used to be fun back when I was still on an MSX.
|
Tutorial that only takes a few hours, and the more you know 'bout C++, the less time the tutorial'll take. What you need to do afterwards, is find a way to get experience in the coding. That's what I need to get now too. So... any suggestions to get my thinking right for this one? :D
|
Any programming (VB, C++, Java...) requires good planning. So if you prepare plan based on what you need to accomplish (this one is some sort of global plan), then create pseudo code (in your own language, what you like to do), your programming will then take minimum time, your code will look better, and it will be easier to fix problems.
I have not done much Java in last 2-3 years, but still remember of having a hard time with syntax. I had impression that visual part was also kind of unusual, but have to remember that programs were able to work on any kind of OS, which supports Java. To make sure that you will not end up debugging, start this process with this: Answer these questions: What program supposed to do? What is my input? What are my processes? What output should be? After that just write down (still in your language) all functions, modules (or whatever you call them) that you will need in this program. Then take a look if you can find Java commands that will do what you need. And final step will be writing the code, which at this point should be strait forward. And end will include testing and debugging. This is about what we had to learn in data structures and procedures class, which basically includes preparing plan and documentation for problem, and then apply plan to any programming language. (I liked mostly to use C++) When you done with documentation, post it here, so that we can see it. |
Assignment doc:
Code:
Task The world to be loaded and cursors, to move Dozo Processes:
Object properties change and objects on screen change accordingly Functions: See Processes |
OK, this would be a global plan. Now what's the plan for each of steps in process? Go to lovest level of code, but still in plain english.
|
1) Main program:
Set the board up and allow loading a world 2) Loading a world:
|
How do you like to set up coordinates?
|
Where the @ is in the world-file, it'll store the coordinates of that into an array which contains two ints. When doing the checking for the boxes, it'll copy this array and change the values. When Dozo moves, the array's values change too, to the new position.
|
The current time is 09:18 AM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.