Click here to Skip to main content
12,759,979 members (32,890 online)
Click here to Skip to main content

Tagged as

Stats

267.9K views
5.5K downloads
176 bookmarked
Posted 30 Nov 2010

WPF Grand Prix

, 14 Dec 2010 CPOL
An article showing how to create a race game using the powerful WPF capabilities
GrandPrix.exe
GrandPrix.exe.manifest
GrandPrix.pdb
GrandPrix.vshost.application
GrandPrix.vshost.exe
GrandPrix.vshost.exe.manifest
Images
ChequerLine.PNG
Grass.png
GrandPrix.application
GrandPrix
bin
Debug
GrandPrix.application
GrandPrix.exe
GrandPrix.exe.manifest
GrandPrix.vshost.application
GrandPrix.vshost.exe
GrandPrix.vshost.exe.manifest
Images
ChequerLine.PNG
Grass.png
Thumbs.db
Release
GrandPrix.application
GrandPrix.exe
GrandPrix.exe.manifest
GrandPrix.pdb
Images
ChequerLine.PNG
Grass.png
Circuits
F1.csproj.user
GrandPrix.csproj.user
GrandPrix_TemporaryKey.pfx
Images
Asphalt.png
ChequeredFlag.PNG
ChequerLine.PNG
CodeProject.gif
Grass.png
Icon.png
StartingGrid.png
Properties
TrackSegments
<UserControl x:Class="GrandPrix.Circuits.Interlagos"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="524" d:DesignWidth="800">
    <Grid x:Name="grdMain">
        <Grid.RenderTransform>
            <ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
        </Grid.RenderTransform>
        <Path x:Name="trackPath" Stroke="Yellow" StrokeThickness="8">
            <Path.Data>
                <PathGeometry>
                    <PathFigureCollection>
                        <PathFigure StartPoint="550,430">
                            <PolyLineSegment Points="776,354"/>
                            <PolyLineSegment Points="736,303"/>
                            <PolyLineSegment Points="762,237"/>
                            <PolyLineSegment Points="755,181"/>
                            <PolyLineSegment Points="677,112"/>
                            <PolyLineSegment Points="221,12"/>
                            <PolyLineSegment Points="189,107"/>
                            <PolyLineSegment Points="197,138"/>
                            <PolyLineSegment Points="220,174"/>
                            <PolyLineSegment Points="436,326"/>
                            <PolyLineSegment Points="446,375"/>
                            <PolyLineSegment Points="417,428"/>
                            <PolyLineSegment Points="316,452"/>
                            <PolyLineSegment Points="292,428"/>
                            <PolyLineSegment Points="318,376"/>
                            <PolyLineSegment Points="283,345"/>
                            <PolyLineSegment Points="214,404"/>
                            <PolyLineSegment Points="138,409"/>
                            <PolyLineSegment Points="135,382"/>
                            <PolyLineSegment Points="189,336"/>
                            <PolyLineSegment Points="201,297"/>
                            <PolyLineSegment Points="178,245"/>
                            <PolyLineSegment Points="41,170"/>
                            <PolyLineSegment Points="3,263"/>
                            <PolyLineSegment Points="36,379"/>
                            <PolyLineSegment Points="91,444"/>
                            <PolyLineSegment Points="332,497"/>
                            <PolyLineSegment Points="550,430"/>
                        </PathFigure>
                    </PathFigureCollection>
                </PathGeometry>
            </Path.Data>
        </Path>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 15 Dec 2010
Article Copyright 2010 by Marcelo Ricardo de Oliveira
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid