Skip to content

A game engine written using Golang 100% using the powerful Raylib library. AND VERY EASY

License

Notifications You must be signed in to change notification settings

Troxsoft/Furia2D-Engine

Folders and files

NameName
Last commit message
Last commit date
Dec 7, 2023
Dec 7, 2023
Nov 27, 2023
Dec 3, 2023
Nov 29, 2023
Dec 6, 2023
Dec 2, 2023
Dec 1, 2023
Dec 3, 2023
Nov 27, 2023
Nov 27, 2023
Nov 27, 2023

Repository files navigation

MIT LICENCE

Furia2D-Engine

A game engine written using Golang 100% using the powerful Raylib library AND VERY EASY

Raylib Raylib-go

Getting Started and INSTALL

type in the terminal and in you golang proyect

 go get github.com/Troxsoft/Furia2D-Engine/engine

Examples

  • Hello rectangle
package main

import (
	e "github.com/Troxsoft/Furia2D-Engine/engine"
)

var obj *e.GameObject

func main() {
	e.InitGame("welcome to Furia2D-Engine :)", e.NewSize(500, 400), func(ge *e.GameEvent) {
		obj, _ = e.CreateGameObject("you object", e.SHAPE_RECTANGLE, e.NewSize(30, 30), e.NewPosition(30, 30))
		obj.Instance(e.GetCurrentScene(),nil)

		//fmt.Println(obj.F)
	},
		func(ge *e.GameEvent) {

		})
}
  • Instances/reuse code !?
package main

import (
	e "github.com/Troxsoft/Furia2D-Engine/engine"
)

var obj *e.GameObject

func main() {
	e.InitGame("welcome to Furia2D-Engine :)", e.NewSize(500, 400), func(ge *e.GameEvent) {
		obj, _ = e.CreateGameObject("you", e.SHAPE_RECTANGLE, e.NewSize(30, 30), e.NewPosition(30, 30))
		obj.SetStart(func(g *e.GameObject, a any) {
			g.SetPosition(a.(e.Position))
			g.SetColor(e.GREEN)
		})
		obj.Instance(e.GetCurrentScene(), e.NewPos(20, 20))
		obj.Instance(e.GetCurrentScene(), e.NewPos(60, 60))
	},
		func(ge *e.GameEvent) {

		})
}
  • more examples in'examples'

FURIA2D is easy or very easy ???