spaceship

package module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 1 Imported by: 0

README

spaceship

A Lightweight and easy to use 2D Game Library for Golang and Raylib!

About

This is my little framework I'm making, so I can make games faster with Golang and Raylib! :D

DISCLAIMER The latest release will NOT be stable! Latest stable release is v0.0.3

How to Install

Simply type into your command line (while inside your go project)

go get github.com/eboatwright/spaceship@v0.0.3

and import spaceship into your go file! :D

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainCamera ray.Camera2D = ray.Camera2D{}

Functions

func Launch

func Launch(onLaunch fn)

func LoadScene

func LoadScene(scene Scene)

func SetWindowSize

func SetWindowSize(width int32, height int32)

func SetWindowTitle

func SetWindowTitle(title string)

Types

type Entity

type Entity struct {
	Texture  ray.Texture2D
	Position ray.Vector2
	Color    ray.Color
}

type IEntity

type IEntity interface {
	// contains filtered or unexported methods
}

type IScene

type IScene interface {
	AddEntity(e IEntity)
	GetScreenSize() ray.Vector2
	// contains filtered or unexported methods
}

type Scene

type Scene struct {
	// contains filtered or unexported fields
}
var CurrentScene Scene = Scene{}

func (*Scene) AddEntity

func (s *Scene) AddEntity(e IEntity)

func (*Scene) GetScreenSize

func (s *Scene) GetScreenSize() ray.Vector2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL