001 package com.croftsoft.apps.zombie; 002 003 import java.awt.Dimension; 004 005 /********************************************************************* 006 * An interface of constants for Zombie Hunter. 007 * 008 * @version 009 * 2003-07-11 010 * @since 011 * 2002-02-17 012 * @author 013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 014 *********************************************************************/ 015 016 public interface ZombieConstants 017 ////////////////////////////////////////////////////////////////////// 018 ////////////////////////////////////////////////////////////////////// 019 { 020 021 ////////////////////////////////////////////////////////////////////// 022 // Applet constants 023 ////////////////////////////////////////////////////////////////////// 024 025 public static final String VERSION 026 = "2003-07-11"; 027 028 public static final String TITLE 029 = "CroftSoft Zombie Hunter"; 030 031 public static final String INFO 032 = "\n" + TITLE + "\n" 033 + "Copyright 2003 CroftSoft Inc\n" 034 + "https://www.croftsoft.com/\n" 035 + "Version " + VERSION + "\n" 036 + "Programming...: David Wallace Croft\n" 037 + "Graphics......: Steven Morris Croft\n"; 038 039 ////////////////////////////////////////////////////////////////////// 040 // Frame constants 041 ////////////////////////////////////////////////////////////////////// 042 043 public static final String FRAME_TITLE 044 = TITLE; 045 046 public static final String FRAME_ICON_FILENAME 047 = "/images/david.png"; 048 049 public static final Dimension FRAME_SIZE 050 = null; 051 052 public static final String SHUTDOWN_CONFIRMATION_PROMPT 053 = "Kill " + TITLE + "?"; 054 055 // do something about not drawing background color if null 056 // in SpriteCanvas 057 058 // show demo of animated GIF and document 059 060 ////////////////////////////////////////////////////////////////////// 061 // Director constants 062 ////////////////////////////////////////////////////////////////////// 063 064 public static final double FRAME_RATE = 60.0; 065 066 public static final String BACKGROUND_IMAGE_FILENAME 067 = "images/zombie/background.gif"; 068 069 public static final String [ ] ZOMBIE_IMAGE_FILENAMES = { 070 "images/zombie/zombie1.gif", 071 "images/zombie/zombie2.gif" }; 072 073 public static final int ZOMBIE_COUNT = 3; 074 075 public static final String SHOTGUN_AUDIO_FILENAME 076 = "audio/zombie/shotgun.wav"; 077 078 public static final String HIT_AUDIO_FILENAME 079 = "audio/zombie/hit.wav"; 080 081 public static final String BARK_AUDIO_FILENAME 082 = "audio/zombie/bark.wav"; 083 084 ////////////////////////////////////////////////////////////////////// 085 ////////////////////////////////////////////////////////////////////// 086 }