Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jens_K

Pages: 1 ... 4 5 [6] 7 8 ... 13
76
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: December 05, 2013, 04:45:13 pm »
@hking1: Indeed :D but for some reason it's very laggy on my computer...
@nspireguy: I could, but it would be much work and I think it's more handy that way, especially for clickpad model users *.* *.*

And while we're on it: I am porting the whole game to a screen manager system, which allows to do some fancy stuff like an initial loading screen (I'm planning a fancy 3D animation here (for a 2D program *genius* :P)) and a better main menu. It also makes the whole code much easier to read, undestand and modify. Thanks again adriweb for the suggestion! :)

77
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: December 04, 2013, 10:48:21 am »
@annoyingcalc & hking1: Ok!
@AnToX98: The problem is that the crafting menu doesn't show up on OS 3.1

Does anybody know when the voting for POTY for nspire starts?

78
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: December 01, 2013, 03:23:12 pm »
Thank you all for your congratulations on the feature! :D

@annoyingcalc: Not again D: But I really don't know what to do against it now, It has to work!
Here is the simplyfied code of the menu, maybe someone else can find the problem:

Code: [Select]
function returnToMenu()
    toolpalette.register({})
end

function on.deactivate()
    returnToMenu()
end

function on.escapeKey()
    returnToMenu()
end

function enableAdvCraft(state) 
    -- called with state=true when clicked on Crafting Table
    -- called with state=false when the player moved or destroyed the Crafting Table
    if state then
        toolpalette.register(advCraftMenu)
    else
        toolpalette.register(craftMenu)
    end
end

function resumeGame()
    -- is called after a new world was generated, a game was loaded or when clicked on "Resume Game"
    enableAdvCraft(false)
end

craftMenu={
    {"Structures",     
        {"Torch", translateCraft},
        {"Wooden Planks",translateCraft},
        {"Sticks",translateCraft},
        {"Crafting Table", translateCraft},
        {"Wool", translateCraft}
    }
}

advCraftMenu={
    {"Structures",     
        {"Torch", translateCraft},
        {"Wooden Planks",translateCraft},
        {"Sticks",translateCraft},
        {"Crafting Table", translateCraft},
        {"Chest", translateCraft},
        {"Furnace", translateCraft},
        {"Bed", translateCraft},
        {"Ladder", translateCraft},
        {"Door", translateCraft},
        {"Wood Stairs", translateCraft},
        {"Stone Stairs", translateCraft},
        {"Wool", translateCraft}
    },
    {"Pickaxes and Shovels",
        {"Wooden Pickaxe", translateCraft},
        {"Stone Pickaxe", translateCraft},
        {"Iron Pickaxe", translateCraft},
        {"Gold Pickaxe", translateCraft},
        {"Diamond Pickaxe", translateCraft},
        {"Wooden Shovel", translateCraft},
        {"Stone Shovel", translateCraft},
        {"Iron Shovel", translateCraft},
        {"Gold Shovel", translateCraft},
        {"Diamond Shovel", translateCraft},
    },
    {"Axes",
        {"Wooden Axe", translateCraft},
        {"Stone Axe", translateCraft},
        {"Iron Axe", translateCraft},
        {"Gold Axe", translateCraft},
        {"Diamond Axe", translateCraft},
    },
    {"Weapons",
        {"Wooden Sword", translateCraft},
        {"Stone Sword", translateCraft},
        {"Iron Sword", translateCraft},
        {"Gold Sword", translateCraft},
        {"Diamond Sword", translateCraft},
        {"Bow", translateCraft},
        {"Arrow", translateCraft},
        {"Flint and Steel", translateCraft},
        {"TNT", translateCraft}
    },
    {"Farming",
        {"Bread", translateCraft},
        {"Bone Meal", translateCraft},
        {"Bucket", translateCraft},
        {"Wooden Hoe", translateCraft},
        {"Stone Hoe", translateCraft},
        {"Iron Hoe", translateCraft},
        {"Gold Hoe", translateCraft},
        {"Diamond Hoe", translateCraft}
    }
}

function on.create()
    toolpalette.register({})
