Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 3 4 [5]
  ignore  |  Print  
  Age is just a number....  (Read 11642 times)
0 Members and 1 Guest are viewing this topic.
Offline Sickan

Senior Member


Medals: 8



« Reply #120 - Posted 2012-11-13 21:18:55 »

I don't see any problem in writing a compiler that compiles some BASIC dialect to Java bytecode, so I guess it's a demand question.

Cheers! Cheesy

I'm just here to learn.
Offline actual

JGO Coder


Medals: 24



« Reply #121 - Posted 2012-11-13 22:06:47 »

I don't see any problem in writing a compiler that compiles some BASIC dialect to Java bytecode, so I guess it's a demand question.

Cheers! Cheesy

Something similar has been done. Baysick is a DSL in Scala(which compiles to Java bytecode) that allows you to write in BASIC (minus a bit of boilerplate at the top and bottom. Below is an example from the page.
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  
object Lunar extends Baysick {
  def main(args:Array[String]) = {
    10 PRINT "Welcome to Baysick Lunar Lander v0.9"
    20 LET ('dist := 100)
    30 LET ('
v := 1)
    40 LET ('fuel := 1000)
    50 LET ('
mass := 1000)

    60 PRINT "You are drifting towards the moon."

    70 PRINT "You must decide how much fuel to burn."
    80 PRINT "To accelerate enter a positive number"
    90 PRINT "To decelerate a negative"

    100 PRINT "Distance " % 'dist % "km, " % "Velocity " % 'v % "km/s, " % "Fuel " % 'fuel
    110 INPUT '
burn
    120 IF ABS('burn) <= 'fuel THEN 150
    130 PRINT "You don't have that much fuel"

    140 GOTO 100
    150 LET ('v := 'v + 'burn * 10 / ('fuel + 'mass))
    160 LET ('
fuel := 'fuel - ABS('burn))
    170 LET ('dist := 'dist - 'v)
    180 IF '
dist > 0 THEN 100
    190 PRINT "You have hit the surface"
    200 IF 'v < 3 THEN 240
    210 PRINT "Hit surface too fast (" % '
v % ")km/s"
    220 PRINT "You Crashed!"

    230 GOTO 250
    240 PRINT "Well done"

    250 END

    RUN
  }
}
Online matheus23

JGO Kernel


Medals: 98
Projects: 3


You think about my Avatar right now!


« Reply #122 - Posted 2012-11-13 22:14:07 »

[snip because of length]

I LOVE MACROS!

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Sickan

Senior Member


Medals: 8



« Reply #123 - Posted 2012-11-13 22:34:49 »

Oh, the gotos, they are lovely.

I'm just here to learn.
Offline sproingie
« Reply #124 - Posted 2012-11-13 23:22:49 »


Looks like it predates macros -- it's a straight up old-school scala DSL.  Scala macros can't create new syntax anyway, they have to work from already parsed expressions.
Offline ReBirth
« Reply #125 - Posted 2012-11-14 02:58:45 »

Oh, the gotos, they are lovely.
Yeah painful scroll. Lovely.

Offline philfrei
« Reply #126 - Posted 2012-11-14 04:45:11 »

55 here.
Cool

At some point the whole age thing just becomes funny. What can I say, the alternative is what?

The quote about passage of time that Riven cited a while back, it is very much like what I recall reading in William James "Principles of Psychology" -- a great, readable, classic text from the beginning of the 20th century. Psychology, especially cognitive psychology, took a huge step backwards when Freud came on the scene shortly after that.

Yes, I programmed in FORTH. It was fun.

I think there was a chart with the oldest listed as 53. Someone is going to have to revise it. Ah, maybe I didn't fill out my age in the member form and that's why it didn't show up.

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline Nate

JGO Kernel


Medals: 129
Projects: 3
Exp: 14 years


Esoteric Software


« Reply #127 - Posted 2012-11-14 06:22:34 »

BASIC is the best language, ever.
I started with QBasic at 11 years old. Years later, my crowning achievement was a 3Dish fighting game. I made a few other terrible games, but learned a lot.

Offline Sickan

Senior Member


Medals: 8



« Reply #128 - Posted 2012-11-14 06:57:14 »

Scrolling up and down sure beats opening new classes every third minute to edit or view a method.

I'm just here to learn.
Offline ReBirth
« Reply #129 - Posted 2012-11-14 07:13:48 »

If your class's methods have comment, I just hover or F2.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Corvid

Senior Newbie


Projects: 1


/*do not read this code sober*/


« Reply #130 - Posted 2012-11-14 17:31:16 »

Hello, first post here.  I'm glad to see I'm not the only one in their thirties! (I just turned 30).  I can relate to the OP since I work in a school, and the other day a 13 year old asked me to help him out with his 3D GTA clone.  Kind of gave me a shock..

On the subject of BASIC, I started when I was 7 years old on the Spectrum 48k, writing text adventures and at one point I even attempted to make Desert Strike using redrawn font characters and loud beeps for explosions.. it wasn't particularly good.   

I really cut my teeth on the Amiga where I learned Amos and then C++, made a few little 2 player competitive games and an RTS. Amos was a great thing for getting people into coding, but it also gave birth to a lot of utter nonsense!

Learned Java at Uni and did a side scrolling shooter for my dissertation. Started working on a few OpenGL games when I left uni, but somehow the game coding interest just died away and I ended up spending my time getting experience of life itself. Got a job. Travelled. Climbed a lot of mountains, met girls, drank a lot of whisky. Then realised I was 30.

I ended up downloading an amiga emulator and playing some old games the other night.. which actually led me here since I fancied taking part in this year's 4K competition.  Wonder if it'll rekindle the flame?
Online Roquen
« Reply #131 - Posted 2012-11-14 17:33:49 »

FORTH is awesome.
Offline sproingie
« Reply #132 - Posted 2012-11-14 20:20:07 »

FORTH LOVE IF HONK THEN

(but actually I've always liked the PostScript dialect more than ANS)
Offline Cero
« Reply #133 - Posted 2012-11-14 23:44:39 »

BASIC is the best language, ever.
Years later, my crowning achievement was a 3Dish fighting game. I made a few other terrible games, but learned a lot.

Ah yes I remember you are a Street Fighter player n stuff; I always loved fighters too, but when you are eventually theoretically able to program those, you realize that its like 1000 sprites per character in good 2D fighters and 3d is just different work
even street fighter 2 has a lot of sprites
So I tried some stickman fighters too.

That knowledge just lets me appreciate fighter all the much more, the amount of art and code in those games, fast paced balanced action... its just beautiful - what other game genre requires skilled players to do something at one certain frame.

Offline masteryoom

JGO Coder


Medals: 5
Projects: 3


If you look closely, you might see it turning...


« Reply #134 - Posted 2012-11-29 09:33:53 »

I drink eye drops for breakfast.

EDIT: Riven, you should really put a laughing emoticon in the forum  Wink.

Smiley
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #135 - Posted 2012-11-29 22:28:43 »


Hahahaha I can't believe I didn't notice that Monty Python joke:
<a href="http://www.youtube.com/v/fUspLVStPbk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/fUspLVStPbk?version=3&amp;hl=en_US&amp;start=</a>

Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #136 - Posted 2012-12-06 13:04:30 »

16, but I've been into programming since I was 10 (starting ith some basic Lua) and I've been working with java for a little more than a year. I still have much to be desired to learn though :/

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline BoBear2681

JGO Coder


Medals: 18



« Reply #137 - Posted 2012-12-06 15:00:20 »

If your class's methods have comment, I just hover or F2.

But that's an IDE feature, not a language feature.  Someone could write an IDE-ish app for Basic (no doubt one actually exists) that has similar features for Basic.  Hover over a goto for preview of the code there, F3 to navigate there, etc.

I do feel that layers upon layers of abstraction, and projects with 50k classes just for the sake of modularization can be considered the Java equivalent of "spaghetti code."  Maybe not quite as bad as huge blocks of code with gotos, but similar in nature at least.
Offline luisoft

JGO Coder


Projects: 6


Java games rock!


« Reply #138 - Posted 2012-12-06 17:19:23 »

37 here! Started with a very old MSX Computer (Z80 Processor) with BASIC for MSX and also Z80 machine code! Good old times that will never come back again   Cry
Online matheus23

JGO Kernel


Medals: 98
Projects: 3


You think about my Avatar right now!


« Reply #139 - Posted 2012-12-06 17:52:45 »

37 here! Started with a very old MSX Computer (Z80 Processor) with BASIC for MSX and also Z80 machine code! Good old times that will never come back again   Cry

Either get you an TI-83+ Computer (Z80 CPU) or a gameboy (Z80 as well) Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline trvcic

Senior Newbie





« Reply #140 - Posted 2012-12-12 05:51:04 »

I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.

while(true) { be awesome; }
Offline Ultroman

JGO Knight


Medals: 24
Projects: 1


Snappin' at snizzes since '83


« Reply #141 - Posted 2012-12-12 15:27:18 »

I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.
That was my fault. Sorry. I was just pointing out, that I liked the fact that so many young people were concentrating on developing their skills, instead of binge-drinking and snorting crap. Then the guys assured me they were all still doing that...

- Jonas
Online matheus23

JGO Kernel


Medals: 98
Projects: 3


You think about my Avatar right now!


« Reply #142 - Posted 2012-12-12 15:58:51 »

I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.
That was my fault. Sorry. I was just pointing out, that I liked the fact that so many young people were concentrating on developing their skills, instead of binge-drinking and snorting crap. Then the guys assured me they were all still doing that...
I guess we're not as bad (or cracy? Can't find the word...) as you were. Not at all... If we were, we wouldn't sit here Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline tyeeeee1
« Reply #143 - Posted 2012-12-13 02:14:27 »

I'm 16, gonna be 17 on the 17th.
Pages: 1 ... 3 4 [5]
  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.

xsi3rr4x (54 views)
2014-04-15 18:08:23

BurntPizza (53 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (151 views)
2014-04-08 23:06:04

tom_mai78101 (246 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!