Changeset 2355 for 2011/26


Ignore:
Timestamp:
2011-06-30 13:40:12 (8 years ago)
Author:
teeevasa
Message:

Simplified inner weapon systems by removing GenEnemy?

Location:
2011/26/JaakkoL
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemies.cs

    r2343 r2355  
    66using Jypeli.Widgets; 
    77 
    8 public class MeleeAlien : GenEnemy 
     8public class MeleeAlien : GenCharacter 
    99{ 
    1010    Image portrait = Game.LoadImage("Images/basealien"); 
    1111 
    12         public MeleeAlien(double width, double height, Shape shape, int HP, string AI) 
    13         : base(width, height, shape, HP, AI) 
     12        public MeleeAlien(double width, double height, Shape shape, int HP) 
     13        : base(width, height, shape, HP) 
    1414        { 
    1515        this.Image = portrait; 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenCharacter.cs

    r2348 r2355  
    2121 
    2222    // The constructor that just relays the variables forward 
    23     public GenCharacter(double width, double height, Shape shape) 
     23    public GenCharacter(double width, double height, Shape shape, int HP) 
    2424        : base(width, height, shape) 
    2525    { 
    26  
     26        hitPoints = HP; 
    2727    } 
    2828 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs

    r2354 r2355  
    1  using System; 
     1using System; 
    22using System.Collections.Generic; 
    33using Jypeli; 
     
    1111    List<Label> titleMenu; 
    1212    const int SCREEN_WIDTH = 50; 
    13     const int SCREEN_HEIGTH = 50; 
     13    const int SCREEN_HEIGHT = 50; 
    1414    Player player; 
    1515    Image background1 = LoadImage("Images/reactorBG"); 
     
    4747        Mouse.IsCursorVisible = true; 
    4848        Mouse.ListenMovement(1.0, MenuMovement, null); 
    49         Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, ""); 
    5049    } 
    5150 
     
    8887        levelSpec['P'] = addPlayer; 
    8988        levelSpec['a'] = addMeleeAlien; 
    90         levelSpec.Insert(SCREEN_WIDTH, SCREEN_HEIGTH); 
     89        levelSpec.Insert(SCREEN_WIDTH, SCREEN_HEIGHT); 
    9190        Level.CreateBorders(); 
    9291        Level.Background.Image = background1; 
     
    101100    MeleeAlien addMeleeAlien() 
    102101    { 
    103         MeleeAlien meleeAlien = new MeleeAlien(45, 80, Shape.Rectangle, 50, "Patrol"); 
     102        MeleeAlien meleeAlien = new MeleeAlien(45, 80, Shape.Rectangle, 50); 
    104103        return meleeAlien; 
    105104    } 
     
    107106    PhysicsObject createHorizontalBlock() 
    108107    { 
    109         PhysicsObject hBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH, 
     108        PhysicsObject hBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGHT, 
    110109        Shape.Rectangle, CollisionShapeQuality.Best); 
    111110        hBlock.Color = Color.Gray; 
     
    115114    PhysicsObject createVerticalBlock() 
    116115    { 
    117         PhysicsObject vBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH, 
     116        PhysicsObject vBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGHT, 
    118117        Shape.Rectangle, CollisionShapeQuality.Best); 
    119118        vBlock.Color = Color.DarkGray; 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2351 r2355  
    1616    Timer walker; 
    1717 
    18         public Player(double width, double height, Shape shape) 
    19         : base(width, height, shape) 
     18        public Player(double width, double height, Shape shape, int HP = 100) 
     19        : base(width, height, shape, HP) 
    2020        { 
    2121        hitPoints = 100; 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372.csproj

    r2307 r2355  
    113113    <Compile Include="Weapons.cs" /> 
    114114    <Compile Include="Enemies.cs" /> 
    115     <Compile Include="Enemy.cs" /> 
    116115    <Compile Include="GenCharacter.cs" /> 
    117116    <Compile Include="Ohjelma.cs" /> 
  • 2011/26/JaakkoL/todo.txt

    r2346 r2355  
    44 
    55Featurelista: 
    6 Title Menu 
    7 HP (+ sen visuaalinen dokumentointi) 
    8 Ensimmäinen kenttä (+ ovi) 
     6HP:en visuaalinen dokumentointi 
     7Ensimmäinen oikea kenttä (+ ovi) 
     8Lisää aseita + aseiden vaihtaminen 
     9Vihollisten AI 
     10Vihollisten hyökkäykset 
Note: See TracChangeset for help on using the changeset viewer.