Giter Site home page Giter Site logo

heaps-doc's People

Contributors

bchamagne avatar bigphilcombo avatar biskwikman avatar borkin8r avatar bubblebenj avatar clintflames avatar deepnight avatar dimumurray avatar florianbt avatar h3rb avatar joncom avatar lufemas avatar markknol avatar mrtraan avatar ncannasse avatar nspitko avatar ofirgeller avatar olichose123 avatar qkdreyer avatar r32 avatar rigidstudios avatar rthery avatar sylvainsokette avatar treeways avatar tzer0 avatar wykiki avatar yann-p avatar yannicka avatar yanrishatum avatar zommerfelds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

heaps-doc's Issues

Migrate to Github Actions

Description:
Pipeline is broken, making it impossible to update the heaps.io website.

Info:
I tried looking into implementing GH actions in this repo, but someone who has correct access rights need to do it here. (There are tokens involved - this repo pushes to the heaps wiki page)

This is the final piece of making the heaps website working again.

This is what I did for the heaps.io repo - HeapsIO/heaps.io#72

Hello HashLink Tutorial not working

I'm running Linux Ubuntu 18.10. Haxe 4.0.0-rc.2+77068e1. HashLink HL/JIT 1.9.0 (c)2015-2018 Haxe Foundation.

I tried the Hello HashLink tutorial, but when I press F5 I get a popup from Visual Studio Code saying: "Could not start 'hl' process, executable was not found in PATH. Restart VSCode or computer."

I restarted both VSCode and my computer. I tried adding the hl file path to to PATH.

What am I doing wrong?

Suggestion: Hello HashLink

Sources:

I got stuck here because when you "Press F5 or do Debug > Start Debugging" and select HaskLink it does not open .vscode/launch.json (instead you normally still see tasks.json). I kept pasting the code in there and getting an error "Version 0.2.0 not allowed".

Eventually I realised I need to create a new file and save it as .vscode/launch.json with the suggested content in. Then it works :)

Suggestion: Drawable

So I'm looking at H2D docs making some silly examples to understand what can be achieved.

2020-05-23_17-13-12

The gif is just that I'm happy because this is the kind of engine I was looking when I tried Unity and Godot.

That being said... The docs state that Each Drawable (including h2d.Bitmap) has several properties that can be manipulated: and among them I could use blendMode.

Welp, the properties are not from Drawable, they are from h2d.Object.

Erm, is this correct?

Sources:

Suggestion: Hello World

Sources:

I was going through the hello world tutorial and got an error in the compile.hxml file. The error was:
Invalid commandline class : Main should be src.Main

so the compile.hxml needs to be changed to:

-cp src
-lib heaps
-js hello.js
-main src.Main
-debug

It tells you how to fix it in the error, so it's not a huge deal; just thought I'd mention it.

Suggestion: Hxsl

Sources:

When describing the compilation of a list of shaders, the article mentions a "desired list of outputs" and the ability to select output values. It would be helpful to describe how one select an output. And maybe give a sample of MRT.

Typo: Installation

On the installation page, the middle line in the additional libraries section reads
haxelib install hsdl
and it should read
haxelib install hlsdl

(I was going to fix this myself in a fork, but it appeared correct there, so perhaps the build of the help docs needs to be updated?)

Sources:

Suggestion: Displaying text

After reading "Using the font" paragraph in the end, I thought that for BMFont it is necessary to have only .fnt file to use a font, and that only if .fnt file is missing, png files needed. It was not clear that you have to have .png files along with .fnt file.

Also, the error states that right now there is support only for 1 png page, what is not stated in intro.

Sources:

Broken Domkit CSS example

The Domkit section of the docs gives this CSS example:

class SampleView extends h2d.Flow implements h2d.domkit.Object {
    static var SRC = 
        // had to add the class="box" myself as it's missing from the example 
        <sample-view class="box" layout="vertical">
            <text text={"Hello World!"}/>
            <bitmap src={tile} public id="mybmp"/>
        </sample-view>

    public function new(tile:h2d.Tile,?parent) {
        super(parent);
        initComponent();
    }
}
.box {
    padding : 20;
    background : #400;
}

Even if the class="box" is added to the sample-view so that this css is actually activated, this css then fails the compile time check because "padding" is not recognised:

res/style.css:3: characters 2-15 : Unknown property padding

Instead, the css could be modified to set properties for the SampleView itself:

sample-view {
    padding : 20;
    background : #400;
}

However, the problem then is that it cannot find the component:

res/style.css:2: character 5 : Could not load component 'sample-view'

Suggestion: Introduction

Make it clear on this page that you need to initialize the resource system to be able to use images at the image section of the page, this suggestion is based on my personal experience learning the tool, I was only able to figure this out by looking at the examples at the example page, this isn't a fatal flaw, but it is a bottle neck when learning.

Sources:

Missing images

There are at least a few occurences where images are missing (listed below).

The md files use an invalud URL relative to the repository. I assume the first version of the doc had an img folder at its root.

For instance in the graphics documentation page, invalid URL are :

  • img/h2d/drawbox.jpg
  • img/h2d/drawtilefill.jpg

The pattern is pretty obvious. Hopefully the original folder is still somewhere in the history.

Missing images

https://github.com/HeapsIO/heaps/wiki/Graphics#drawing-graphics
The above code will produce the following - missing image
The above code will produce the following series of tiled logos - missing image

https://github.com/HeapsIO/heaps/wiki/GPU-Particles#customizing-particles
Last sentence of the section - missing image

https://github.com/HeapsIO/heaps/wiki/Materials#material-basics
Sentence right after the first sample - missing image
Sentence right after the seconde sampl - missing image

https://github.com/HeapsIO/heaps/wiki/Materials#blend-modes
Last sentence right after the sample - missing image 

Wiki and Wiki

Where should changes to wiki/docs be made? What do you prefer?


Heaps doc describes itself as a mirror of the latter.

But are both heaps-doc and wiki equivalent?

Where should changes be uploaded to??


I feel like making a pull request for every small change to the wiki is a bit cumbersome.

And just editing with the github wiki is pretty straightforward.

But if it should be done this way, then it should be this way.

Anyway, please, let me know!!


This is related to
heaps issue 1140 and 1078

Suggestion: Animation

Sources:

NOTE WELL: I'd be happy to volunteer my time to make the HEAPS Help better ... but I don't have the information needed to make the help better. I'm still trying to work things out.
Please add more detail - how to flip, mirror, rotate Tiles ... how to include collission detection, physics, etc (other libraries ?).
I realise Heaps is all work in progress, and Heaps is FREE, but the help as it currently stands is really poor. So far it feels like I am spending more time working out how to do really basic stuff with your engine, searching through the source code, etc, than it would be to create my own engine from scratch (which I have done before). Appreciate what you are working towards, and Heaps is FREE which is awesome, but it is so frustrating. If only the help was better.
All I have after several days (spreadout over many months) of trying to do basic stuff with HEAPS is frustration ... I keep returning to HEAPS to give it another try ...

Typo in hello-world.html

I have found a formatting typo in hello-world.html, in the section under the 'Create your project' header, on the 8th line that isn't code, it says '-debug Tells haxe to run in debug mode', and I am fairly sure that the word 'Tells' isn't supposed to be in your code font.
(fifth line in the image)
image

Suggestion: Drawing tiles

The example uses a backdrop.png, bunnies.png, tiles.json and tiles.png files, that should be put in the resources (/res) folder. Those files are not included in samples directory.

The example is not reproducible: it needs some images with who knows what sizes, and a json file with who knows what shape. Pls include them into the tutorial.

Sources:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.