Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 10:36:09 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Rush Hour -  (Read 3159 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« on: 13 January, 2012, 02:52:28 »
+8

Well, as a more long term project and for the Board Game Member Guild  Tongue, I think I'm going to work on Rush hour, based on the board game by ThinkFun.

For wikipedia entry, http://en.wikipedia.org/wiki/Rush_Hour_%28board_game%29.

Right now I have a problem with tables. The levels are stored as tables with the positions of the cars and stuff. Basically, is there any equivalence of the python statement table2 = table1[:]? Basically, that copies the entire table1 to table2, but they no longer have the same reference. Is there any Lua idiom for that?

Oh, and I need some more levels. I plan on having at least 50 levels, so any level contributions are welcome! I could also port the 40 original levels, but I don't own the original version.

And a primitive screenie
Spoiler for Hidden:

Edit: Oh yeah, the colors work fine enough on grayscale, I'll probably change to sprites later on.

EDIT: Final version is out! Find it here.
Updated Screenie


* new screenie.gif (237.23 KB, 320x240 - viewed 105 times.)
« Last Edit: 04 May, 2012, 23:19:44 by cyanophycean314 » Logged

Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:51:04
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #1 on: 13 January, 2012, 10:15:03 »
0

Nice Smiley
Are you planning on using TI-Images?
If you are, I can help you with the images (as I already had a part for my clone..).

Edit:
for the table copying, you can check out BetterLuaApi from Adriweb.
It contains some table copy functions Smiley
https://github.com/adriweb/BetterLuaAPI-for-TI-Nspire/blob/master/BetterLuaAPI.lua
« Last Edit: 13 January, 2012, 10:17:14 by jimbauwens » Logged

Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #2 on: 13 January, 2012, 16:01:30 »
0

ow great, yeah, i'll recommend you to change to sprites, it doesn't really need its speed, so why not, it can only be nice Smiley

looks great
Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #3 on: 13 January, 2012, 23:34:20 »
0

Yeah, I'm going to be changing to TI-Images as sprites. I guess there's no Lua function for that, you just have to manually do it.

@jimbauwens: You wrote a clone of rush hour?  Huh? But for the images, any help would be appreciated. Does that mean you're drawing the sprites?
Logged

Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:51:04
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #4 on: 14 January, 2012, 00:25:02 »
0

I wanted to make it, but did not start on it because of other projects.
But I did get the images from the official game and resized them to suit the calculator.
I can give these to you Smiley

Edit:
What do you mean with "I guess there's no Lua function for that, you just have to manually do it."?
There are sprite functions available...
« Last Edit: 14 January, 2012, 00:26:21 by jimbauwens » Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #5 on: 14 January, 2012, 04:26:06 »
0

I was referring to the copying of tables, not the sprites.  Tongue Sorry for misunderstanding.

The sprites would be awesome! I guess you could post them here or PM me. Thanks a lot!  Cheesy
Logged

Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 02:33:47
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3759


Total Post Ratings: +609

View Profile
« Reply #6 on: 18 January, 2012, 02:32:37 »
0

Cool, as another BGMG coder, I think I will attempt this at some point with Grammer. The screenie looks nice, too Smiley
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #7 on: 18 January, 2012, 04:26:17 »
+1

Thanks Xeda! Isn't the BGMG a bit lonely? It's just you, epic7, and I right? We need some more members.  Cheesy

Anyways, I've been working on a level editor for this, so you can create custom levels. I think you'll also be able to save them later on. Here's a screenie of it.

As of now, there are an entire 6 levels! Haven't ported too much yet...  Tongue


* Rusheditmove.gif (366.24 KB, 480x356 - viewed 270 times.)
Logged

willrandship
Omnimagus of the Multi-Base.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 01:21:23
Date Registered: 11 April, 2010, 03:08:32
Location: Between Venus and Mars
Posts: 2638


Total Post Ratings: +66

View Profile
« Reply #8 on: 18 January, 2012, 04:27:22 »
0

That's actually a really cool way to edit it! I like!
Logged

AzNg0d1030
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 23:04:34
Date Registered: 26 October, 2011, 04:43:09
Location: Over the rainbow
Posts: 488


Total Post Ratings: +37

View Profile
« Reply #9 on: 18 January, 2012, 04:33:15 »
0

Just make sure you don't create a level on the editor that isn't possible Big smile
Logged

What? WHAT? WHATTTT?Huh??

You just lost the game.

Suck it up.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #10 on: 18 January, 2012, 04:35:59 »
0

You can create levels that are impossible... You can have super long vertical blocks that will block the entrance, but I don't think I can stop that, whatever.  Tongue
Logged

Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 02:33:47
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3759


Total Post Ratings: +609

View Profile
« Reply #11 on: 18 January, 2012, 08:07:06 »
0

I think he means not to create an impossible level that is included Big smile But yeah, if the user wants to create a custom level that is impossible, let 'em Cheesy
« Last Edit: 18 January, 2012, 08:07:12 by Xeda112358 » Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


ZippyDee
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 10:03:36
Date Registered: 21 March, 2011, 03:15:07
Location: Yes.
Posts: 704


Total Post Ratings: +73

View Profile
« Reply #12 on: 18 January, 2012, 09:06:40 »
0

I just wanted to point out that the actual game only ever has blocks with a length of either two or three...
Logged

There's something about Tuesday...


Pushpins 'n' stuff...

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #13 on: 22 January, 2012, 19:52:54 »
0

 I realize that, but why not have some variety!  Wink Now has 12 levels.
Logged

Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 01:44:48
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3694


Total Post Ratings: +260

View Profile
« Reply #14 on: 22 January, 2012, 21:10:18 »
0

Good to see this progressing. Smiley
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.319 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.