Skip to content

Tutorial X: the roads between the cities #1

@EtienneBruines

Description

@EtienneBruines

So, at some point, it'd be nice to connect cities by means of roads.

The back-end knowledge is easy. Allow passengers to use those roads, also not much of a problem.

But I am wondering how to render the roads. I mean, we might have a road-texture (.png or something) which is 10 units long. If we wanted to create a road that's 100 units long, we somehow set OpenGL to repeat the texture (not sure how again? But I'm sure I can look that up). Or should we physically have 10 of those "10 units long" road-pieces (also in the game-logic), and let them be "connected"?

We would need rotation support, which will be added soon (I hope), if we want to add diagonal roads.

Thoughts? Any possible solutions? Any possible difficulties anyone foresees? @paked do you have anything to add on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions