Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Drawing;
- namespace Street_Race_Easy2D
- {
- public class Level : GameWindow
- {
- private Graphics DrawHandle;
- private string Location = @"Data//GFX//bg.png";
- public static int imagex = 0;
- public static int imagey = 0;
- public Level(Graphics g)
- {
- DrawHandle = g;
- }
- public void init()
- {
- Render();
- }
- private void Render()
- {
- Image image = new Bitmap(Location);
- //------------------------------------------------------------------
- DrawHandle.DrawImage(image, imagex, imagey - 120);
- DrawHandle.DrawImage(image, imagex, imagey + 360);
- DrawHandle.DrawImage(image, imagex, imagey + 240);
- DrawHandle.DrawImage(image, imagex, imagey + 120);
- DrawHandle.DrawImage(image, imagex, imagey);
- //------------------------------------------------------------------
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement