Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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  
  [Check out] Rekursive drawing  (Read 948 times)
0 Members and 1 Guest are viewing this topic.
Offline Danskeren

Senior Devvie


Projects: 1


oi?


« Posted 2005-05-05 09:22:44 »

I just made some things using rekursive drawing. It is amasing what you can do in an hour using these principles.

Take a look at those examples:

http://www.arraypainter.com/projects/shapemorpher/main.html

and

http://www.arraypainter.com/projects/blomst/main.html


Does any of you have an idea of what would be cool to make with user defined values like in "blomst"?

Offline BrainPain

Senior Newbie




Java games rock!


« Reply #1 - Posted 2005-05-12 03:33:19 »

the applets are not working on my workstation. it seems that some classes for my workstation are not avaiable. which java version is needed?

error message:
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  
java.lang.ClassNotFoundException: main.ShapeMorpherApplet.class
      at sun.applet.AppletClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.applet.AppletClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.applet.AppletClassLoader.loadCode(Unknown Source)
      at sun.applet.AppletPanel.createApplet(Unknown Source)
      at sun.plugin.AppletViewer.createApplet(Unknown Source)
      at sun.applet.AppletPanel.runLoader(Unknown Source)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.http.HttpClient.privilegedOpenServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
      at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
      at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
      at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at java.net.HttpURLConnection.getResponseCode(Unknown Source)
      at sun.applet.AppletClassLoader.getBytes(Unknown Source)
      at sun.applet.AppletClassLoader.access$100(Unknown Source)
      at sun.applet.AppletClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      ... 10 more
Offline Ask_Hjorth_Larsen

Junior Devvie




Java games rock!


« Reply #2 - Posted 2005-05-12 10:01:52 »

If you want ideas (I'm Danish too, by the way! But for the sake of the others I'll stick to English.),

what about some fractals? You could go for:

"Koch's snowflake curve" or the "Sierpinsky triangle" (many ways to generate this).

Koch's snowflae curve could be generated by first drawing a triangle.

Each side of the triangle will look like this:
1  
____

Now "iterate" a number of times. On each iteration, replace any straight line segment of the shape with
1  
_/\_

The triangle will then take shape of a star, its edge becoming more complex for every iteration.

In the limit, Koch's Snowflake curve encloses a finite area but has a boundary of infinite length!

Sierpinskis triangle can be generated as follows:
Start with a straight line segment.
Each iteration consists of replacing all straight line segments by this shape:
1  
\_/


User defined values could change those shapes. Try making them asymmetric and I bet hilarious results will emerge!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Mr.CodeIt (8 views)
2014-12-27 04:03:04

TheDudeFromCI (12 views)
2014-12-27 02:14:49

Mr.CodeIt (25 views)
2014-12-23 03:34:11

rwatson462 (56 views)
2014-12-15 09:26:44

Mr.CodeIt (46 views)
2014-12-14 19:50:38

BurntPizza (92 views)
2014-12-09 22:41:13

BurntPizza (113 views)
2014-12-08 04:46:31

JscottyBieshaar (83 views)
2014-12-05 12:39:02

SHC (94 views)
2014-12-03 16:27:13

CopyableCougar4 (102 views)
2014-11-29 21:32:03
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!