Git Product home page Git Product logo

fruitfever's Introduction

FruitFever

Game Development for Fruit Fever by Micah Stairs and William Fiset.

Use the RUN.sh or RUN.bat script to run this program. Here's how:

sh RUN.sh GameStarter

If you want to create your own levels you can execute:

sh RUN.sh DesignerStarter

Alt text

Alt text

Alt text

Alt text

fruitfever's People

Contributors

micahstairs avatar williamfiset avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fruitfever's Issues

viewX bug

There's a rare bug where you can overshoot the viewX and I'm not sure why..

new variables: LEVEL_WIDTH & LEVEL_HEIGHT

Can you make two new Variables in FruitFever called LEVEL_WIDTH and LEVEL_HEIGHT. LEVEL_WIDTH would represent the distance from 0 to the furthest block found east and LEVEL_HEIGHT would represent the distance from 0 to the furthest block found south.

This can be done by doing one pass through the block array or doing it as you read in the blocks from the file, you choose.

-Will

Upper Boundary View

The view for the upper boundary works well expect for the fact that the character can only jump โ‰ˆ half of his original height. I assume a countering force of some sort.

Block Accumulation

Blocks accumulate at the bottom of the screen when you fall a long distance and make your way back up. This is a very minor bug but I don't know where it origins.

screen shot 2014-05-08 at 9 01 46 pm

Adding Lava

Micah, can you add the lava sprite as one of the things I can load in the block part of creating a level (Can you make it the tilde '~' because it looks like a wave ). Also, do NOT put the lava in with the blocks list. I rather you put it in an array of deadly/dangerous sprites.

Thanks,
Will

Teleportation Bug

Sometimes when you teleport you teleport badly and the player gets jammed in a block. Perhaps this is due to bad collision detection with the swirl or that the player sprite is just larger than the swirl and thus makes this strange bug.

screen shot 2014-05-10 at 3 09 07 pm

Loading screen

Re-vamp loading screen with a loading bar and background.

Will: Create a loading bar image (1 pixel wide)
Micah: Code it up!

Swirl Falling Problem

If you shoot a swirl and then jump off a platform the swirl collides with the blocks and disappears. This seriously hinders the usefulness of the swirl shooting. The swirl y position does not get adjusted with the view movement.

Before:
screen shot 2014-05-12 at 9 51 42 am

After:
screen shot 2014-05-12 at 9 52 11 am

Empty Block List

If you look in Block.java there's a static method called ''resetBlockList" that removes blocks in the Block HashMaps I use for the new collision detection method. I need these HashMaps to be emptied at the beginning of every level (So that they don't have blocks from the old level in them). Just make sure you don't load the first selected level and after wipe out the blocks placed the HashMaps (This happened to me several times).

Top of Screen Icons

Sometimes when the level is vertical some the icons at the top of the screen (gear and hearts) will appear to be on top of a block:

screen shot 2014-05-07 at 11 18 58 am

My question is what do you want to do about it?

Changing gear location

Can you change the location of the gear to the upper right side of the screen? Right now it is clustered with the health.

Add Power-up blocks to spritesheet

Powerup ideas: Jump, Attack, Speed

  1. Will: Create images and place them on the sprite-sheet
  2. Micah: Add these to the Data class.
  3. Code in the functionality

Player Spawn Zone

There is sometimes, not always a problem with loading the player in a given location especially when places somewhere in the middle of the screen. It seems to be a problem with the Y position because sometimes the player will get loaded below or over where they're supposed to be. If your near a side usually there is not problem, from experience.

Make 2 minor fixes to spritesheet, 1 minor fix to Data.java

  1. The player's shooting animation needs to be slid to the right 25 pixels.

  2. This code fragment in Data.java's loadImages()

playerShoot[i] = makeImage(sheet, TILE_SIZE*15, TILE_SIZE*(i + 1), TILE_SIZE*3, TILE_SIZE); 

needs to be replaced with

playerShoot[i] = makeImage(sheet, TILE_SIZE*16, TILE_SIZE*(i + 1), TILE_SIZE*3, TILE_SIZE); 
  1. The fifth frame in the player's tongue attack animation needs to be slid downwards by 1 pixel.

Banana/Block spritesheet issue

Looking at the sprite sheet, the banana is overlapping on top of the bottom right block (which is black).

Also, if you look closely at the banana animation, there's a couple bad pixels on the right side in just one of the frames I think.

Level Names

I was thinking it might be a cool idea to have Names for each of the levels we create. This could give our levels a theme and a way for the user to relate to the level instead of it just being a number (of course the number for selecting the level would still be there). What do you think?

Heart Issue

There are blue bars beside the hearts probably due to the water sprite.

screen shot 2014-05-05 at 3 33 21 pm

Further Game Additions

We are going to need more things than swirl teleportation to keep our game original though the 99 levels (maybe not that many) or so that we plan on making. I just want to discuss what kinds of things we might plan on adding in the future.

Current Suggestions:

-Falling Blocks
-Moving Platforms (Group of blocks)
-PowerUps
-Checkpoints
-Achievements
-Multiple Rooms per Level

Animation Jerk

The fruit animations on level 0 jerk when you move the character past the red border lines (which indicate the movement of viewX/viewY). I assume the fix might require the use of a dy/dx variables to make the movement smooth (This might not be the case because the blocks move smoothly without dy/dx variables (I think!)).

Unmoving Blocks

I am not sure how this problem arrises, it is usually due to swirl teleportation but has occurred in other moments. The error consists of Blocks that:

  1. Are on the Screen
  2. Don't Move
  3. And that you cannot collide with.

screen shot 2014-05-09 at 9 15 45 pm

Lagginess when holding UP arrow + LEFT or RIGHT arrow

The game freezes for a little bit when trying to press and hold the UP and LEFT arrows or the UP and RIGHT arrows. It doesn't always happen but it happens sometimes. It starts to lag once its on the second jump.

Swirl Teleportation

Swirl teleportation implementation:
- Only one swirl
- Should teleport user to x/y location
- Don't forget to change the viewX/viewY position

Main Menu - Mouse/Button Hover

Is there a reason that it takes about 1/2 second for mouse detection to kick in? You can hover the mouse over the buttons but during that first half second and the buttons don't turn red, they remain transparent. If there's an easy fix that would be nice.

Jumping Glitch

If you slide off a platform and try jumping in midair the program will let you do so.

Load Character Image(s)

Load at least one character image for me to work with, for now I will use another block. It's not too urgent. Also I plan on having the Player load in as an '@' symbol in the levels.txt. If you could do that it would be great.

Game Doesn't Compile 80% of the time

The error is the "Error of Doom" as Dr. Ricker says aka the NullPointerException.

Exception in thread "Thread-1" java.lang.NullPointerException
at FruitFever.run(FruitFever.java:70)
at acm.program.Program.runHook(Program.java:1568)
at acm.program.Program.startRun(Program.java:1557)
at acm.program.AppletStarter.run(Program.java:1895)
at java.lang.Thread.run(Thread.java:744)

It seems to originate from the player.motion() method on line 70 but I don't have many leads other than it started after Micah had finished the "hidden" level selection menu.

Gear Functionality

I was envisioning that the gear would do more than return to the menu. I plan on making a drop down menu where the user will be able to turn the sound Effect on/off and turn the music on/off. That being said the gear returning us to the menu for now is great because we can test multiple levels. The problem is it doesn't load the level view properly haha. I assume the problem is that we're not setting the location of the viewX/viewY properly or are not reading the levels.txt to find the '@' symbol to determine the players location.

Jumping Glitch

If you slide off a platform and try jumping the program will let you do so.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.