oliverbauer / libgdx-cubegame Goto Github PK
View Code? Open in Web Editor NEWA small example game to learn libGDX.
A small example game to learn libGDX.
Currently my levels are written in some hand-crafted yaml-Files (see src/main/resources/levels) from which java-Code is generated manually (cf. YAMLLevelFromDSL.java).
If i would create groovy files instead of java-Files, those could be loaded dynamically from Application. Although a user could create own levels and directly use them via some "load level"-Button...
GameScreen.java
Relevant methods:
show():
perspectiveCamera.lookAt(level.xlength()/2, 0 ,level.zlength()/2);
perspectiveCamera.position.set(0, 5, 0);
perspectiveCamera.update();
updateLevel(): [same code as above]
My lookAt and position.set results in an awful look. I'd like to see the complete level from "above".
Maybe a have some problem with x/z and those are inverse.
Class BlockFactory creates all Textures for the cube and/or board. Sadly, especially with lights, the ColorAttribute's and TextureAttribute's doesn't seem right.
I'm not sure, should i use emissive / diffuse or anything else?
What i want: createLifeforce(Color.YELLOW...) should be yellow and not looking orange (depending on lights)...
Most Textures are created via io.libgdx.cubegame.blocks.factories.TextureFactory and are not Assets(!) (jpg/png...).
Methods createLifeforceTexture,createJumperTexture and createElevatorTexture should be improved to create nice Textures.
Enemies currently have a speed of 5 (cf. EnemyAnimation), but it should additionally (optional) be configurable (from the yaml level files). Changes should be in YAMLLevelFromDSL.java...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.