Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 2D / Re: Jump n Run with a Worms like World on: 2006-09-04 08:30:18
Use a cell approach, where each cell is about a quarter of a screenful. Assuming you can recreate each cell on demand, just use a simple bitmap (1's and 0's dictate active and inactive pixels) to store the the modifications. That's eight pixels per byte rather than 1/4th a pixel per byte. An entire 800x600 screen could be stored for about 60k. This could be futher improved by storing only the scanlines affected and using an RLE compression scheme. If you want to do pixel manipulation beyond that, like your sand mechanism, you're better off just saving each cell as a pixel map and caching them out to the harddrive when they aren't on screen.
2  Game Development / Networking & Multiplayer / Multithreaded or SelectNow? on: 2006-06-06 02:13:13
I'm writing a mud, and I've got it to a point where people can connect and walk around and all sorts of fun stuff. I'm having a little conceptual trouble with how to communicate between two threads. It actually works, but I don't understand enough about what I'm doing to know if it will always work, or if I'm doing something which may hurt me later. Working between multiple threads is new to me, and I'm wondering if it might just be easier to go single threaded.

Basically, what I'm doing is as each client finishes receiving a completed line of text, that text is put into a command queue for that client. Then the other thread goes through all the clients, checks if they have a command, and if they do processes it. I'm already aware that the client list may change in the middle, so I'm thinking I'll have to use a separate list to hold clients with commands pending. But the queue for each client is synchronized, so I don't think  moving the commands between threads is a problem. And while the client does change during the course of the program, the parts the world model uses and the parts the server uses are pretty separate, such that I don't think either one will step on the other's toes.

Basically, I'm asking if this approach will work, of if there is a better approach to this problem out there? I'm new to both multiple threads and to network programming, so I'm really in over my head and pretty unsure about everything.
3  Java Game APIs & Engines / Java 2D / Re: Your favorite 2D and sprite tools? on: 2003-01-12 04:07:36
In photoshop, to remove anti-aliasing in scaling images make sure you use "Nearest Neighbor" interpolation (you can set it in the General preferences or when doing certain functions like Image Size...).

Also, as zparticle mentioned, for the selection tools (marquees + lassos), make sure anti-aliasing is off in the Option mini-dialog (choose Show Options from the Window menu). This is all for Photoshop 5.0 - it may be slightly different in the newer versions.

As for the sprite rip from Ragnarok Online, chances are, they drew the line art on paper, scanned it in, cleaned it up, and colored it in something like Photoshop. The colors chosen give a painted feel to it, but on closer examination, you can certainly see that great care was taken at the pixel level.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!