Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  Discussions / General Discussions / This english don't understanding. anything explain to me this sentence. on: 2013-04-09 13:29:37
Hi, I'm a korean. I'm not good yet English. So, I don't understand a sentence.

Quote
This mapping is one-to-one and onto, which means that the same input letter always gets replaced with the same output letter, and different input letters always get replaced with different output letters.

This sentence is A.Problem in google code jem Qualification Round 2012.
https://code.google.com/codejam/contest/1460488/dashboard

I understand "one-to-one", it same "1:1".

but, "onto" don't understand to mean.

in English-Korean dictionary, To mean "onto" is same "across".
ex) When my name was called, he looked across at me.

but, It isn't right mean. So, I asked help you.

And, I find To mean "onto", Do "onto" same The link?
http://en.wikipedia.org/wiki/Surjective_function

please~
2  Game Development / Newbie & Debugging Questions / Re: how to reset or change value of final variable? on: 2013-03-19 16:50:10
code and image added so, you review.

And completely Green Ground do work.

but move_method don't well do.

So, I think, have a problem with 'final'
3  Game Development / Newbie & Debugging Questions / how to reset or change value of final variable? on: 2013-03-19 12:46:07
Hi, Thank you at before.

Now I mean another problem.



I do sequential explanation.


First. the Virus Panel Clicked.



Second. that opposite add Green Ground(Y-95 location).

Third. Green Ground(in Y-95) was clicked by mouse.



Fourth. Virus Panel move Y-95(forward).



Fifth. the Link Panel Clicked.

Sixth. that opposite add Green Ground(Y-95 location).

Seventh. seem third. (Green Ground(in Y-95) was clicked by mouse.)



Eighth. Virus Panel move Y-95(forward)



originally, if Link Panel clicked by mouse, Link Panel go forward.

but Link Panel not moved instead of Virus Panel moved.

I think due final JPanel mvp. but, can't remove final.

The eclipes have necessary final.

so, I think. Not used final variable, error don't get out.

but it not possible. Used final variable, enable reset final variable or change value(address value) of final variable.

how to do?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
class Object{
 public static void main(String[] arg){
  JPanel Virus = new JPanel(15,15,80,80);
  JPanel Link = new JPanel(30,30,80,80);
  Virus.visible(true);
  Link.visible(true);
   Virus.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
     Moving mv= new Moving();
     mv.move_AE(Virus);
   }
  });
   Link.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
     Moving mv= new Moving();
     mv.move_AE(Link);
   }
  });
 }
}

class Moving{
 public void move_AF(JPanel mvp){
  if(!(Virus.getY()<=123)){
   move_N.setLocation(mvp.getX(), mvp.getY()-95); //Green Ground.
  move_N.setVisible(true);            
  }
 }
 public void move_AE(final JPanel mvp){
  move_N.addMouseListener(new MouseAdapter() {
   public void mouseClicked(MouseEvent e) {
    if(event){      
     move_set();
     mvp.setLocation(mvp.getX(), mvp.getY()-95); // mvp(Virus or Link) is going forward
    mvp.setVisible(true);
     event=false;
    }
   }
  });
 }
}
4  Game Development / Newbie & Debugging Questions / Re: Moveing problem in 2D Game on: 2013-03-05 11:24:10
You are Thanks! i understand your to talk about.

But I think my mistake. I don't talk you of explained non-detail. Sorry.

However, I'm a help to made check method by masteryoom.


now I talk detail.

Black Ground(Square) is the image that JLabel(called background) using icon.

And White Ground is same image.

Virus.X or Virus.Y need to the reason why Black Ground is the image.

I'm necessary to find plxel value(width,height) of Black Ground image.

if I make bottom code, It busy the program?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
static class GamePlay{
 public void moveEvent(){
   // forward Event (when player mouse clicked forward green place)
  move_N.addMouseListener(new MouseAdapter() {            
      public void mouseClicked(MouseEvent e) {
         if(!(Virus.getY()<=123)){ // Virus Card is't the top, when forward not white background
           Virus.setLocation(Virus.getX(), Virus.getY()-95); // Virus forward
           Virus.setVisible(true); // respring
        }
 }
}


I think it to busy processing of program.

So, how to do?

And I think the same as Green Color place problem.
5  Game Development / Newbie & Debugging Questions / Re: Moveing problem in 2D Game on: 2013-03-05 04:31:00
a few times. and making game make first time.
6  Game Development / Newbie & Debugging Questions / Moveing problem in 2D Game on: 2013-03-04 13:10:35
(Sorry, I'm bad English. Please So you understand me.  but, what corrected tell me.)
(미안해, 내가 영어를 잘못해. 그래서 너희들이 이해해줘 부탁해. 하지만 고쳐야 할 것이 있다면 나에게 말해줘)

Hi! I'm making the 2D Game. Making Game start to know a little.
안녕! 나는 2D게임을 만들고 있는 중이야. 게임 만드는 것이 처음이라 많이 모르니 많이 알려줘

Problem is move problem in making game. Look at the Image.
문제는 내가 만드는 게임에 이동에 대해서야 밑에 그림을 봐





In the Image, Virus Card should go to point out green color.
이 그림에 Virus 라는 카드가 갈 곳을 초록색 부분으로 가리키고 있어.




but, It is top, bottom or in very side that can't go to point out green color.
(In other words, Virus Card can't go in write background .)
하지만 이 카드가 맨 위, 맨 밑, 맨 옆에 있으면 가지 못하는 초록색 부분을 가리키게 되버려

So, Green color(place) don't visible  according to Virus Card of X value or Y value at write background, I'd make what Virus Card don't go Write background and only black background.
그래서 이 부분에 저 Virus 카드의 X,Y값에 따라 초록색 부분이 못나오게 하고, 그 부분으로는 갈 수 없게 만들고 싶어.

But, I'm short a little knowing.  I’m not sure (about) what to do. Good idea tell me. plaese.
하지만 아직 내 실력으로는 부족해서, 어떻게 해야 할지 모르겠어, 좋은 방법 있으면 알려줘.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
//Setting code skip

public class Windows {  
   static JPanel move_N;
   static JPanel move_S;
   static JPanel move_E;
   static JPanel move_W;
   static JPanel Virus;  
   GamePlay GP = new GamePlay();

   //Setting code skip
 
   static class GamePlay{
      public void main(String arg[]){
         
      }      
      public void play(){
         move_N.setLocation(Virus.getX(), Virus.getY()-95); //top side
        move_S.setLocation(Virus.getX(), Virus.getY()+95); //botton side
        move_E.setLocation(Virus.getX()+95, Virus.getY()); //right side
        move_W.setLocation(Virus.getX()-95, Virus.getY()); //left side
        move_N.setVisible(true);
         move_S.setVisible(true);
         move_E.setVisible(true);
         move_W.setVisible(true);
         Virus.setVisible(true);        
      }
      public void moveEvent() {        
            move_N.addMouseListener(new MouseAdapter() {            
               public void mouseClicked(MouseEvent e) {                  
                  move_N.setLocation(0, 0);  //top side
                 move_S.setLocation(0, 0); //botton side
                 move_E.setLocation(0, 0); //right side
                 move_W.setLocation(0, 0); //left side
                 move_S.setVisible(false);
                  move_E.setVisible(false);
                  move_W.setVisible(false);
                  Virus.setLocation(Virus.getX(), Virus.getY()-95);
                  Virus.setVisible(true);
                  return;
               }
            });      
         }
     
   }
   
   private void initialize() {      
     
      move_N = new JPanel();
      //Setting code skip

      move_E = new JPanel();
      //Setting code skip

      move_W = new JPanel();
      //Setting code skip

      move_S = new JPanel();      
      //Setting code skip
     
      Virus = new JPanel();
      //Setting code skip
     Virus.addMouseListener(new MouseAdapter() {        
         public void mouseClicked(MouseEvent arg0) {            
               GP.play();
               GP.moveEvent();
         }
      });
     
               
   }
}
7  Game Development / Newbie & Debugging Questions / Re: Slick-Util using any charset? korean language font not available on: 2012-10-27 02:02:05
1.) It is better to use "BitmapFonts" which are called "AngelCodeFont" in Slick, rather than TrueTypeFont like here.

2.) You need to specify a .ttf file, which has a korean charset.
In this code:
1  
2  
Font awtFont = new Font("Times New Roman", Font.BOLD, 24);
   font = new TrueTypeFont(awtFont, false);

I'm not sure Times New Roman has korean, therefore choose a font which has.
For example "Batang"

same with this:
1  
2  
InputStream inputStream = ResourceLoader.getResourceAsStream("myfont.ttf");
Font awtFont2 = Font.createFont(Font.TRUETYPE_FONT, inputStream);

if you do this, the myfont.ttf must have korean characters.

Thank you, but did not end.

Still Hangul (Korean language), it does not output.
Microsoft made ​​TrueType Font Hangul output did not
You know, Batang or Gulim.
And could not find the .ttf files  Batang but .ttc files, find and use.
However, did not.

what i do?
8  Game Development / Newbie & Debugging Questions / Slick-Util using any charset? korean language font not available on: 2012-10-26 12:08:06
Hi! I'm is programmers dreaming of Korea a student. Please english is not very good because I need you to understand.

Korea from the slick-Util font I used, but the character does not come only question mark output for whatever reason?

And English are fine.

what reason? please tell me!

i Use code.
http://lwjgl.org/wiki/index.php?title=Slick-Util_Library_-_Part_3_-_TrueType_Fonts_for_LWJGL
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.

CogWheelz (15 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!