Subscribe to GameFromScratch on YouTube Support GameFromScratch on Patreon
26. February 2019


The Haxe programming language is capable of generating code in several other languages, including more recently the Lua programming language.  The Defold game engine is a powerful free 2.5D game engine from King, that we have covered extensively in tutorial series.  It was only a matter of time until the two came together, and that is exactly what has happened.  The hxdefold open source project enables you to program Defold using the Haxe programming language. 

Features

  • Fully typed Defold API with proper compile-time errors and IDE services.
  • Type-safe game object messages and properties with zero overhead.
  • Strengths of Haxe without compromises: powerful type system, meta-programming, static optimizations and cross-target code sharing.

The getting started instructions are pretty straight forward, from the Github page:

  • Install this library (from this repo): haxelib git hxdefold https://github.com/hxdefold/hxdefold
  • Run haxelib run hxdefold init inside your Defold project. It will create a sample Hello.hx script component class and a build.hxml for building it.
  • Read the comments in these files to quickly get some idea.
  • Build with haxe build.hxml to get the lua output.
  • Add Hello.script to your game object in the editor and observe the greeting in the debug console.
  • Proceed with writing well-structured, expressive and type safe code for your Defold game.

The editor won’t become Haxe aware however, so you will still have to build your code externally.

GameDev News


25. September 2018

 

Shortly after the Defold game engine was released we published this tutorial series.  A lot has changed since including a whole new editor.   Therefore we have just finished publishing a completely new 12 part tutorial series to DevGa.me that covers all aspects of using the Defold game engine.  Chapters include:

Introduction to the Defold Engine 

Creating your First Project

Navigating, Importing and Texture Atlas Creation

Creating a Game Level

Using Defold Extensions and Using a Custom Camera

Creating a Player

Handling Input

Playing Music

Particles

Adding Physics

Creating a Main Menu

Switching Scenes

 

The series homepage is available here, while there is also a video version available here and embedded below.


24. September 2018


Defold is a free 2D Lua powered game engine made by King.  If you are interested in learning more about the Defold game engine, be sure to check out our existing Defold Tutorial Series, and stay tuned for our upcoming Defold Crash Course, currently available in preview form for Patreons.  The 1.2.137 release includes a new angular velocity mode for particle systems, new build options and the removal of Linux and OSX 32 bit version.


Full details from the release:

Engine

  • DEF-1593 - Added: New particle orientation mode for angular velocity.
  • DEF-2477 - Added: Engine build variants - debug, release and headless in Bob and Editor bundle dialogue
  • DEF-3487 - Changed: Removed 32 bit Linux+OSX engines from bob.jar.
  • DEF-3496 - Fixed: Missing iPad Pro 10.5" launch images.
  • DEF-3047 - Fixed: Log spam on Android 8+ devices related to CPU profiler.
  • DEF-3494 - Fixed: http.request() failed under certain conditions.
  • DEF-3456 - Fixed: Cloned spine nodes were not getting correct skin and animation.
  • DEF-1966 - Fixed: Collection proxies did not handle input consumption correctly.
  • DEF-3489 - Fixed: X11 context initialization for the Linux engine.
  • DEF-2929 - Fixed: on_input in GUI was missing accelerometer fields.
  • DEF-3464 - Fixed: Bug with stored notifications were not received on Android.
  • DEF-3479 - Fixed: Added API check before attempting to login with Facebook.

Editor

  • DEFEDIT-1420 - Changed: Long-running tasks such as bundling, building and saving are now performed on a background thread.
  • DEFEDIT-1420 - Fixed: The editor will no longer overwrite external changes when saving if it has not detected them.
  • DEFEDIT-1420 - Fixed: Broken library URLs are now reported correctly when bundling or building for HTML5.
  • DEFEDIT-1420 - Fixed: Sometimes the progress bar could disappear, leaving only the percentage-label visible.
  • DEFEDIT-1427 - Fixed: The Property and Outline panels could stop redrawing while a Particle FX or animation was playing.
  • DEFEDIT-1430 - Changed: Visibility Filters now have separate toggles for components inside or outside of GUI scenes.
  • DEFEDIT-1432 - Fixed: Improved progress reporting in several areas.
  • DEFEDIT-1437 - Fixed: Fixed occasional “File Not Found” errors when returning to the editor after switching branches.
  • DEFEDIT-1439 - Fixed: Updated autocomplete definitions for the Code Editor.
  • DEFEDIT-1440 - Fixed: Bundling a project with native extensions reported Ready too early.

