- Joined
- Mar 18, 2007
- Messages
- 211
- Reaction score
- 223
Around twenty hours ago I started a unique project called Habbocraft.
The idea was to created a Habbo and Minecraft crossover that would be
unique and never done before.
This isn't being release why is this here?
I thought that it woud be nice to have a thread where people could check in,
follow up on progress, make comments and its unique so why not! Although
I'm guessing moderators are watching me closely!
How is Habbocraft going to work?
The frontend of Habbocraft is replicated to act and look just like Minecraft.
Users will signup and login, once logged they transfer to a Minecraft
replicated menu and can browser servers.
The backend is purely built up on NodeJS and HTML5. Ofcourse using
a emulator alongside it that is Plus based. Simple yet effective allowing
me to create a great project.
Can I create my own server?
Yes you will be able to! In an attempt to create an API structed language
so users can add additions to there own server and learn the simple
values of coding as they go ago.
Now thats good, what about minigames?
Servers will be able to play famous minigames just like Minecraft has.
From Skywars, Spleef, PvP and ofcourse the beloved Factions.
I'm looking to release these within a lobby from the main server
rather then users being able to add minigames to their own servers.
Ok but the question is.. can you actually code?
Yes I've been developing within C# for eight months now and I have
to say it's one of the languages that I enjoy the most to program
within by far! Subsiding from that, I know HTML5 and Javascript as
I work as a web developer.
Code Snippets!
Sound Manager
Code:
Room room = parsedClient.GetHabbo().CurrentRoom;
RoomUser roomuser2 = room.GetRoomUserManager().GetRoomUserByHabbo(Client.GetHabbo().Id);
RoomUser roomuser1 = room.GetRoomUserManager().GetRoomUserByHabbo(parsedClient.GetHabbo().Id);
if (Sound == "InvalidSoundType")
return;
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 1))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(1).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 2))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(2).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 3))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(3).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 4))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(4).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 5))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(5).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 6))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(6).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 7))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(7).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 8))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(8).ToString()); }
if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 9))
{ TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(9).ToString()); }
Skywars
Code:
public string GameName { get; set; }
public string GameDesc { get; set; }
public int GamePlayers { get; set; }
public int GameCounter { get; set; }
public int GameToken { get; set; }
public int LobbyId { get; set; }
public int GameId { get; set; }
public bool Online { get; set; }
public void CycleServer()
{
GameName = "SKYWARS";
GameDesc = "SkyWars is where Skyblock meets PvP.";
foreach (GameClient Client in MercuryEnvironment.GetGame().GetClientManager().clients.Values)
{
if (GameId == 0)
{
if (LobbyId != 0)
{
if (GamePlayers < 8)
{
if (Client.GetHabbo().GameData.GameToken == LobbyId)
{
Client.SendWhisper("SKYWARS will begin soon, waiting for [" + GamePlayers + "] out of [8] Players.");
}
}
else
{
Client.SendWhisper("SKYWARS Enough players are now in the lobby, the game will begin soon.");
TokenUtility TokenUtility = new TokenUtility();
GameId = TokenUtility.GetToken();
GameName = "SKYWARS";
MapUtility.PrepareMap(GameId, GameName);
if (Client.GetHabbo().CurrentRoom != null)
{
Client.GetMessageHandler().PrepareRoomForUser(Convert.ToUInt32(GameId), "");
LobbyId = 0;
}
}
}
}
SCREENSHOTS
Will how do I know this project won't go dead?
I'll be hosting Join.me's at 8:00pm every day to do development.
On occasion you may catch me hosting and coding during the day.
If you have any more questions or ideas, please comment below and
I'll try my best to program them.
Please do not post comments that are not constructive or in plain
sight stupid. The idea is to go along with the community as the
project gets further into development. By the end of it, hopefully
I will inspire new comers to code via the "API" and thread in
general.
This is a one man project.
Finishing date of project
TBA. :
Http://Join.me/FrancisJosephDEV - Everyday at 8:00pm
Skype: FrancisJoseph15