Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (701)
Games in Android Showcase (203)
games submitted by our members
Games in WIP (774)
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] 2 3 ... 10
1  Games Center / WIP games, tools & toy projects / Re: AnyaBASIC - A Toy Programming Language made in Java on: 2016-05-17 14:49:50
Updated to 0.5.1

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  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
Changelog:

0.1.0 (03-08-16)
Initial release.

04-04-16
* Ditched the old line based-interpreter
* Added interfaces for AST
* Recoded the parser
* Added AST

04-05-16
* re-implemented while:loop
* one statement per block only

04-06-16
* nested AST.  Main AST ->while :: while AST -> blockAST
* nested loops
* IF-ELSE construct
* REPEAT loop
* FOR loop
* Support for single line IF-ELSE, FOR and REPEAT statements

04-07-16
* Single variable Functions
* Multi variable Functions
* User defined Sub/Function ( can only be called as a statement and parameters are not working yet )

04-08-16
* Java2D graphics backend
* OpenGL graphics backend 'cuz setcolor() refused to work in Java2D
* Graphics primitives
* Keyboard support

04-10-16
* Refactored code
* Graphics Print
* Graphics Image
* Timer

04-11-16
* format(string, number) function
* User defined functions as part of an expression
* Function parameters

04-12-16
* String variables
* String concatenation
* String comparisons
* Arrays(both definition, assignment and access)
* Swap function

04-13-16
* NOT, AND, OR
* windowClosed
* New syntax for DrawImage
* DrawTransformedImage

04-14-16
* Documentation
* New syntax for DrawLine

0.2.0 04-15-16
* Comments
* Fixed the array[multi-expression] bug

04-16-16
* GetSubImage()
* int() cast
* BoxIntersects()
* CircleIntersects()
* SizeOf()

04-17-16
* Better error reporting

04-18-16
* Break statemment

04-19-16
* Structs

04-20-16
* Array of Structs
* VAR so that definition and assignment is properly delineated for safety
* Better runtime error handling

0.3.0 04-21-16
* Cleaned up how Functions are handled (Definition, Execution and Expression)
* Boolean Conditions now support parentheses
* Better runtime error handling

04-21-16
* Cleaned up how Functions are handled (Definition, Execution and Expression)
* Boolean Conditions now support parentheses
* Input statement

04-22-16
* var max = 10    var array[max]  support
* SetBlendMode()  for glowing sprites
* DrawFancyLine()
* Free()
* DrawScrolledImage()
* SubString()
* ValAscii()

04-27-16 (got a bit lazy...  LOL)
* 2D array support for both vars and user types
* sizeOf(arrayName, dimension)
* Function params are local now.

04-28-16(0.4.3)
* StringLength(stringname)
* Screen() can have an extra 3rd argument to set vsynch(1 - On, 0 - off)
* ScreenFlip() can have a single param to set synch value(60 if absent)
* SoundInit(), SoundPlay(), SoundPause(), SoundStop()

05-05-16
* val()
* isDigit()
* isLetter()
* lowerCase()
* upperCase()

05-10-16
* Functions as paramenters and arguments
* functions can now return a Type, an Array, or an Array of Types.
* split(string) function
* GFX and Sound contexts are destroyed when there'
s a runtime error.

05-15-16(0.5.1)
* Associative arrays Map< String, value >
* ContainsKey(mapName, keyName)
2  Games Center / WIP games, tools & toy projects / Re: AnyaBASIC - A Toy Programming Language made in Java on: 2016-04-16 02:07:05
There's a chm and html programming guide in the docs section.  There are a few samples too in the samples folder.

Don't expect much from this though.  I have like a total of 3 weeks working on this.  Hahaha!

It could be used to make opengl rendered games though. Smiley
3  Games Center / WIP games, tools & toy projects / AnyaBASIC - A Toy Programming Language made in Java on: 2016-04-15 13:32:40
AnyaBASIC 0.5.1

"The little toy language that could."




AnyaBASIC is a portable Interpreted Programming Language made in Java and out of
boredom.
It has a syntax similar to BASIC with a bit of C and PASCAL thrown in.

While I consider this language a "Toy Language", it evolved into something that's
capable of doing something more(games, graphics, etc).  
It's also a language whose keywords are in English so it should be a good language
to use for teaching kids how to program.

Release 0.5.1
(Binary and Source)
http://rel.phatcode.net/junk.php?id=157


Uses LWJGL + PNGDecoder as graphics backends.

Not sure if this type of project qualifies as a "Game" since it's a Programming Language. You can, however, you can make games with it.  Smiley

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  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
Changelog:

0.1.0 (03-08-16)
Initial release.

04-04-16
* Ditched the old line based-interpreter
* Added interfaces for AST
* Recoded the parser
* Added AST

04-05-16
* re-implemented while:loop
* one statement per block only

04-06-16
* nested AST.  Main AST ->while :: while AST -> blockAST
* nested loops
* IF-ELSE construct
* REPEAT loop
* FOR loop
* Support for single line IF-ELSE, FOR and REPEAT statements

04-07-16
* Single variable Functions
* Multi variable Functions
* User defined Sub/Function ( can only be called as a statement and parameters are not working yet )

04-08-16
* Java2D graphics backend
* OpenGL graphics backend 'cuz setcolor() refused to work in Java2D
* Graphics primitives
* Keyboard support

04-10-16
* Refactored code
* Graphics Print
* Graphics Image
* Timer

04-11-16
* format(string, number) function
* User defined functions as part of an expression
* Function parameters

04-12-16
* String variables
* String concatenation
* String comparisons
* Arrays(both definition, assignment and access)
* Swap function

04-13-16
* NOT, AND, OR
* windowClosed
* New syntax for DrawImage
* DrawTransformedImage

04-14-16
* Documentation
* New syntax for DrawLine

0.2.0 04-15-16
* Comments
* Fixed the array[multi-expression] bug

04-16-16
* GetSubImage()
* int() cast
* BoxIntersects()
* CircleIntersects()
* SizeOf()

04-17-16
* Better error reporting

04-18-16
* Break statement

04-19-16
* Structs

04-20-16
* Array of Structs
* VAR so that definition and assignment is properly delineated for safety
* Better runtime error handling

0.3.0 04-21-16
* Cleaned up how Functions are handled (Definition, Execution and Expression)
* Boolean Conditions now support parentheses
* Better runtime error handling

04-21-16
* Cleaned up how Functions are handled (Definition, Execution and Expression)
* Boolean Conditions now support parentheses
* Input statement

04-22-16
* var max = 10    var array[max]  support
* SetBlendMode()  for glowing sprites
* DrawFancyLine()
* Free()
* DrawScrolledImage()
* SubString()
* ValAscii()

04-27-16 (got a bit lazy...  LOL)
* 2D array support for both vars and user types
* sizeOf(arrayName, dimension)
* Function params are local now.

04-28-16(0.4.3)
* StringLength(stringname)
* Screen() can have an extra 3rd argument to set vsynch(1 - On, 0 - off)
* ScreenFlip() can have a single param to set synch value(60 if absent)
* SoundInit(), SoundPlay(), SoundPause(), SoundStop()

05-05-16
* val()
* isDigit()
* isLetter()
* lowerCase()
* upperCase()

05-10-16
* Functions as paramenters and arguments
* functions can now return a Type, an Array, or an Array of Types.
* split(string) function
* GFX and Sound contexts are destroyed when there'
s a runtime error.

05-15-16(0.5.1)
* Associative arrays Map< String, value >
* ContainsKey(mapName, keyName)
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-03-25 16:20:00
Not really game related but I added a nested AST(Abstract Syntax Tree) to this toy language.

http://rel.phatcode.net/junk.php?id=156




 Grin
5  Game Development / Newbie & Debugging Questions / Re: Ways(or Best Way) of Declaring Orthographic Projection on: 2016-02-11 15:04:36
Why not use some sort of a virtual screen?  ie, 640x480 then just scale and add letterboxes to keep aspect ratio?
6  Game Development / Game Mechanics / Re: Calculating dFdx and dFdy of texture coordinates in 2D manually on: 2016-02-11 14:54:42
If it's just affine mapping(and if you can reaf basic), I wrote something about that 10 or 15 years ago:

http://rel.phatcode.net/mytutes/3dtutes/chapter3/chapter3.htm

Scroll down a bit for the triangle texturing part(split in two like Riven said). 
7  Game Development / Newbie & Debugging Questions / Re: [LWJGL] 3d World co-ordinates to 2d screen co-ordinates on: 2016-01-26 05:18:09
"Projection"
8  Games Center / WIP games, tools & toy projects / Re: Synthclipse - GLSL demo development environment based on Eclipse IDE. on: 2014-08-05 11:06:49
That looks really awesome!
9  Discussions / Miscellaneous Topics / Re: Does Visual C++ run on multiple platforms? on: 2014-08-05 10:54:40
You can use Visual Studio as an IDE for GCC.  You have to use makefiles(and I used MSVS 2k8 so I'm not sure if this works on newer versions).  With makefiles, you can set your arch targets(not that I'm good with makefiles).

I really don't like to use MSVS as an IDE(except for when coding in C#). Why not use Eclipse CDT?  I personally use CodeLite with Mingw though(Lightweight and cross-platform).
10  Game Development / Newbie & Debugging Questions / Re: Simple Jumping Physics on: 2014-07-31 14:56:15
This might help.

http://www.java-gaming.org/topics/basic-2d-tile-collision/29657/view.html


Good luck with your game. Smiley
11  Game Development / Game Mechanics / Re: 2D Rigid Body Rope Physics on: 2014-07-11 12:56:53
Not sure if this model would work in your case but I'm posting this as this is what i used when I made one:

http://freespace.virgin.net/hugo.elias/models/m_string.htm

12  Discussions / General Discussions / Re: [opengl] Why are LWJGL enums as integers? on: 2014-07-11 05:33:27
AFAIK, you can't bitwise "|" enums in Java.  That's probably the reason why they used ints in favor of enums.
13  Games Center / Android Showcase / [Android] Crappy Fish on: 2014-06-24 07:45:40
Been really slacking off since we got hit by typhoon "Haiyan" here.  Lost my coding laptop and 2 desktops. LOL

I made this as per request from my daughter and also to bring me back up to speed in programming again. Smiley

Missed the whole "Flappy Bird Craze" due to the typhoon so I made one myself. 


Screens:







Apk + Source:

http://rel.phatcode.net/junk.php?id=150

Basically made this in less than 15 hours of coding so code is a little messy(except for the usual reused codes).

Enjoy!
14  Game Development / Newbie & Debugging Questions / Re: Calculating the new x position on: 2013-11-03 02:36:45
I'm not so sure but do you mean "projection"?

If that's the case, divide the other 2 components by z(or distance).

Here's how it works:

www.rel.phatcode.net/mytutes/3dtutes/chapter1/chapter1.htm

A more in-depth explanation written my a friend of mine:

www.ocf.berkeley.edu/~horie/persp.txt
15  Discussions / General Discussions / Re: Beginning 3D: using libGDX or LWJGL? on: 2013-11-01 04:12:45
The first steps are alway the hardest.  Once you get the hang of it though, it's gonna be second nature.
16  Game Development / Newbie & Debugging Questions / Re: Rotating a point around a center point algorithm on: 2013-10-25 01:44:09
How would I apply this to three d? Say I have point xyz wanting to rotated around point pxpypz?


www.rel.phatcode.net/mytutes/3dtutes/chapter2/chapter2.htm

But I'd rather you use matrices:

www.rel.phatcode.net/mytutes/3dtutes/chapter4/chapter4.htm
17  Game Development / Newbie & Debugging Questions / Re: Using ArrayList<> adding and removing objects on: 2013-10-22 03:07:22
Why "remove" when you can "reuse"?  Much easier and faster too.
18  Game Development / Newbie & Debugging Questions / Re: Do vector math with MTV [libGDX] on: 2013-10-19 14:26:17
You can try what I did here:
www.back2basic.phatcode.net/?Issue_%231:2D_Convex_Polygon_Collision_using_SAT
19  Discussions / Miscellaneous Topics / Re: How can I get full CPU usage with C? on: 2013-10-17 15:59:13
Thanks again princec and Riven. I'm the only one in the class to complete the problem. My lecturer actually said that it is not possible to get full cpu usage, the cpu moves it among cores, but I said I've seen a thread on the net that showed a program that actually did that. So she asked me to write a program. Writing this program in a computer in the lab has hanged that cpu and we've to restart it to get it working again and I won in this case. And today, I got the full marks in the lab session. I'm called by the HOD and our HOD asked me the details and I showed her my GL Tutorial Series. She made some good points from that and I'm going to give a tutorial lecture the next monday in the college.

Thanks again.

Which only means, that if you knew Eintein's age at the time of his death, you are likely a bad-ass coder. Smiley
20  Game Development / Newbie & Debugging Questions / Re: Packaging files inside jars on: 2013-10-14 01:52:31
This is the dictionary file I use for Eclipse, should be meet your needs fairly well.