end


@nspireguy:
To be honest, I have barely started working on 0.12 *.* I am busy with school and friends and stuff, so I think the next update will be not until next year *.*

79
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 28, 2013, 07:39:03 am »
Fix! If you have OS < 3.2 please download the file again, now you should at least be able to craft without crafting table again ;)

@nspireguy: You can look at the first post of this topic to see what's planned; Armor is defenitely planned for the final release, redstone is a feature that will probably be added after the release.

@Hayleia: Ah, thanks for pointing out, I certainly would have forgotten it! My plan was to upload minecraft 2D to ticalc when it's finished but this is the first contest I'll participate! I'm so excited! :D

Edit: Ok, file is uploaded and email is sent to [email protected] (?) Now let's hope that it was still in time... when is the deadline?

Edit 2: The ticalc staff is very fast today: The file is already uploaded and you can find it here: http://www.ticalc.org/archives/files/fileinfo/457/45729.html


80
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 23, 2013, 08:47:05 am »
! Update !
Version 0.11.1 is now attached to the first post!

Fixes:
- Doors fixed
- Generated flying water is now surrounded by dirt again
- Attemp to fix advanced crafting menu bug on OS<3.2

@CalebHansberry:
The program is open source, but if you don't have a student software, you can't extract the lua code... I'll pm it to you!
About the 2 layer system: You are not the first who asked for it, but there are several difficulties to translate it to the nspire:
It would take twice as much space for the second tileset to distinguish both layers (I already have more than 50 for the blocks), it would take twice as much space when you save the world, it would take twice as long to save/load both layers, it would take twice as long to update all visible blocks and in some situations it would take longer to render.
I want to finish the main features of the game first, then I'll think about advanced features ;)
Btw: It's written in the header of the script that everyone is allowed to read the code and use parts of it.

@annoyingcalc:
Thanks for the information, you are the first who mentions it! Well, it's something that the crafting menu works anyhow. What exactly doesn't work now? I changed a bit about the menu-switching in 0.11.1 so it maybe works now.

@Jim Bauwens & Levak:
Yep, that's indeed exactly how I did it; it's easy to miss updates here... Good to hear that a professional programmer has the same idea as me :)

81
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 22, 2013, 07:10:55 pm »
@nspireguy: Thanks! The doors are bugged and I should have already fixed them, but I had to play dark souls... I think I can fix them tomorrow :)

82
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 20, 2013, 02:38:16 pm »
Indeed, thanks for the report, I'll fix that for tomorrow! :)

83
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 18, 2013, 04:03:38 pm »
@hking1: I think you mean caves that are generated into lakes. That's right, in previous versions, the game generated dirt around flying water but I disabled that to make the generation faster, but that particular feature didn't impact the generation time much, so I can enable that again...

84
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 17, 2013, 09:32:48 am »
@Levak: That's a pity, that would have been a useful feature :-\

@adriweb: I just found your link of the screenmanager agin. I did't understood the concept of metatables at that time and didn't know what to do with it, but now I understood it at that will be very helpful! I'll try to apply it to my code... thanks for that (better late than never ;))

And I point it out again: The crash on OS<3.2 should now be fixed, just download it again!

85
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 17, 2013, 07:02:04 am »
Update!
If you downloaded 0.11 yesterday and it crashed with the message "2286: bad argument #1 to 'register' (table expected, got nil)", please download it again to get the fixed version! (thanks to jh0421!)

@adriweb: thanks for the link, but I only found
Code: [Select]
loadstring(math.eval("formulaproextdb\\categories()"))()I already know from my Script Editor Project that it is possible to import strings from documents in MyLib, but I can't find how to store something in an external document... (I'm sorry if I simply overlooked it; it is a huge code!)

@hking1: I don't understand what you mean, The water is now exacltly like in the real Minecraft! But feel free to write an algorithm that considers correct physical behaviours of liquids ;)

86
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 16, 2013, 01:29:23 pm »
@adriwed:
On the other hand, you can use MyLib, but I think storing in the clipboard buffer is indeed faster than storing it in a shared string.
Uh, that sounds very interesting! Where can I find some information about this?

