Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (867)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  A noob's project  (Read 5357 times)
0 Members and 1 Guest are viewing this topic.
Offline DudeJericho

Junior Newbie


« Posted 2011-04-03 10:50:33 »

Hello all, I know that despite being my first post I'm asking for something like this, but I figured I might as well cut to the chase.

I want to make a Kanji game, for those who don't know Kanji are Japanese characters that were borrowed from the Chinese many years ago, but enough about that, basically in this game I want to teach the user how to do the correct stroke order for each character.
I'll be completely honest, I suck at programming so this project is like a learn as I go along kind of thing. So I figured I would do something quite simple, I first show the user through images or something how to actually draw the character, then the user would have to match up certain dots or points (which would be then shown corrected by a line i.e. "stroke") in the correct order. If they match up the wrong points, then instead of say a green line (as in correct) it would be a red line and there would be a message or something at the side saying they messed up along with a redo button.
Anyway I think most of you get the idea, I would like to hear what you think of this and if any of you have any suggestions in terms of implementing since I'm finding it hard how to do so. I'm planning to create at least 10 kanji for this game, so my guess is that I need to create something that will let me use co-ordinates for the points on the window. I'm pretty sure I'll be using Paint quite a bit and mouseListener.
Any suggestions or advice (maybe things I should look up on?) would be greatly appreciated. Thanks.
Offline Kurten

Junior Devvie

Medals: 3
Exp: 3 years


« Reply #1 - Posted 2011-04-03 11:18:05 »

Nice idea for a game, im afraid i can't help you program this game since it's a bit over my level, but i strongly like the idea!

Offline DudeJericho

Junior Newbie


« Reply #2 - Posted 2011-04-03 17:43:28 »

Thanks for the encouragement クルテンさん Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DudeJericho

Junior Newbie


« Reply #3 - Posted 2011-04-05 21:51:49 »

Ok, after two whole days of research I have finally come across something, the MouseMotionListener interface, I believe I may be able to use this to be able to let a user draw on a panel using the mouse instead of that "points" idea which seems like could get abit messy and tricky, however I'm still not sure how I can use it for capturing the mouse cursor movement/location so for example if they started at a certain point and drew to another certain point that information would need to be captured and assesed seeing if they drew the correct stroke. Just writing this down makes it seem like it would be complicated Tongue
Any help/advice at all? Anyone? I'm not asking anyone to write anything for me, just want their opinions/ideas or areas they think I should look into..
Offline aazimon
« Reply #4 - Posted 2011-04-06 03:00:46 »

Have your component that will be drawn on, be the listener of the MouseMotion. See the tutorial here In the mouseDragged method, the MouseEvent has the x and y coordinates, and simple use those to draw on the screen.
Offline DudeJericho

Junior Newbie


« Reply #5 - Posted 2011-04-08 23:07:44 »

Thanks for the reply.
Drawing on the window is not the problem really, its somehow having each character assigned certain co-ordinates that the user needs to cover to do the correct stroke, like it would be an array or co-ordinates for one stroke and if the co-ordinates of that array how been looped through meaning the user has dragged the mouse over them, then another array of co-ordinates would be available for them to draw over, but I don't think that will work. This is quite a hard program for me to do (especially as a newbie) which is why I'm trying to brainstorm abit here..
Offline philfrei
« Reply #6 - Posted 2011-04-09 00:16:39 »

OK, here is an idea.

Suppose you broke up the area to be covered into component polygons. The line that is drawn can be tested against the array of polygons, using a polygon's "contains" function. The draw act is successful if:

1) the mouse's location proceeds through all the polygons, in correct order;
2) the mouse's location never goes outside of any of the polygons, or (alternatively, if the polygon array is not perfectly contiguous) if it does not stray into a border(offlimits) polygon.

music and music apps:
Offline DudeJericho

Junior Newbie


« Reply #7 - Posted 2011-04-09 06:36:10 »

That sounds good! I'll mess around with that abit. Thank you!  Smiley
Pages: [1]
  ignore  |  Print  

Riven (397 views)
2019-09-04 15:33:17

hadezbladez (5280 views)
2018-11-16 13:46:03

hadezbladez (2204 views)
2018-11-16 13:41:33

hadezbladez (5544 views)
2018-11-16 13:35:35

hadezbladez (1150 views)
2018-11-16 13:32:03

EgonOlsen (4585 views)
2018-06-10 19:43:48

EgonOlsen (5462 views)
2018-06-10 19:43:44

EgonOlsen (3119 views)
2018-06-10 19:43:20

DesertCoockie (4016 views)
2018-05-13 18:23:11

nelsongames (4708 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 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‑
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!