GameDev News


18. July 2018


The Defold Game Engine just released version 1.2.133.  The 1.2.133 release contains new features including the ability to live update aspects of your game, making it possible to push game updates out for published games without having to resubmit to the App Store.  This release also added hot reload support of collections, enabling you to make changes on the fly while running on devices.  If you are interested in learning more about the Defold Engine, be sure to check out our complete tutorial series available here.


Details from the release announcement:

Engine

  • DEF-3323 - Added: Collection hot reload support.
  • DEF-2411 - Added: Liveupdate store and verify manifest.
  • DEF-3375 - Fixed: Fixed crash when calculating particle instance emitter count
  • DEF-3330 - Fixed: sys.get_save_path now uses the platform path characters.
  • DEF-3359 - Fixed: Optimized engine size a bit by adding “-fno-rtti”.
  • DEF-3283 - Fixed: Try to resume WebAudio on mouse/touch interaction (and also handle a null DefoldSoundDevice)
  • DEF-3352 - Fixed: Native Extensions: Added support for Objective-C flags -f[no-]objc-arc and -f[no-]objc-arc-exceptions.

Work in progress

We’ve started with the new feature of caching the uploaded files/libraries to the extension build server.
This should improve turnaround times a lot as well as saving bandwidth for certain users.

We are also currently upgrading our Facebook SDK to the latest version.

GameDev News


23. April 2018


A new version of the Defold game engine was released, version 1.2.126.  The nicest new feature of this release is the ability to do side by side editing in the Defold Editor.  The Defold Engine is a 2D lua powered free engine from King.  If you are interested in learning to use the Defold Engine, be sure to check our tutorial series available here.Defold


Details from the release notes:

Engine

  • DEF-3137 - Added: Added dmExtension::RegisteriOSUIApplicationDelegate() to Native Extension SDK
  • DEF-3024 - Fixed: Renamed (internal) AxTls symbols with a namespace to avoid libcrypto/libssl clashes
  • DEF-3146 - Fixed: Fix win32 accumulating error in dt when “variable_dt” checked in game.project
  • DEF-3161 - Fixed: Set content length explicitly to zero for 204 (no content) responses
  • DEF-3237 - Fixed: Improved error handling for extension errors on Win32
  • DEF-3216 - Fixed: factory.create() now allows nil for the properties argument
  • DEF-3218 - Fixed: Fixed rare assert when adding and deleting many objects during the same frame
  • DEF-3238 - Fixed: Reenabled logging when using lldb

Editor

  • DEFEDIT-1312 - Added: Side-by-side editing
  • DEFEDIT-1345 - Fixed: Defold 1.2.124 not launching on macOS High Sierra 10.13.4
  • DEFEDIT-1348 - Fixed: Add exception printing & logging during application startup
  • DEFEDIT-1349 - Fixed: Add util directory to reflection check build step
  • DEFEDIT-1350 - Fixed: The debugger is no longer working
  • DEFEDIT-1351 - Fixed: Shift+Enter from the Find field should Find Previous in code editor and console
  • DEFEDIT-1352 - Fixed: Undo after auto-complete no longer removes the whole line
  • DEFEDIT-1353 - Fixed: Text selection almost invisible when searching
  • DEFEDIT-1355 - Fixed: Error when syncing new project from editor
  • DEFEDIT-1356 - Fixed: Error when changed a value (scale) on a template node and then tried to reset it
  • DEFEDIT-1357 - Fixed: AssertionError when trying to attach to a running engine while building
  • DEFEDIT-1358 - Fixed: Breakpoints no longer get copied when you make new lines on a line with a breakpoint
  • DEFEDIT-1359 - Fixed: You can now mouse click to select autocomplete result
  • DEFEDIT-1360 - Fixed: Correctly syntax-highlight numbers inside all-caps Lua constants
  • DEFEDIT-1361 - Fixed: Lua keywords inside strings will no longer trigger indentation changes

GameDev News


GFS On YouTube

See More Tutorials on DevGa.me!

Month List