Thanks!  This should make my life easier.  Btw, what do you mean by "dictionary I use for eclipse" and for what purpose.
21  Game Development / Newbie & Debugging Questions / Re: Packaging files inside jars on: 2013-10-13 12:05:19
Thanks!


Now, if I could only get my hands on that dictionary.
22  Game Development / Newbie & Debugging Questions / Re: Packaging files inside jars on: 2013-10-13 09:27:18
You can acquire a stream to any resource in the JAR, it doesn't matter what kind of data is contained in that resource. You will need to decorate\adapt the stream appropriately though if you're going to read text from it.

Do I could say, add a /resource folder under /src and load it like I load gfx?

Can't code right now to test it. Sad
23  Game Development / Newbie & Debugging Questions / Packaging files inside jars on: 2013-10-13 05:59:53
Hi, I got some free time yesterday and coded this:

www.http://www.rel.phatcode.net/Temp/HangFighter.zip

It's a game I prototyped trying to combine hangman and space  invaders.

Kinda bad looking but I like the idea.  Nice game to port to droid.

How do I pack other files inside the jar when I export it?  For graphics I just put them inside the src/gfx/ folder.  Can I do that say with text files and  audio?

Also, anyone knows of a royalty free dictionary I could read words from?  My current build has 1 single word.

Thanks!
24  Discussions / Miscellaneous Topics / Re: What would you like to see in Java? on: 2013-10-09 00:50:17
I want a pink unicorn that can fly and make me breakfast in bed every morning.

Oh wait, I'm not getting that either.

This is the millionth thread I've seen where people day-dream about what they want in Java. Suck it up and/or learn a different for a change!

Well said.

Learn more than one language so that your choices are not limited.

25  Discussions / General Discussions / Re: Other Operating Systems on: 2013-10-07 15:05:05
Linux desktops - well, Mint at least - seem roughly on a par with XP. Trouble is Windows 7 moved the game along quite a way. Good thing Windows 8 screwed it all back up again Cheesy

Cas Smiley

Damn right. At least on the desktop.  Ms screwed the desktop version of w8.

I just bought my wife a lumia on win 8 and I thought it rocks.
26  Discussions / Miscellaneous Topics / Re: Me goofing around. on: 2013-10-06 15:14:47
Nice! @Roquen.

Used to delve into these things when democoding was big.

www.rel.phatcode.net/junk.php?id=34

The orbit algo to do the rings was from an article I found that applies the same coloring to the mandelbrot.  I just applied it to my julia animator out of curiosity and was surprised it looked fantastic.
27  Discussions / Miscellaneous Topics / Re: What would you like to see in Java? on: 2013-10-06 15:08:33
+1 for operator overloading.

Also ability to allocate temporary objects to the stack.
28  Game Development / Newbie & Debugging Questions / Re: how to split/get images from spritesheet with non-uniform sprite dimensions on: 2013-10-03 14:58:46
I just use my own packer
www.rel.phatcode.net/junk.php?id=106

Then load the sprite via a loader I made. 
Loader is in the /src folder.

www.rel.phatcode.net/junk.php?id=139
29  Game Development / Newbie & Debugging Questions / Re: 3D sphere texturing and manipulation. -Using LWJGL and Slick Util on: 2013-10-01 23:51:52
It's a supershape morpher I made from the equations developed by Paul Bourke.

www.paulbourke.net/geometry/


Basically, I already had a working tesselator for quadric shapes so I only have to enter the equations, do some interpolation to its parameters.

Bas files are BASIC code(freebasic.net). One of the languages I code for fun. Smiley

I'd be happy to walk you through the code if you want. Smiley
30  Games Center / WIP games, tools & toy projects / Re: Paint.JAVA - Attempt at cloning Paint.NET (with cross-platform support) on: 2013-10-01 07:58:52
Looks great!  Will this have a windows version?
Pages: [1] 2 3 ... 10
 
ral0r2 (210 views)
2016-11-23 16:08:26

ClaasJG (351 views)
2016-11-10 17:36:32

CoffeeChemist (443 views)
2016-11-05 00:46:53

jay4842 (496 views)
2016-11-01 19:04:52

theagentd (505 views)
2016-10-24 17:51:53

theagentd (494 views)
2016-10-24 17:50:08

theagentd (451 views)
2016-10-24 17:43:15

CommanderKeith (449 views)
2016-10-22 15:22:05

Roquen (421 views)
2016-10-22 01:57:43

Roquen (309 views)
2016-10-17 12:09:13
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
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!