yizhenfei1991 wrote:
maquinista wrote:
Maybe, You can try to start from current OpenTTD code, It would be easier than starting from zero, but the game must be licensed as GPL (free license).
For example, You can start adding a map array based on Locomotion 3D space.
Thank you for your advise.
Yes ,i will have a look at the OpenTTD code, but i will not totally use them, because if something i want to do is different from the OpenTTD, it is quite hard to change.
It's more difficult to create a new game from scratch than adapt a very similar game.
- Convert to 3D the OpenTTD map array.
- Modify the screen rendering system to render the "voxels" from low to top.
- Add a sprite loader for DAT files (first, ladscape DAT files).
- Modify the tracks and roads to allow the curved pieces.
- Modify the code for the vehicle movement, usage of inertia, track reservations, collisions...
- Modify the bridge and tunnel code.
- New code for landscape management.
- Code for rendering all of the vehicle positions.
- Add the code for the running sound (based on modifications of the frequency.
Maybe it could be long, but If You want to program a Locomotion from scratch, You must code the same things, and these other things:
- GUI code.
- Network code
- A full screen rendering system.
- Add code to manage the city, industries, objects, trees...
- Code for manage the cargos.
- Code for sounds....
- Code to manage train consists.
Another advantage, is that your work will be visible from the first week. This makes your project more attractive for other developers.
The only prize is that the code must remain as GPL.
yizhenfei1991 wrote:
first, i think if i change some core part of the OpenTTD code, there may be a lot bugs, it will take much more times to fix them, and also , will be a lot of compatibility problems.
second, i think it is kind of joy to build a new game myself. I don't know about other people, but coding is really a kind of fun to myself. : )
Ok, but You must know that It will take some time until You see the first results.
_________________
Sorry if my english is too poor, I want learn it, but it isn't too easy.