Results 1 to 16 of 16
Thread: Best way to make an ASCII game?
- 06-13-2010, 04:01 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
-
First you must learn the basics of Java. How much do you know so far?
- 06-13-2010, 05:01 AM #3
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
I think I know most of what I need as far as what goes on "behind the scenes". I know about methods, classes, arrays, loops, recursion, whatever. Input-and-output-wise, I've gotten input through System.in and output through System.out for mathematical problems without any GUIs, but obviously they won't help. The last 2 days I've taught myself through google how to make a game with full graphics with java.awt. I've just never done anything quite like this, so I don't know what kinds of libraries I need and how to set it up.
Last edited by drens; 06-13-2010 at 05:10 AM.
-
Maybe I'm the one that's confused. What do you mean precisely by making an "ASCII Game" and "filled blocks"?
- 06-13-2010, 05:37 AM #5
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
Sorry if I'm not explaining myself well... I'm never good at that. So I'm going to pull up a picture.

The game Kroz is an old game that uses only ASCII text for graphics, but there are some extra "block" characters, like the filled brown blocks and filled blue blocks to the right side. For now I don't really care about those blocks, or the colours, I'd just like to get the basic text working.
edit: The answer was much simpler than I thought, Graphics.drawString(). I was thinking of Graphics as something that just draws images when I made this thread. I was probably thinking too hard. Thanks anyway, you can ignore this thread.
edit: Well that's STILL not quite the same, but it seems to be the best I can do.Last edited by drens; 06-13-2010 at 07:22 PM.
- 06-14-2010, 08:25 AM #6
Member
- Join Date
- Jun 2010
- Posts
- 8
- Rep Power
- 0
those filled block aren't any extra characters, they can be found on various places at ASCII character map.
- 06-14-2010, 01:44 PM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
You don't just want to use the ASCII characters in the range 0x00 - 0x7f but you also want to use characters from a 'code page' (characters in the range 0x80 - 0xff). Unicode doesn't have code pages, those pages are a mess. Unicode does have those 'glyphs' (character shapes) but they have different code points (i.e. not all in the range 0x80 - 0xff).
kind regards,
Jos
- 06-14-2010, 05:51 PM #8
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
Last edited by drens; 06-14-2010 at 05:59 PM.
- 06-14-2010, 06:10 PM #9
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
As I wrote Unicode doesn't have code pages; they were a mess and don't exist anymore. You have to find a mono spaced font (every character takes up the same width) and that font has to be capable of displaying those funny characters you want. Maybe the Courier New font can do it.
kind regards,
Jos
- 06-14-2010, 07:18 PM #10
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
I already found one - Perfect DOS VGA. Using an app called fontshower I looked at it and it has the special characters.
- 06-14-2010, 07:26 PM #11
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 06-14-2010, 08:00 PM #12
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
- 06-14-2010, 09:17 PM #13
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 06-14-2010, 09:41 PM #14
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
- 06-14-2010, 09:53 PM #15
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 06-14-2010, 09:58 PM #16
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
Help to make a game ???
By Peter20 in forum Java AppletsReplies: 3Last Post: 05-10-2010, 05:36 AM -
Trying to make a functioning Tetris game/ why does my board look weird?
By DeusExMachina90 in forum AWT / SwingReplies: 6Last Post: 12-15-2009, 02:33 AM -
Help to make memory game :=)
By arian88 in forum AWT / SwingReplies: 7Last Post: 10-15-2009, 06:23 AM -
How to make a game quit in BlueJ after entering a room
By alpdog14 in forum New To JavaReplies: 3Last Post: 04-20-2009, 09:53 PM -
how to make mastermind game
By javabeginer in forum New To JavaReplies: 10Last Post: 04-14-2009, 02:11 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks