Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Modulous development
Started by richard11 Oct 15 2017 10:27 AM

- - - - -
29 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 487 posts
  • Corona SDK

A very crude sample apk attached for anybody interested. Android only at the moment as we don't have an iOS license yet, but it's entirely Lua so should be cross platform when we come to a proper release.

 

The sample allows panning the map by dragging with one finger, zooming in/out with pinch gestures, and centering on to specific tiles by tapping them.

 

To produce this sample is just a few simple lines:

 

-- Load plugin library
local qiso = require "plugin.qisoengine"
 
-- First, tell qisoengine where maps and sprite files are.
qiso.setAssetsFolder("assets")
 
-- Load a Lua formatted Tiled Map Editor tilemap into a Qiso map.
qiso.loadTiledMap("sample-tilemap")
 
-- Enable zooming when the screen is pinched
qiso.enablePinchZoom()
 
-- Enable camera panning when the screen is dragged
qiso.enableCameraPan()
 
-- Center on the tapped tile
function tapTile(event)
    -- Get the tile located where the screen was tapped. If there's no tile here, getTile returns nil.
    local tile = qiso.getTile(event.x, event.y)
 
    if(tile ~= nil) then
        qiso.goTo(tile.x, tile.y)
    end
end
 
-- Main game loop
function mainLoop()
    -- Render the map
    qiso.clearGraphics()
    qiso.renderMap()
end
 
-- Do something when the screen is tapped
Runtime:addEventListener('tap', tapTile)
 
-- Run the main game loop
Runtime:addEventListener('enterFrame', mainLoop)
 
There are a few other functionalities that this sample doesn't show off, and still lots to do before it's ready for release, but the general idea is to make developing isometric games as simple as possible without losing any flexibility.
 
In the hopes this sparks some excitement, we've set up a mailing list that you can subscribe to if you'd like to be notified when this plugin is released.
 


[TOPIC: post.html]
#27

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 487 posts
  • Corona SDK

Hmm. I can't tell if I'm just not looking in the right place, or if my attempt to attach the apk to that post just didn't work. Here's a hosted version: https://development.qweb.co.uk/qiso/tilemaptest.apk



[TOPIC: post.html]
#28

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 487 posts
  • Corona SDK

Updated the APK with a better example, now that a) the engine properly supports layering and b) we have some proper graphics created. Also attached a screenshot for those who don't have Android to play with it on.

 

I won't update here again as it's really not the right place for it, so please do sign up to the above mailing list if you want to be notified when released.

Attached Files



[TOPIC: post.html]
#29

hanhatlinh91vn

[GLOBAL: userInfoPane.html]
hanhatlinh91vn
  • Enthusiast

  • 32 posts
  • Corona SDK

When can you release this plugin?. I am very excited



[TOPIC: post.html]
#30

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 487 posts
  • Corona SDK

Had to change priorities a little for a while but progressing with this development again now and hoping to release within the next few weeks. Probably early - mid February. Performance isn't brilliant at the moment (mainly need to incorporate off-screen tile culling) and I really want to get path-finding algorithms in place for the first release.

 

If you haven't already signed up to the mailing list at http://campaigns.qweb.co.uk/h/i/3A142358D02BBDE3 please do so, and we'll notify you the moment we release =).

 

Regards.




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]