8BitOoze - Open Source 2d game

8BitOoze

Overview

This is the official java-gaming.org thread for 8BitOoze. The latest news and updates will be posted in this thread and this post edited accordingly. 8BitOoze is a bat and ball style game written in the java programming language. It’s graphics are vector based like early 8-bit machines. The source code to the game is open sourced and available to download from the web site. Feel free to post any comments or problems you have in this thread as I’m always open to feedback.

News
RC3 has been released and is available on the games official web site.

Updates

RC3
*ADDED: highscore system similar to 8bit machines at the time(highscores get erased when machine is reset)
*ADDED: Facebook like metadata og:title, og:description,og:url,og:image etc.
*FIXED: Server now sends the correct charset in the http header instead of relying in the html
*FIXED: Server now sends expires header
*FIXED: Server now sends cache control header

RC2
*ADDED: Sound Effect(s)
*ADDED: Sound Effect Toggle Key
*ADDED: Frames Per Second Counter

RC1
Initial Release

Demo
Demo

Source
Web Site

It’s very hard to move the paddle back and forth. Did you intentionally make it so it would speed up the longer you hold the left and right arrow keys?

ra4king, you should look at his source code as I don’t reproduce the problem I have with your game, the keys work.

The bat has momentum and inertia.

Cas :slight_smile:

But a little too much of it!!! Think I managed to hit the ball twice, but that might just be me … ::slight_smile:

It is very difficult to control the bat. Maybe you should make the acceleration of it faster?

Nice source code (under GPL v3 ;D), well commented, quite clean, thank you very much.

Nice game! It needs some more features though, and it’s confusing that it starts itself when then loading ends.

hmm … Nice source code (under GPL v3 ;D), well commented, quite clean, thank you very much.

:slight_smile:

I did the same thing, called addKeyListener() on the Applet itself.

By the way, that is TOO commented :stuck_out_tongue:

4 times as many lines of comments than code :slight_smile:

Mike

Hahaha yeah! ;D
Ironically, I had trouble finding the code I was looking for.

One of my college professors had a bumper sticker on his door that read:

:smiley:

I want your college professor :stuck_out_tongue:
I have rarely commented my code. I never saw the need to because I thought my code was understandable from the method names, variable names, and the code itself!

@r4king - sorry you find the bat hard to control. When an arrow key is held the bat accelerates by 0.2d pixels per frame. so if you hold the arrow key long enough the bat will zip across the screen. When the arrow key is let go the bat decelerates by a friction rate of 0.99d, so if you wait long enough the bat will eventually come to a full stop.

@princec see above comment

@Mads i may add a title screen to the game at some point as well as more features. Right now i’m looking to add a 8-Bit “bump/boink/ping” sound effect to the game, but haven’t due to not being able to find any free 8-bit sounds, not even through google.

@fruitmaze see comment above. If i increase the bat’s velocity, the bat will accelerate too much, causing it to zip from one side to the other and making the game too easy.

@nsigma i managed to hit the ball enough times to reach a score of 10k so there shouldn’t be a problem.

@All. Thanks for all the comments. You i might of overdone it on the comments as i wanted other developers to learn from my code and so the reason it’s GPL v3.

Sincerely,

8BitOoze

Then maybe increase friction a bit since there is no way to stop the bat by letting it go without it going to the other side of the screen.

I agree with you, it is fine for beginners, that is why I wrote it is well commented. Of course, it is too much for experienced programmers but your audience is not restricted to them.

Update:

I have added sound effects to my game as well as fixing some bug including the “sliding bat” bug. The update has been posted on the site for consumption. Please let me know if you find any other bugs as the next update will see an overhaul to separate of the game logic and the game engine.

8BitOoze

The site is down :L

x2