Examples from the playground

Its not really supposed to be a game, just the system for making one.

Araknoid in an Hour (A and D are controls on Qwerty)

Need to figure out a way to control the energy in the entire system, but for an timed hour practice its pretty good.

6 Likes

I like the paddle physics movement!

Simple frog game. Try to cross the road with the keys w a d x

frog game | Babylon.js Playground (babylonjs.com)

good luck, little frog! :slight_smile:

4 Likes

Ha that’s awesome, I was gonna do frogger next but looks like you beat me to it.

Maybe ill do like Tapper or Galaga something :slight_smile:

3 Likes

Just did this, now after talking about it this morning XD…
Time to add behaviors :slight_smile:
It uses thinInstances and is parsing a sprite sheet to make the meshes and animations. Pretty fun ^_^.

Was kinda thinking of doing a live stream coding thingy and go over the process of doing all this stuff.
Probably would be of some use to people, just not sure if anyone would be interested XD.

UPDATE

Fixed it up a little bit.
Arrows to control the shot, space to fire.

9 Likes

Pryme8, your approach is promising! Well done. I look forward to the further development!

image

Fog game - this time controlled by a neural network. The color of the cars signals the degree of danger for the frog.

black: (0-33%) secure,
red: (33-66%) caution
blue: (66-100%) dangerous (wait, don’t move)

frog game - neuronal network driven | Babylon.js Playground (babylonjs.com)

Move speed changed:
frog game - neuronal network driven | Babylon.js Playground (babylonjs.com)

The logic is still flawed, but suitable for studying neural networks.

PS: after a while of failures, the neural network decides that all cars are dangerous and the frog stops on the spot! :smiley:

Everything in this is moving super fast is that intentional? Also I get a scene error on load.

@Pryme8

This is amazing! Glad you still working on this

@Pryme8 to get your example to run locally on my machine, I had to install Typescript. It worked fine, only compiling it slows down my creative flow. I had the code converted to pure javascript by an online tool.

Docu about how setup Typescript

What is missing in the description is npm install -g typescript to install tsc.

Here is the tsc to js converter:
TypeScript to plain JavaScript (transform.tools)

And this is your work in pure js:
Sprites to Voxel Mesh | Babylon.js Playground (babylonjs.com)

@CodingCrusader you no like Typescript? :point_right: :point_left: (@Deltakosh hahah sound familiar?) I used to be the same way till the Great Kosh showed me the error of my ways.

Haha fun, yeah I was going to end up porting it over to a local git at some point I think so I can sperate the code base now that its getting to be a over a thousands lines.

I got the the point that the Galaga ships can now abduct your player ship, but now to add more stuff like different level spawns, UI and just general game cycle stuff would have to wait for it being pulled off a PG

2 Likes

Just how do I get to ‘Level 2’? :grin: :grin:
For someone claiming not to do ‘games’ this already pretty much looks like a game to me.
There’s surely enough of a base for someone to turn this into a game (and get the glory :star_struck: :rofl:) I remember in my young days, I used to put in a $1 coin on the arcade game to get 3 lifes. May be you should try do the same :money_mouth_face: :laughing:

image
Haha for sure, well now you have a template to do that :slight_smile:

1 Like

Haha! I even wrote about my personal journey to typescript:)

4 Likes

That’s nice. It gives a good insight on the advantages of TS over JS with a true case study. It’s just sad that the screenshots seem to have lost their link. May be you could quickly restore them?

I just love this thread. I’m so happy it has been revived :zombie: Thanks for that @Deltakosh
If you don’t know what to do on a rainy day :cloud_with_rain: just come here and take a breath :parasol_on_ground: … and gather some fresh ideas for your next project :clipboard: :clipboard:

1 Like

Oh gosh this site is long dead:) I keep it online for the sake of moments like this one

2 Likes

Article Written in 2014 XD ohhh lord.
No way its been that long… Holy crap, I need to get out more.

2 Likes

As long as you continue to shave :bearded_person: :older_man: in the morning, it won’t show…eventually :grin: Just tryin’ to convince myself here :laughing:

1 Like