Click here to Skip to main content
15,884,036 members
Articles / Game Development

Learning XNA 2D Engine IceCream With 1945 Demo Project

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
8 Aug 2012CPOL16 min read 66.4K   2.3K   51  
IceCream1945 is a demonstration of XNA and the IceCream 2D library in a 2D top-down scrolling shooter similar to 1942 for the NES.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IceCream;
using IceCream.SceneItems;
using Microsoft.Xna.Framework.Content;

namespace IceCream1945.Global
{
    public static class GlobalGameData
    {
        public static ContentManager ContentManager = null;

        public static bool ShouldQuit = false;
        public static string ContentDirectoryName = string.Empty;
        public static int ResolutionHeight = 720, ResolutionWidth = 1280;
        public static int PlayerHealth;
        public static int MaxPlayerHealth = 18;
        public static bool SoundOn = true;
        public static bool MusicOn = true;
        public static float SoundEffectVolume = 0.3f;
        public static float MusicVolume = 0.3f;

        public static List<SceneItem> InactiveSceneItems = new List<SceneItem>();
        public static List<SceneItem> ActiveSceneItems = new List<SceneItem>();
        public static SceneItem PlayerAnimatedSprite = null;
        public static PostProcessAnimation ScreenDamageEffect = null;
        public static PointTracking PlayerOnePointTracking = new PointTracking();
    }
}

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)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions