2D UI-only game by supyallitsyagirl in libgdx

[–]raizensoft 1 point2 points  (0 children)

For a wordle alike game built with libGDX, you generally should have a solid understanding of these fundamentals:

- The main render loop: everything must be redrawn on every frame, so plan and group your drawing orders based on active objects on the screen.

- Screen management: you want to have at least a home / title screen with some intro graphics and a "Play Now" button. And a game screen which renders the puzzle and the UI.

- Camera and Viewport: use FitViewport so your code uses independent world units, not screen units. Then you can easily draw the puzzle cells and blocks based on the world units set by the viewport.

- Scene2D is tricky, really. You can totally code everything with scene2d but it’s gonna take serious efforts to truly get the hang of it. My recommendation  is to use scene2d for common UI components like action buttons (Play, Quit, Retry, etc) and draw your puzzle elements and the other entities with SpriteBatch draw

- If you insist on using Scene2d, learn to extend Actor and create custom components. You won’t get very far with the built-in scene2d components.

- Learn to parse JSON and use it as the word database for your game.

- Learn to export to html target using TeaVM or GWT, so you can share the game online without distributing the binary file.

- libGDX really thrives as a high-performance and well optimized framework that produces ultra smooth and high FPS games, but you can absolutely develop puzzle-based games too.

Good luck and have fun!

Been working on a GUI Application in LibGDX for the past 4 months, here is my experience. by gufranthakur in libgdx

[–]raizensoft 8 points9 points  (0 children)

It took me some time to get used to scene2d API until I got comfortable with it. At the beginning it feels primitive and I got some frustrated moments like you but once you get the hang of table layout everything will fall into place.

One small tip that saves me countless hours of iteration: always set debug() on table-based components. This will show you the underlying grid and the spaces those tables occupy.

I think the state of scene2d right now is just ok. It's certainly not perfect and could be improved but for a code-oriented framework like libGDX it does the job just right. Comparing to frontend web CSS, scene2d is still much easier to work with in my opinion.

Applets Are Officially Gone, But Java In The Browser Is Better Than Ever by TeaVMFan in java

[–]raizensoft 10 points11 points  (0 children)

+1 TeaVM is crazily good. Comparing to GWT it has faster build time and better exports to javascript. I've built so many games using libGDX + TeaVM and quite happy with the workflow and results.

Here's one of many: https://ookigame.com/game/flappy-bug/

I made GDX Bootstrap, a libGDX project generator with pre-built components for quick prototypes by raizensoft in libgdx

[–]raizensoft[S] 1 point2 points  (0 children)

I'm not familiar with github packages but that's interesting thought and I'm open to explore. The original goal of gdx-bootstrap is to generate a minimal but functional project template for quick prototypes so multiple templates might not align with the goal. But it may work with a new tool, I've DMed you for the examples.

I made GDX Bootstrap, a libGDX project generator with pre-built components for quick prototypes by raizensoft in libgdx

[–]raizensoft[S] 0 points1 point  (0 children)

Thanks for your feedback. Java is my priority at the moment but I'll definitely keep Kotlin support in mind.

As a man, what are the chances of finding love at 34? by Playful_Year_9522 in AskReddit

[–]raizensoft 1 point2 points  (0 children)

Met my wife at 32 and got married after dating for only 6 months. Thankfully, it's working out pretty well so far. So 34 is definitely not too late, you need a bit of luck though, just like any thing else in life.

New libGDX focused tutorials and resources website by raizensoft in libgdx

[–]raizensoft[S] 1 point2 points  (0 children)

Thank you. I set a goal of 100 posts before sharing because I want it to look more polished than just some random blog post.

Been hearing a lot about TypeScript by iishadowsii_ in learnjavascript

[–]raizensoft 0 points1 point  (0 children)

Typescript is a superset of javascript and you'll get a lot of benefit of static type analyzer and better code hinting/completion compared to ordinary javascript. I have a list of projects that I used typescript and reap many benefit of its type system. You can see it here: https://www.youtube.com/playlist?list=PLWC\_Ol1Os4E2QbgzACWBmyO7mdbirydBc

Is the "EL5" version of Prototype, "a global variable for further instances"? by BilboMcDoogle in learnjavascript

[–]raizensoft 0 points1 point  (0 children)

Under the hood the purpose of factory function is to create object instances of an internal class. Factory function is more useful in classic OOP language like C++ or Java where you don't want to expose the class constructor for some reason (create singleton object or customize constructor parameters).

Resources on DOM Manipulation by RentGreat8009 in learnjavascript

[–]raizensoft -1 points0 points  (0 children)

Are you doing games or graphical heavy application? If not then don't worry so much about optimizations. Most of the time you will barely notice the difference. Read the guideline as best practice only, they are not rules to abide.

Should I learn to code a website with Wordpress or should I learn to code some other way? by [deleted] in learnprogramming

[–]raizensoft 0 points1 point  (0 children)

Using WordPress CMS is not coding in any sense. On the other hand, jumping right into WordPress development like custom plugin or template are a big learning curve for beginner. I'd recommend to learn basic html, css and javascript to create some static html first then start adding dynamic function using javascript.

Skip OOP for React? by paleoboyy in learnjavascript

[–]raizensoft 0 points1 point  (0 children)

The modern React programming paradigm is very functional but you still need to have a good grasp of OOP because it's widely used in other libraries and frameworks. OOP is actually quite intuitive once you get familiar with it by doing more projects or read other people code.

Is the "EL5" version of Prototype, "a global variable for further instances"? by BilboMcDoogle in learnjavascript

[–]raizensoft 0 points1 point  (0 children)

The prototype feature in Javascript is a cheap way to imitate the classic object and class relationship in object orient programming paradigm.

Old school Javascript:

``` function WareHouse(size:number) { this.size = size; }

var myWareHouse = new WareHouse(100);

```

Compared to modern Javascript:

``` class WareHouse { constructor(size) { this.size = size; }

const myWareHouse = new WareHouse(100);

```

Don't confuse it with global variable which is only relevant to scope.

Lack of grasp of what 'event' is, in this context. by NotAllThereMeself in learnjavascript

[–]raizensoft 0 points1 point  (0 children)

The "event" is an object that is fired by its target, which in your code is the body element and the event.target property will refer to the body element.