@jh0421: Oh, no! I'll change that straight away! But that's strange, I just used an information from the official Reference Guide: "Calling toolpalette.register(nil) deactivates the toolpalette."  :-\

87
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 16, 2013, 10:43:33 am »
!!!Update!!!
Version 0.11 is now attached to the first post!

New:
Water & Lava:
- Spreads and behave like in the real Minecraft
- fancy rendering via polygons/non patented strip scale method
- Destroy non waterproof blocks (like torches)
  - If destroyed by water, you get the item (for faster farming)
- Water on lava source ==> obsidian
- Lava on water source ==> stone
- Water on lava or lava on water ==> cobblestone

Buckets:
- Craft with 3 iron bars
- Pick up water/lava source block
- Place it anywhere else

Dungeons:
- 1 per 50 blocks of the maps' width
- 0-2 chests with various items
- zombiespawner in the middle

Stairs:
- walk towards them do climb without jumping
- walk off them to get down without falling
- automatic orientation

Day/Night cycle:
- Sun rises and day starts exactly at 5 am
- Sun sets and night starts exactly at 7 pm
==> More time until monsters spawn

Export function:
- now enabled to export your worlds to the MC2D world container
- don't try to paste it to the notepad on calc, it will take forever to load!

Code optimizations
- world generator is now 25% faster
- loading function is now 50% faster
- bugpreventions via metatables
- replaced some bad identifiers:
  Level==>world, menue==>menu, canWalkTrough==>canWalkThrough

Bugfixes and other improvements:
- gold sword as now correct texture
- fixed lightbugs with fire and lava
- light from lightsources is a bit smoother
- stars now twinkle a bit on fancy graphics
- another attemp to fix the OS 3.1 crafting menu bug ;)
- various bugfixes

MC2D World Container:
- Import worlds the clipboard
- See information about a world (Name, version, gamemode)
- Change the name of a world
- Export worlds to the clipboard
==> Import a world, send the container to an other Nspire and export it to its Minecraft: that's how you transfer worlds!

88
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 12, 2013, 05:09:27 pm »
Hi,
@jh0421: Oh, yes, thanks for the report, I'll fix that ;)

@hking1: I agree, a 2 block depth would be good, but there are reasons why I keep a 1 block depth for the moment:
That's how some other minecraft 2D do it, but it would take twice as much space for the second tileset to distinguish both layers (I already have  over 50 for the blocks), it would take twice as much space when you save the world, it would take twice as long to save/load both layers, it would take twice as long to update all visible blocks and in some situations it would take a bit longer to render...

AAND the code optimization is looking very good! :) Thanks to adriwebs tipp, I now use a metatable to handle empty fields instead of initializing every empty field with 0! That and other optimizations makes the generating of a new world 25% faster!! I am working on the loading function now and I guess it will have similar effects! :)

89
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 10, 2013, 08:40:52 am »
@AnToX98: You're right, I shouldn't forget to add some ordinary stuff! I'm still not sure if a crafting grid would be good to use on a calculator. Maybe that will be a switchable option in the future. Redstone is huge. I feel like it would take another half year and 1000+ lines of code to cover all functionalities... but I promise to at least try to do it!

@hking1: I want to finish all basic features like armor system, proper main menu and world transfer system first to finally get version 1.0 released! Then I'll think about bigger experiments like crafting grid, infinite worlds and redstone. About version 0.11: I have nearly finished the content of the update, but I also want to optimize the game with adriwebs tipps! That will make processes like generating, loading and maybe even rendering a lot faster! I hope I will have finished it next weekend :)

90
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: November 08, 2013, 10:46:51 am »
Hi,
my idea works perfectly: I've split the lavatexture in 16 strips and compress each to a length between 1 and 16 pixels. Later, at the rendering, I compute the inclination and assemble the strips as needed.
I haven't tested the performance on calc yet, but as long as rendering 16 times a 16*1 pixel image isn't much slower than rednering a 16*16 pixels image, it won't impact the performance much! :)

Pages: 1 ... 4 5 [6] 7 8 ... 13